07-14-2020 08:20 AM
I'm configuring Xilinx SWDT on Ultrascale+.
I am aiming to get a delay of 1.5ms.
But when I set the counter reset value to the lowest (1), I get a delay of 3 seconds!!
/*
* Set the Prescaler value
*/
XWdtPs_SetControlValue(&Watchdog,
XWDTPS_CLK_PRESCALE,
XWDTPS_CCR_PSCALE_4096);
/*
* Set Counter Value
*/
XWdtPs_SetControlValue(&Watchdog,
XWDTPS_COUNTER_RESET,
1);
/*
* Enable Reset Signal
*/
XWdtPs_EnableOutput(&Watchdog, XWDTPS_RESET_SIGNAL);
/*
* Start the watchdog
*/
XWdtPs_Start(&Watchdog);
I just edited the polling.c example.
Can someone please help me out?
Thanks!
08-23-2020 09:42 PM
08-23-2020 10:07 PM
Hi @sonminh
So I added a pmu_fw project. In the xpf config.h file, I enabled EM and system reset options. That worked for me!
08-25-2020 02:40 AM
Hi @shrinir ,
I see in file xpfw_config.h have define ENABLE_PM.
I add #define ENABLE_EM.
But where system reset option ?.
08-25-2020 06:33 PM
try enabling ENABLE_RECOVERY_RESET_SYSTEM_VAL also
08-25-2020 06:35 PM
Thank you
Also, can you please help me out on how you're changing the watchdog counter value?
Like I want to set the counter so that I get a reset if my system is unresponsive for 1.5ms. I don't know how to convert it. Any info would be really helpful.
Thanks!