freezing some variables when warm reset (restet without powering down) occurs

Status
Not open for further replies.

AliBahar

Member level 2
Joined
Feb 4, 2015
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
337
Hi every one. I am working on Instrument Cluster which uses MC9s12xhy128 and the firmware is created by codewarrior IDE. i have enabled the WDT and i want to freeze some variables (like pointer position of panels) if WDT resets the micro-controller. any suggestion ?
 

Didn´t you try uploading these variables to the NVM ?
 

Variables are unlikely reset by the processor hardware, they are zeroed by the C runtime library, as required by the C language specification. You can either change the default behaviour by compiler switches or allocate the respective variables outside the regular variable memory area.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…