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??
It basically works the same: a WatchDog reset is signalled with the RESET_SR0 bit. See the PSoC5LP TRM at page 137.
So the check would be:
// watchdog reset
how can i at watchdog reset after preserve SRAM value?
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.
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? : (
For the PSoC3, there is a flag in the design wide resources called "Clear SRAM during startup". Uncheck that, and you should be fine.
I tried Clear SRAM during startup
just a start must be given all the initial value
Looks like I missed this option.
There are always some new to learn everyday. :-)
That option does not seem to exist in PSOC 5, seems unfortunate.