Part Number: AM2434
Other Parts Discussed in Thread: SYSCONFIG
Hi,
I'm trying to configure the watchdog timer. I found that it has two modes. A mode to reset and the other mode is for firing an interrupt. What I want is the warm reset once the watchdog is expired. I followed the steps in the documentation of the SDK, but the watchdog doesn't reset after the time expires. However, the interrupt mode is working properly (found in the examples). Is there anything missing in my configuration? Here are the detailed steps I took:
- Configured the WDT from the sysconfig with the mode: "Trigger Warm Reset", and Expiry Timeout is 1000 ms.
- In the main code: I used ClockP_sleep for a delay of 5 seconds.
- After the delay I turn on a LED on the following Pin: MCU_GPIO0_5 (SPI1_CS0).
So, my assumptions was that the interrupt will fire before the delay is over and it will keep firing every reset. So, the LED will never turn on. but the WDT doesn't reset and the LED turns on.
Thank you in advance.