Hi,
I am working on the software development of a product based on an nRF52832.
We began our development on the nrf52810 and then moved on to the nRF52832 as it became too limited in resources (dual bank DFU and LE secure connexion were needed).
I ported our firmware to the nRF52832 by updating the flash regions in the project configuration (we use Segger Embedded Studio by the way). The project uses SDK 15.3 with Softdevice S112 6.1.1.
Everything works great, except the Bootloader. We have a BLE bootloader based on the Secure Bootloader example.
When migrating it to the nrf52832, I have used this configuration though I am not completely sure it is the right one :
FLASH_PH_START=0x0 FLASH_PH_SIZE=0x80000 RAM_PH_START=0x20000000 RAM_PH_SIZE=0x10000 FLASH_START=0x78000 FLASH_SIZE=0x6000 RAM_START=0x20002390 RAM_SIZE=0xdc70
I do not wish to move to the S132 softdevice and therefore can not use the Secure Bootloader example for the nrf52832.
This is what happens :
- I merge the bootloader with the bootloader settings and the softdevice using mergehex. I also prepare the signed firmware using the key and nrfutil.
- I flash this merged bootloader + settings + SD to the device
- The device enters DFU mode
- I use nrf Toolkit to load the application using the signed firmware (zip file).
- The device starts correctly with the firmware running.
- From the firmware, I enter DFU mode (by using NRF_PWR_MGMT_SHUTDOWN_GOTO_DFU)
- The device enters DFU mode.
- I reflash the same signed firmware using nrf Toolkit
- I am stuck in DFU mode and the application does not start (even after hard reset).
Does anyone has any idea ?
Regards.