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 ?
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.