Hi,
I want to use the watchdog event handler to enter DFU bootloader. My eventhandler function looks like this:
#define BOOTLOADER_DFU_START 0xB1
/**
* @brief WDT events handler.
*/
void wdt_event_handler(void)
{
nrf_sdh_disable_request();
NRF_POWER->GPREGRET = BOOTLOADER_DFU_START;
//NOTE: The max amount of time we can spend in WDT interrupt is two cycles of 32768[Hz] clock - after that, reset occurs
}
Problem:
The watchdog does not enter the dfu bootloader, but enter the application.
I'm using sdk15.2 and a nrf52832.