HI everyone,
I am currently facing an issue when using nrfjprog to flash my nrf52832-based custom board using nrfjprog.
Here is the steps I followed:
- Creating application hex by merging my app and s132 softdevice (mergehex)
- Creating the bootloader hex file (I adapted example code of secure bootloader with BLE for PCA10040 devkit)
- Creating bootloader settings using "nrfutil settings generate" command, with --bl-settings-version 2 (I am using sdk15.3)
- Merging bootloader (mergehex), settings and app together and proceed with the flashing with the following command:
nrfjprog --reset --program merged_app.hex --family NRF52 --chiperase --verify
In this case my app does not start.
If I first flash my program with Segger embedded studio and flash again (using nrfjprog and --sectoranduicrerase option) with my app + softdevice only (without bootloader & settings) then everything works fine.
Is there an issue if settings are generated with the app merged with softdevice?
Or am I missing something in bootloader configuration?
Thanks in advance for your help