My code has started to hang in WDOG_EWM_IRQHandler (), it was working while ago. there is apparent no reason to have this behavior.
I have 2 freertos task running, if i disable task 2, it runs fine and doesnt hang in default ISR. But if i enable task 2 it hangs, in task 2 i have added 10ms delay at very start. and while single stepping this vTaskdelay sends the code in default ISR
static void task2()
{
uint32_t lu32Counter = 0;
// wait 10ms
vTaskDelay(pdMS_TO_TICKS(10));
I have 2 interrupt running 1 for uart1 and 1 for uart2. apart from that i wanted to use GPIO interrupt but it is disabled now.
I also added following code to disable WDOG, at start
I have also tried increasing the TASK stack depth and had no effect
WDOG->CNT=0xD928C520; /* Unlock watchdog */
WDOG->TOVAL=0x0000FFFF; /* Maximum timeout value */
WDOG->CS = 0x00002100; /* Disable watchdog */
can anyone guide me in diagnosing this fault ?