How to program eeprom using code warrior 5.9 tools or any others tools

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

How to program eeprom using code warrior 5.9 tools or any others tools

1,745 Views
pier-luc_rosa
Contributor II

Hi,

my microcontroller is MC9S12DG128VFUE and we have code warrior 5.9. How to program the eeprom or erased it ?

0 Kudos
7 Replies

1,730 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Please see attached demo code.

It's for DP512 but the method is the same as DG128.

Hope this will help you,

Jun Zhang

0 Kudos

1,717 Views
pier-luc_rosa
Contributor II

Is it possible to use WL command from Code Warrior Debuguer instead. Why it doesnt persist after reboot?

0 Kudos

1,710 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Besides the demo code method, you can define a const data in EEPROM address. The const data are burned to EEPROM during download the code.

BUT, you can't revise EEPROM with debugger tool.

Hope this helps,

Jun Zhang

0 Kudos

1,707 Views
pier-luc_rosa
Contributor II

I found a tool called prog12z wich is suppose to be able to do it, not sure how it work I will give it a try.

Thanks

0 Kudos

1,692 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

prog12z is P&E programming tool. As I know It can program eeprom. If you have any question regarding to prog12z, please contact P&E community.

0 Kudos

1,659 Views
pier-luc_rosa
Contributor II

Hi,

to connect to the device, what gnd and vdd should I use ? I am measuring 2.9V on VDD1 is it suffisiant ?

0 Kudos

1,655 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Your follow up question is no longer about CodeWarrior. Please create a thread to 16bit MCU space.

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/bd-p/16-bit

The 16bit HW engineer will help.

Thanks,

Jun Zhang

0 Kudos