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


Log in to reply
 

Suggested Topics

  • 8
  • 4
  • 2
  • 2
  • 15
  • 11
  • 1
  • 3

225
Online

10.1k
Users

10.6k
Topics

109.0k
Posts