This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Put Nrf52 in Vootload mode

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

Parents
  • Hi,

    I believe I found the reason for thsi issue but I don't know how to solve it.

    The power regulator on the board is enabled by one of the NRF52 GPIOs, when the device reset itself the board the GPIO goes low (or floating) and the board is turned off.


    If I try to enter to bootloader mode, and during that holds the power push button of the board - the process successes, but if the board is power off during the reset the process files


    Please advise how can I deal with this issue

Reply
  • Hi,

    I believe I found the reason for thsi issue but I don't know how to solve it.

    The power regulator on the board is enabled by one of the NRF52 GPIOs, when the device reset itself the board the GPIO goes low (or floating) and the board is turned off.


    If I try to enter to bootloader mode, and during that holds the power push button of the board - the process successes, but if the board is power off during the reset the process files


    Please advise how can I deal with this issue

Children
Related