-
Download version 5.68 of SEGGER Embedded Studio for ARM
-
Download the 9-2020-q2-update of the GNU ARM Toolchain
- Make sure the version is correct, you want the 9-2020-q2 update
-
Download the nRF CLI Tools
-
Install script prerequisites
python3 -m pip install -r ./Scripts/requirements.txt
git submodule update --init --recursive
TLDR: run make help
There are three main components to this codebase:
- Application code
- Bootloader code
- Config image generation/flashing (flash anchor ID, etc.)
For a one-shot build and flash, you can do:
make everything # Only build (not flash)
make flash_everything ANCHOR_ID=<anchor_id> # Build all code and flash the device
The application code can be built separately with:
make
make flash
The bootloader can be built separately with:
make bl
make flash_bl
The anchor ID and other configuration data has to be flashed onto the device. This can be done like so:
make config_imgs
make flash_config_img ANCHOR_ID=<anchor_id>
python3 ./Scripts/perform_dfu.py --anchor <anchor_id> --img-path ./Projects/QANI/FreeRTOS/DWM3001CDK/ses/Output/Common/Exe/DWM3001CDK-QANI-FreeRTOS.bin