8 years, 9 months ago.

LPC824 WatchDog

Team Is this how I activate watchdog? <code> void kick(float s) {

uint32_t clk = SystemCoreClock / 16; WD has a fixed /4 prescaler, PCLK default is /4

LPC_WWDT->TC = s * (float)clk;

LPC_WWDT->MOD = 0x3; Enabled and Reset

feedtg();

}

void feedtg() {

LPC_WWDT->FEED = 0xAA;

LPC_WWDT->FEED = 0x55;

}

</code>

At the begingin I call kick the I frequently call feedtg().... right?

1 Answer

8 years, 9 months ago.

Hi,

First, you can use <<code>> tag to put your code in the questions.

About WDT usage, please refer example code here: https://developer.mbed.org/users/MACRUM/code/Watchdog-test-lpc824/

You have to enable clock and power domain in the WWDT. I hope this helps.