Cannot reset the hardware watchdog timer
Posted: 24 Aug 2022, 07:38
Hi,
I am working with RevPi Connect+ and CODESYS.
Recently, I activated the hardware watchdog on my device, and made a FBD to reset it. The FBD is set to run every 100ms.
I don't know why, but it doesn't work as I expected.
Actually, I can make blinking the LEDs A1-A3 with similar diagrams.
Also, I can see the boolean variable set as RevPiLED bit 7 turns TRUE <--> FALSE correctly with the CODESYS in debug, but still the device reset by the watchdog. With the piTest command, RevPiLED byte shows the value of 1 while the variable is TRUE (it must be 128 or higher, right?). Do you have any idea on this?
I am working with RevPi Connect+ and CODESYS.
Recently, I activated the hardware watchdog on my device, and made a FBD to reset it. The FBD is set to run every 100ms.
I don't know why, but it doesn't work as I expected.
Actually, I can make blinking the LEDs A1-A3 with similar diagrams.
Also, I can see the boolean variable set as RevPiLED bit 7 turns TRUE <--> FALSE correctly with the CODESYS in debug, but still the device reset by the watchdog. With the piTest command, RevPiLED byte shows the value of 1 while the variable is TRUE (it must be 128 or higher, right?). Do you have any idea on this?