Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top