Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Recovering from a Watchdog Reset

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Recovering from a Watchdog Reset
Moderator:
JFMD

Post Reply
Follow this topic



Recovering from a Watchdog Reset

xuan,Jed posted on 02 May 2013 7:05 PM PST
Senior Member
15 Forum Posts

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.




Re: Recovering from a Watchdog Reset

hli posted on 03 May 2013 12:12 AM PST
Top Contributor
675 Forum Posts

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
}

 



Re: Recovering from a Watchdog Reset

xuan,Jed posted on 03 May 2013 12:36 AM PST
Senior Member
15 Forum Posts

 Hi,

how can i  at watchdog reset after preserve SRAM value?



Re: Recovering from a Watchdog Reset

H L posted on 03 May 2013 01:10 AM PST
Top Contributor
679 Forum Posts

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.



Re: Recovering from a Watchdog Reset

xuan,Jed posted on 03 May 2013 02:34 AM PST
Senior Member
15 Forum Posts

 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? : (



Re: Recovering from a Watchdog Reset

hli posted on 03 May 2013 03:11 AM PST
Top Contributor
675 Forum Posts

For the PSoC3, there is a flag in the design wide resources called "Clear SRAM during startup". Uncheck that, and you should be fine.



Re: Recovering from a Watchdog Reset

xuan,Jed posted on 03 May 2013 05:13 AM PST
Senior Member
15 Forum Posts

 I tried Clear SRAM during startup

just a start must be given all the initial value

 

Thanks!



Re: Recovering from a Watchdog Reset

H L posted on 03 May 2013 06:23 AM PST
Top Contributor
679 Forum Posts

 Looks like I missed this option. 

There are always some new to learn everyday. :-)



Re: Recovering from a Watchdog Reset

danaaknight posted on 03 May 2013 02:35 PM PST
Top Contributor
1773 Forum Posts

That option does not seem to exist in PSOC 5, seems unfortunate.

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20