Hi,
i am writing a test code for Watchdog timer Test in u-boot.
the code is as below.
int test_watchdog()
{
int ints = disable_interrupts (); // disabling all the interuupts
ulong base = get_ticks();
ulong clk = get_tbclk ();
while ((get_ticks () - base) / 10 < clk); // wait for 10 seconds
if (ints)
enable_interrupts ();
/*
* If we have reached this point, the watchdog timer
* does not work
*/
return -1;
}
in this code the EVM should get restarted before reaching the end but it is not happening.
I am using the ti8148EVM to run this code.
what i am doing wrong here?
how can i get the test the watch dog timer?
thanks.