- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to enable a watchdog timer to reset my application in an error case after 1s (I don't need any WDOG interrupt / just the reset). How can I realize this requirement?
1. How to enable the WDOG timer
2. How to setup the refresh time?
I attached a simple example.
Thanks in advance!
Pascal
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can refer to WDT Example Projects (File -> Code Example -> PSoC 4200 BLE -> Watchdog_PSoC4_Example and WDT_P4_Example) to see how WDT can be configured for Reset. You need to clear the interrupt before the timeout occurs to prevent WDT from resetting the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can refer to WDT Example Projects (File -> Code Example -> PSoC 4200 BLE -> Watchdog_PSoC4_Example and WDT_P4_Example) to see how WDT can be configured for Reset. You need to clear the interrupt before the timeout occurs to prevent WDT from resetting the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Before I wrote this comment, I tried to figure out where to configure the reset time and how to use just the WDT-reset without any interrupt. But both of these examples use a WDT_isr (why?) and it's not clear where I can configure my reset time. I'm searching for:
1. WDT enable function
2. WDT refresh function
3. WDT configure function for reset time
Do I really need to configure an isr to use the WDT??
Thanks!
Pascal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! Take a look at the cy_lfclk datasheet. You can open this easily within PSoC Creator: In the workspace explorer, click on the tab "Datasheets" and you'll find it under "System Reference Guides" 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I solved the problem right now!