Hi,
I'm usgn Nrf528332, Softdevice s132_nrf52_6.1.0_softdevice
I Use secure_bootloader BLE secure_bootloader\pca10040_ble with the public key, and matched privet Ket I generate DFU Zip file
With Nrf Studio I burn SD and Bootloader
I use Nef connect to upload the DFU file - with Sucess
When I want to switch back to DFU target mode I use the following code
static void bootloader_start(void)
{
// A "simple" reset is not enough, the SD and IRQs must be disabled first
// uint32_t err_code;
const uint8_t ENTER_BOOTLOADER = 0xB1;
// err_code =
ble_conn_params_stop();
__sd_nvic_irq_disable();
NRF_POWER->GPREGRET = ENTER_BOOTLOADER;
NVIC_SystemReset();
}
For some reason, this MSU stay in teh App and not switch to DFU mode
Please elaborate on what am I doing wrong.
Shimon