You are here

Clarification on global variables across warm reset | Cypress Semiconductor

Clarification on global variables across warm reset

Summary: 1 Reply, Latest post by aasi on 16 Nov 2011 09:11 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
dschneider's picture
17 posts

From the release notes: "When the warm reset functionality of the CyU3PDeviceReset() API is used, any global variables used by the application will not be properly re-initialized. This is because the startup code that initializes these variables would have been lost and cannot be executed again without loading the application again. If warm reset is needed, the application code must ensure that all necessary data is saved and restored or re-initialized as required."

However, in my tests I have found that static global variables are indeed reset, or perhaps just zeroed out.

Could you please clarify on what global variables are not reset during a warm reset?


aasi's picture
Cypress Employee
1166 posts


As the document says "any global variable" so all global variables will come into picture. Please let me know if you've a issue with this, we can work on it to find a solution.



Log in to post new comments.