- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having an issue with my design where the microprocessor seems to be stuck in a loop somewhere. I plan to track down which loop is causing the issue but I've tried to use the auto-generated watchdog timer to reset the device as a quick solution. Unfortunately I have had no luck with the WDT and the documentation I have found is rather sparse on details of how to implement this functionality. Any code examples or documentation would be greatly appreciated.
The microprocessor I am using is the CYBLE-014008-00.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer to the 'CE224703 – PSoC 4 Watchdog Timer' code example from the PSoC Creator. This example shows how to use a watchdog timer (WDT) to initiate system reset in a PSoC 4 device.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for that code example. I'm testing the watchdog by using the following code:
while(1)
{
green LED on
}
The watchdog resets the device the first time it encounters this loop but not the next time. The green LED comes on once, gets cleared, comes on again and stays on. Any suggestions on why this is happening?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You are not seeing the status of printing wdt reset continuously in the UART terminal ? Could you please share your project for checking ?
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have tested your main.c file in CE224703 – PSoC 4 Watchdog Timer code example, I didn't find any issues. I'm able to see the device is resetting continuously if WDT is not serviced.
Thanks,
P Yugandhar.