Lucas Loizaga

CW6.2>MCF51JM128J How to declare constants in flash

Discussion created by Lucas Loizaga on Jan 29, 2009
Latest reply on Jan 30, 2009 by Tom Thompson
Hello,
I'm working with MCF51JM128 and I need to declare a constant byte in flash.

I try to do this in the same way they do with 8-bits in Codewarrior, using the follow line:

const unsigned char pp=2;

instead of placing "pp" in the flash memory the variable is located in RAM.

I'm doing wrong?

Thanks in advance!!
Lucas

Outcomes