Hi
We are experiencing a strange behaviour involving secure DFU and the user application code.
The environment is:
nRF5_SDK_12.3.0_d7731ad
nRF51822xxAC
s130_nrf51_2.0.1_softdevice.hex
HW: nRF PCA10028
DFU code : ..\nRF5_SDK_12.3.0_d7731ad\examples\dfu\bootloader_secure\pca10028\arm5_no_packs\secure_dfu_secure_dfu_ble_s130_pca10028.uvprojx
Application code has been developed starting from ble_app_proximity and ble_app_uart in ..\nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral folder
Private key priv.pem has been generated and nrfutil pkg generate used for creating
We erase the device, load DFU, Softdevice, and leave application space erased, so that upon boot, DFU mode is entered.
So far so good: at reset the IC enters DFU mode, the device is recognized, it loads our application properly via DFU (Nordic APP), and the application starts and works as expected.
If at this point the device is reset, the application doesn't start anymore and the device is not in DFU mode either.
ROM and RAM are kept the same as the examples that we started from, and they seem OK.
There's obviously something wrong in our code, does anyone have any previous experience on a similar behaviour?
Thanks in advance for your support
Cristian