as we have use ccs IDE with low level process initial function _system_pre_init that stop watchdog below.
#1 Stop watchdog in _system_pre_init
int system_pre_init(void) { /* Insert your low-level initializations here */ __disable_interrupt(); WDTCTL = WDTPW+WDTHOLD; // Hold watchdog return 1; }
if we change to start watchdog interval 1 second. Is it better?
#2 Start watchdog 1 second in _system_pre_init
#define DEF_WDTCTL_START_1S (WDTPW + WDTSSEL_1 + WDTCNTCL + WDTIS_4) int system_pre_init(void) { /* Insert your low-level initializations here */ __disable_interrupt(); WDTCTL = DEF_WDTCTL_START_1S; // start watchdog interval 1s return 1; }
If in this state in _system_pre_init, the power supply in not stable yet (the Vsys can drop below 1.8 V).
Can we enable watchdog in this time?