Storing variables when running in FLASH EEPROM

Started by supaben34 December 12, 2005
Hello all,
I am trying to run a program in my FLASH EEPROM in my HC12B32
board. My program works fine in RAM but doesn't seem to work when in
FLASH EEPROM. Iam setting my EEPROM address to $8000... I am also
using variables and I was wondering where I should set them. When
looking at the programmer's manual, it seems like $1000 cannot be
"seen" when program is in the EEPROM.

So basically my question is, When I run programs in my FLASH
EEPROM, where should I store my variables? I only have about five or
six variables that need to be saved.

Thanks a lot guys. A fast response is always appreciated.


The 68HC912B32 has 1KByte of internal RAM that is out of Reset mapped to
the address range 0800h - 0BFFh.

It can be re-mapped to start at any 2K address boundary using the INITRM
register.

Hope this helps,
Doron
Nohau
HC12 In-Circuit Emulators
www.nohau.com/emul12pc.html

At 09:02 12/12/2005 +0000, you wrote:
>Hello all,
> I am trying to run a program in my FLASH EEPROM in my HC12B32
>board. My program works fine in RAM but doesn't seem to work when in
>FLASH EEPROM. Iam setting my EEPROM address to $8000... I am also
>using variables and I was wondering where I should set them. When
>looking at the programmer's manual, it seems like $1000 cannot be
>"seen" when program is in the EEPROM.
>
> So basically my question is, When I run programs in my FLASH
>EEPROM, where should I store my variables? I only have about five or
>six variables that need to be saved.
>
> Thanks a lot guys. A fast response is always appreciated.