read eeprom with codewarrior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

read eeprom with codewarrior

1,889 Views
thorstenmumm
Contributor III

Hey,

it's possibel to read and write eeprom datas with codewarroir ?

i will read my config out of the eeprom and write it back with the next update of my firmware

my modul lerns same aktion by using it and i will not lost this information and it will be god when i can write datas direkt to the eeprom by flashing the Modul.

I youse the 9S12ZVC

thanks for help

0 Kudos
5 Replies

1,320 Views
thorstenmumm
Contributor III

Hello Jennie,

thanks, thats what i am loking for.

but now i  have the problem to reset the Controller by an CAN-MAssage.

What is the comand in Asm to restart the controller with an Reset.

asm (RESET);

CPMUARMCOP = 0x00;

dosent work and wehre i can find a tabel with the temperatur i get by the converterfunktion?

I dont find it in the Datasheet

Thanks

Thorsten

0 Kudos

1,320 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Thorsten,

It looks like now you asked new question about reset controller.

May I suggest you create a new thread for this new question?

Please post this new one to S12/MagniV MCU space:

https://community.nxp.com/community/s32/16-bit 

We have MCU expert monitor this space. Thanks for your support.

Best Regards,

Jennie Zhang

0 Kudos

1,320 Views
thorstenmumm
Contributor III

hi Jennie,

sorry, i had to work on a other Projekt last time. But now it goes on with this

Thats not what i mean.  At Microchip you can read and write the EEprom on the chip with the tool. So you can control what you controller had written or you can write spezial start defines

0 Kudos

1,320 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Thorsten.

EEPROM is read-only space.EEPROM data can be read out in debugger but can not be written with debugger tool.

See attached video of how to read EEPROM data from debugger.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,320 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Thorsten

I recommend you refer this demo code. It should help you.

S12Z EEPROM example code 


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos