Tool/software:
#include "ti_msp_dl_config.h" int main(void) { SYSCFG_DL_init(); /* Enable TimerG interrupts on device */ NVIC_EnableIRQ(TIMER_0_INST_INT_IRQN); /* Enable sleep on exit */ DL_SYSCTL_enableSleepOnExit(); /* Set LED to indicate Timer counter enable */ DL_GPIO_clearPins( GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN | GPIO_LEDS_USER_TEST_PIN); /* Start TimerG counter */ DL_TimerG_startCounter(TIMER_0_INST); while (1) { __WFI(); } } void TIMER_0_INST_IRQHandler(void) { switch (DL_TimerG_getPendingInterrupt(TIMER_0_INST)) { case DL_TIMER_IIDX_ZERO: /* Restart WWDT timer */ DL_WWDT_restart(WWDT0_INST); /* Toggle LED to indicate WWDT reset */ DL_GPIO_togglePins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN | GPIO_LEDS_USER_TEST_PIN); break; default: break; } }
Hello, I encounter such errors when I change the period count without changing the WDT sample code at all. What is the solution or am I doing something wrong?