EmbeddedRelated.com
Forums
Memfault Beyond the Launch

EEPROM write simulation with Codewarrior

Started by Unknown June 2, 2003
Hello,

Is it possible to simulate EEPROM writing with the
simulator in Metrowerks Codewarrior V2.0 (special
edition)?

I use code generated by processor expert to write the
EEPROM and when the function WriteSector() checks the
CBEIF flag in ESTAT the memory window shows ESTAT as
'uu'.

Regards / Ruben

==============================
Ruben Jsson
AB Liros Elektronik
Box 9124, 200 39 Malm Sweden
TEL INT +46 40142078
FAX INT +46 40947388

==============================



Hello Ruben.

'uu' in the Memory window simply means "uninitialized".

Metrowerks Codewarrior V2.0 does not provide Full Chip Simulation of
HC12/HCS12 derivatives (EEPROM/FLASH writing/erasing simulation is
therefore not provided). However, IO Simulation can be self implemented
with an IO Simulation Development Kit available as an extra product.

Best regards,
Gilles
At 09:55 AM 6/2/2003, you wrote:
>Hello,
>
>Is it possible to simulate EEPROM writing with the
>simulator in Metrowerks Codewarrior V2.0 (special
>edition)?
>
>I use code generated by processor expert to write the
>EEPROM and when the function WriteSector() checks the
>CBEIF flag in ESTAT the memory window shows ESTAT as
>'uu'.
>
>Regards / Ruben
>
>==============================
>Ruben Jsson
>AB Liros Elektronik
>Box 9124, 200 39 Malm Sweden
>TEL INT +46 40142078
>FAX INT +46 40947388
>
>============================== >
>-------------------- >
>">http://docs.yahoo.com/info/terms/





Hello Gilles and thanks for your reply,

> Hello Ruben.
>
> 'uu' in the Memory window simply means "uninitialized".

Yes, I figured it would mean something like that.

>
> Metrowerks Codewarrior V2.0 does not provide Full Chip Simulation of
> HC12/HCS12 derivatives (EEPROM/FLASH writing/erasing simulation is
> therefore not provided). However, IO Simulation can be self implemented
> with an IO Simulation Development Kit available as an extra product.

That would not be much of use for me since I am trying to
figure out how it works :-) I guess I just have to use the real
thing.

I got the EEPROM to work as I wanted. It took me a while to
understand that it was automatically erased whenever I started
a new debug session and even longer to figure out how to get
the P&E BDM multilink to not erase the EEPROM as part of the
preload command.

So far I have had much use of the simulator to verify my code
but now I have to use the hardware more because my next steps
will be to implement I2C, SCI and PWM.

Best Regards / Ruben

>
> Best regards,
> Gilles >
> At 09:55 AM 6/2/2003, you wrote:
> >Hello,
> >
> >Is it possible to simulate EEPROM writing with the
> >simulator in Metrowerks Codewarrior V2.0 (special
> >edition)?
> >
> >I use code generated by processor expert to write the
> >EEPROM and when the function WriteSector() checks the
> >CBEIF flag in ESTAT the memory window shows ESTAT as
> >'uu'.
> >
==============================
Ruben Jsson
AB Liros Electronic
Box 9124, 200 39 Malm Sweden
TEL INT +46 40142078
FAX INT +46 40947388

==============================



Memfault Beyond the Launch