This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Hi DevZone, I'm experimenting on the nrf52840 dev board with softdevice s140 (SDK v15.0.0) to enable DFU via BLE. To this end, I'm trying to flash the DFU secure bootloader, and have issues trying to enter DFU mode (LED 3 lit). Here are the steps

Repetition of the steps followed here.


(1) Generated priv key, and public_key.c file using nrfutil,
(2) generated the bootloader_settings file using nrfutil
(3) Compiled the DFU secure bootloader example under .../examples/dfu/secure_bootloader/pca10056_ble/armgcc/,
(4) Ran mergehex to generate a merged (bootloader+bootloader_settings) hex file
(5) Flashed the softdevice using ./nrfjprog --program ~/Downloads/s140_nrf52_6.0.0/s140_nrf52_6.0.0_softdevice.hex -f nrf52 --chiperase --verify
(6) Flashed the bootloader merged hex file using ./nrfjprog --reset --program .../examples/dfu/secure_bootloader/pca10056_ble/armgcc/_build/nrf52840_xxaa_s140_merged_with_settings.hex --family NRF52 --sectoranduicrerase

I expect the board to enter DFU mode now, before attempting to update the application. Is this a correct assumption?

From the documentation, following are the LED assignments: LED1: Advertising, LED2: Connected LED3: Bootloader/DFU mode. On my board, only LEDs 1 and 2 are lit up. I tried power cycling, pressing button 4, and resetting the board, LED 3 does not light up.

Parents Reply Children
No Data
Related