nRF5: Does not work wdt_disable();
-
/** \ingroup avr_watchdog Disable the watchdog timer. On nRF5 the timer cannot disabled. The period is set to 36h of CPU run time. The WDT is stopped in sleep mode. */ #define wdt_disable() \ NRF_WDT->CONFIG = NRF_WDT->CONFIG = (WDT_CONFIG_HALT_Pause << WDT_CONFIG_HALT_Pos) | ( WDT_CONFIG_SLEEP_Pause << WDT_CONFIG_SLEEP_Pos); \ NRF_WDT->CRV = 4294967295
For some reason it does not work wdt_disable(); before sleep. The module makes a reboot during sleep