cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lkdi15
Visitor
Visitor
202 Views
Registered: ‎11-18-2020

Reset ZCU102 using watchdog time

I am using zcu102 board and want to use watchdog to reboot my board. I referred to this link for enabling the watchdog driver.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842055/Cadence+WDT+Driver

I tried using watchdog0 and made the following changes in system-user.dtsi

&watchdog0 {
    status = "okay";
    reset-on-timeout;
};

 

When the board comes up in /proc/device-tree/amba/watchdog@fd4d0000 i see the "reset-on-timeout" but when I - 

echo s > /dev/watchdog0

I get - 

watchdog: watchdog1: watchdog did not stop!
 
and the board doesn't reset , Can anyone suggest what other changes to make ?
0 Kudos
Reply
1 Reply
florentw
Moderator
Moderator
111 Views
Registered: ‎11-09-2015

HI @lkdi15

As per the following topic, Is your PMU firmware compiled with Error management flag enabled ? 

https://forums.xilinx.com/t5/Embedded-Linux/Unable-to-reset-APU-after-watchdog0-is-timeout-in-Petalinux-2017/m-p/1015911/highlight/true#M36300 

It is neccessary to have pmu-firmware compiled with Error management feature enabled for this to work.

An easy way of doing that would be to include following lines in the file (create if it doesn't exist) <plnx-proj-root>/project-spec/meta-user/recipes-bsp/pmu-firmware/pmu-firmware_%.bbappend

YAML_COMPILER_FLAGS_append = " -DENABLE_SCHEDULER -DENABLE_EM


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply