You may use the NO_INIT (instead of READ_WRITE) in the linker prm file
for it (otherwise linker will zero out the area). Erich > -----Original Message----- > From: Daniel Lundin [mailto:] > Sent: Freitag, 12. Dezember 2003 08:15 > To: > Subject: [68HC12] Re: EEPROM mapping in Codewarrior > Thanks for your reply. > > It seems I've got another problem then, sence the EEPROM is cleared > every time I download the program (but not cleared on reset). The > program also works fine on DG256 where I don't move the > EEPROM at all, > so I don't think it has nothing to do with my EEPROM routines. > > --- In , Gilles Blanquin <gblanquin@m...> wrote: > > Hi Daniel. > > > > I am glad to tell you that the EEPROM driver cares about the INITEE > > register value and EEPROM location. So if you move it, and > can flash > and > > erase it where it was moved. > > This was a must, as usually the eeprom is partially or totally > hidden under > > chip registers and onchip ram. > > > > > > You can try this if you want: > > > > Execute a WB command from the Command window to set INITEE > register. > > Then open the NMVC dialog. You will see that the EEPROM location > range changes. > > > > Remind that if the reset the chip after the command is played, the > eeprom > > turns back to default location. > > > > Regards, > > Gilles > > > > > > At 03:43 PM 12/11/2003, you wrote: > > >Using: Codewarrior 3.0 on HCS12DG128 > > > > > >How do I map the EEPROM with Codewarrior? > > > > > >The only way I know of is to set the INITEE register > manually. If I > > >do that, everything will be fine except that the memory > will then be > > >erased at startup, which I don't want. I have written > FLASH ERASE 1-8 > > >in preload.cmd to exclude the EEPROM from beeing erased. > But sence CW > > >won't know about the INITEE change which will take place > at runtime, > > >it will probably erase at the default address and clear where I > > >acctually want to place the EEPROM. > > > > > >Is there a better way to map the EEPROM which will make CW > aware of > > >the new location? > > > > > >Thanks in advance, > > >Daniel Lundin > > > > > > > > > > > > > > >-------------------- > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor > ---------------------~--> Buy Ink Cartridges or Refill Kits > for your HP, Epson, Canon or Lexmark Printer at MyInks.com. > Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cidU11 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM ---------------------------------~-> -------------------- ">http://docs.yahoo.com/info/terms/ |