NANO54415 Watchdog service routine example
Posted: Thu Jun 11, 2015 10:25 am
I am trying to experiment with the Watchdog.
After reading this thread http://forum.embeddedethernet.com/viewt ... ?f=5&t=596 and then looking at the example given C:\Nburn\examples\AutoUpdateFeatures i've noticed this example isn't good for the NANO54415, see code below.
void ServiceWatchdog( void )
{
#if(defined MOD5272 || defined SB72 || defined SB72EX)
volatile unsigned short * wcr = (unsigned short *) 0x10000288;
*wcr = 0xFFFF;
#elif (defined MOD5441X || defined NANO54415)
#error "Watchdog example not supported for MOD5441X or NANO54415"
#else
volatile unsigned short * wsr = (unsigned short *) 0x40140006;
*wsr = 0x5555;
*wsr = 0xAAAA;
#endif
return;
}
I would like to know how to write a watchdog service routine for the NANO54415
thanks.
After reading this thread http://forum.embeddedethernet.com/viewt ... ?f=5&t=596 and then looking at the example given C:\Nburn\examples\AutoUpdateFeatures i've noticed this example isn't good for the NANO54415, see code below.
void ServiceWatchdog( void )
{
#if(defined MOD5272 || defined SB72 || defined SB72EX)
volatile unsigned short * wcr = (unsigned short *) 0x10000288;
*wcr = 0xFFFF;
#elif (defined MOD5441X || defined NANO54415)
#error "Watchdog example not supported for MOD5441X or NANO54415"
#else
volatile unsigned short * wsr = (unsigned short *) 0x40140006;
*wsr = 0x5555;
*wsr = 0xAAAA;
#endif
return;
}
I would like to know how to write a watchdog service routine for the NANO54415
thanks.