Hi friends!
I am trying to learn SatNOGS-COMMS Board to use it on a CubeSat project I am currently working on.
I was following the Gitlab repo to understand how to customize the firmware for my project.
As of Now, I don’t have the board with me.
I am following the reference from SatNOGS-COMMS: Building and flashing the firmware
While trying to build the firmware from my Zephyr RTOS virtual environment on my Ubuntu, I am facing the following issue:
(.venv) username@hostname:~/Path/to/Parent/Directory/satnogs-comms-software-mcu$ west build --board=satnogs_comms@0.3.1 -d build --pristine -o=-j$(nproc) -DBOARD_ROOT=$PWD
ERROR: source directory -DBOARD_ROOT=/home/username/Path/to/Parent/Directory/satnogs-comms-software-mcu does not exist
FATAL ERROR: refusing to proceed without --force due to above error
I am litarally inside the directory this command is telling me doesn’t exist
I tried appending --force at the end of the command (just trying random command) but it still gave the same error
Then I tried below command (again trying stuff randomly) and got the following response:
(.venv) username@hostname:~/Path/to/Parent/Directory/satnogs-comms-software-mcu$ west build --force
[1/363] Preparing syscall dependency handling
[3/363] Generating include/generated/zephyr/version.h
– Zephyr version: 4.1.99 (/home/username/Path/to/Parent/Directory/satnogs-comms-software-mcu/zephyr), build: v4.1.0-2346-g781011b91173
[17/363] Building CXX object CMakeFiles/app.dir/src/io.cpp.obj
/home/username/Path/to/Parent/Directory/satnogs-comms-software-mcu/src/io.cpp:122:27: warning: ‘satnogs::comms::can2_msg’ defined but not used [-Wunused-variable]
122 | static msg_arbiter::msg can2_msg;
| ^~~~~~~~
[21/363] Building CXX object CMakeFiles/app.dir/src/tests/test.cpp.obj
/home/username/Path/to/Parent/Directory/satnogs-comms-software-mcu/src/tests/test.cpp:40:16: warning: ‘satnogs::comms::buffer’ defined but not used [-Wunused-variable]
40 | static uint8_t buffer[512];
| ^~~~~~
[363/363] Linking CXX executable zephyr/satnogs-comms.elf
Memory region Used Size Region Size %age Used
FLASH: 192336 B 2 MB 9.17%
RAM: 147312 B 512 KB 28.10%
BACKUP_SRAM: 0 GB 4 KB 0.00%
EXTMEM: 0 GB 256 MB 0.00%
SRAM1: 0 GB 128 KB 0.00%
SRAM2: 0 GB 128 KB 0.00%
SRAM3: 0 GB 32 KB 0.00%
SRAM4: 0 GB 64 KB 0.00%
DTCM: 0 GB 128 KB 0.00%
ITCM: 0 GB 64 KB 0.00%
RetainedMem: 0 GB 4 KB 0.00%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from /home/username/Path/to/Parent/Directory/satnogs-comms-software-mcu/build/zephyr/satnogs-comms.elf for board: satnogs_comms
As I mentioned earlier, I don’t have the board with me, so wasn’t able to flash and test this.
So is this a proper way of building the firmware?
Also how can I solve the problem I am facing with instructions provided at SatNOGS-COMMS: Building and flashing the firmware
Any help is very much appreciated!
Thanks in advance