Hello,
I have created settings file and merge sd + bootloader + application with following commands :
- nrfutil settings generate --family NRF52 --application app_name.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 bl_settings.hex.
- mergehex --merge bl_settings.hex secure_bootloader_ble_s132_pca10040.hex app_name.hex --output bl_sd_settings_app.hexnrfutil pkg generate --hw-version 52 --application-version 2 --application app_name.hex --sd-req 0x0101 --sd-id 0x0101 --key-file private.Key app_name.zip
- nrfjprog --recover
- nrfjprog -f nrf52 --program bl_sd_settings_app.hex --verify
- nrfjprog --reset
Below is the log by running pca10040_s132_ble_debug application.
app: Inside main app: In nrf_bootloader_init nrf_dfu_settings: Calling nrf_dfu_settings_init()... nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend. nrf_dfu_settings: Using settings page. nrf_dfu_settings: Copying forbidden parts from backup page. nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping. nrf_dfu_settings: Backing up settings page to address 0x7E000. nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping. app: Enter nrf_bootloader_fw_activate app: No firmware to activate. app: App is valid nrf_dfu_settings: Backing up settings page to address 0x7E000. nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping. app: Running nrf_bootloader_app_start with address: 0x00001000 app: Disabling interrupts. NVIC->ICER[0]: 0x0
The strange thing is after starting the debugger, bootloader is giving the
control to the application. Now after reset also, the control is given to the application from bootloader.
Hence, if I repeat step 3, 4, and 5 listed above, again Either I have to start the debugger or else I have to download the hex file using segger.
Can anyone help me with that?
Thanks in advance.
Chinmay.