I am having trouble with the DFU/bootloader. I have built a board using the nRF52832 chip which I can program using SES using JLink connection, using SDK 16 and s132. I now want to be able to update my app with DFU.
I am able to flash the bootloader using example>dfu>secure_bootloader>pca10040_s132_ble>ses, and then use the bootloader to accept DFU over iPhone IOS-nRF-Toolbox app. I build the softdevice + app using: nrfutil pkg generate --hw-version 34 --application-version 1 --application app_BLE.hex --softdevice s132_soft.hex --sd-req 0xCB,0xC2 --sd-id 0xCB,0xC2 --key-file private.key app_dfu_package_sd_app.zip. The DFU process proceeds, loading the softdevice then the app and finishes without apparent error. But the app fails to run.
I understand from other posts that the bootloader needs to validate the softdevice and the app integrity before launching the app. The device seems to go to never-never land. Based on the LED states it does not simply return to the bootloader.
I am trying to understand how to use debug to figure out where it is getting stuck. Using SES however, when I enter a debug session it refreshes the bootloader, erases the softdevice and the app and simply returns to bootloader mode.
If I erase the device, then flash my program all works again.
Any ideas you can offer will be valuable.