cancel
Showing results for 
Search instead for 
Did you mean: 

WDG in timer mode generates only one interrupt

dibacco2
Associate II
Posted on August 03, 2007 at 19:12

WDG in timer mode generates only one interrupt

1 REPLY 1
dibacco2
Associate II
Posted on May 17, 2011 at 09:45

I'm using WDG in timer mode and I want the WDG to generate an end of count interrupt. The code to setup the WDG (at 1ms end of count) and VIC has to be correct because my IRQ handler is called at least once and only once.

This is my handler, what's wrong, why only once?

void WDG_IRQHandler( void )

{

/* Increment the tick counter. */

vTaskIncrementTick();

#if configUSE_PREEMPTION == 1

/* The new tick value might unblock a task. Ensure the highest task that

is ready to execute is the task that will execute when the tick ISR

exits. */

vTaskSwitchContext();

#endif

/* Clear the interrupt in the watchdog. */

WDG->SR &= ~0x0001;

//VIC0->VAiR[0] = 0;

}