- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the "recovering from a watchdog reset" can do it in psoc
like it >> http://www.cypress.com/?rID=40391
how can i do it function in the psoc3??
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It basically works the same: a WatchDog reset is signalled with the RESET_SR0[3] bit. See the PSoC5LP TRM at page 137.
So the check would be:
if (0!=(RESET_SR0&8)) { // watchdog reset }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
how can i at watchdog reset after preserve SRAM value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Content of RAM are normally initialized by functions generated by the compiler which would be called during reset.
While you can tried to hack the code to preserved the RAM content but this is not recommened. It would be better to save the RAM content to EEPROM/FLASH -you need some sort of mechnism to update the content before it resets or use external RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The original PSoC1 can save RAM value, updated to the function but can not be used after the PSOC3, really bad.How do I explain it with the customer? : (
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For the PSoC3, there is a flag in the design wide resources called "Clear SRAM during startup". Uncheck that, and you should be fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried Clear SRAM during startup
just a start must be given all the initial value
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like I missed this option.
There are always some new to learn everyday. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That option does not seem to exist in PSOC 5, seems unfortunate.
Regards, Dana.