K2AAE I recommend building from nfed rather than the SDK since I add other values in the prj.conf
(like the boatloader). It saves some headaches.
Workflow is something like this:
cd project-folder/
west build -b circuitdojo_feather_nrf9160ns
This builds and puts the output into build/zephyr
app_update.bin
is used by the bootloader
merged.hex
should be used for programming via SWD
Programming via bootloader:
newtmgr -c serial image upload build/zephyr/app_update.bin
Where you need to set up the serial port beforehand.
Otherwise you can run
nrfjprog --program build/zephyr/merged.hex --chiperase
OR
west flash
That will program whatever you just compiled to your board.
In either case you need to reset your board before your code starts running.
nrjfprog -r
or if you’re using the bootloader
newtmgr -c serial reset
Make sure that you’re not connected to debug serial when using newtmgr
or else transfers will fail.
Hope that helps.