AnsweredAssumed Answered

It's weird! The constant variable has been changed even before the program starts!

Question asked by gang han on Apr 2, 2012
Latest reply on Apr 4, 2012 by gang han

I never suffer such a weird thing.


Platform: MPC5668GKIT

IDE: CodeWarrior_MCU_10.2


In my code, a constant array variable is defined as a initialized value of 0. Then, I compile it and download it to the RAM of MPC5668G in debug mode with the CodeWarrior debugger. And the code is set to stop at the entry point.

However, when I read the const variable, it turns out to be 0x 40009338, which is obviously an address!


My God!