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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

584 Views
ma85_bahar
Contributor II

Hi every one. I am working on Instrument Cluster which uses MC9s12xhy128 and the firmware is created by codewarrior 5.1 IDE. i have enabled the WDT and i want to hold some variables (like pointer position of panels) if WDT resets the micro-controller. any suggestion?

0 Kudos
Reply
1 Reply

487 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You can divide RAM into segments and use NO_INIT on one of them in the linker file.

From CW5.x help search:

pastedImage_1.png

BR, Daniel