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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

826 次查看
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 项奖励
回复
1 回复

729 次查看
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