S12ZVC EEPROM Dump by IEE1_GetByte

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

S12ZVC EEPROM Dump by IEE1_GetByte

788 Views
jinliangsun
Contributor III

Hi Support Team,

I try to dump the data stored in the internal EEPROM of S12ZVC . The data is partly written by function IEE1_SetWord and others by IEE1_SetByte(in generated file IEE1.c).

When I try to dump all the data by IEE1_GetByte, I can not get the correct value written by IEE1_SetWord. For example if the data is written as 0xABCD by IEE1_SetWord, the 2 bytes read by IEE1_GetByte is 0xAB,0xFF but not 0xAB, 0xCD as my expected.

Is the EEPROM organized differently than other external EEPROM?

Regards,

Bruce

 

Tags (2)
2 Replies

664 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Bruce,

At first, could you please check if the data are really written in the memory at the corresponding address?

(You can use Memory window in the CodeWarrior)

Which address do you use for the IEE1_SetWord and IEE1_GetByte?

Or Could you share your code? I can try to test it.

Thank you.

Best Regards,

Diana

0 Kudos

664 Views
jinliangsun
Contributor III

Hi Diana,

Thanks for your reply. I found the reason. The internal EEPROM is organized as words and the address argument in the APIs is the word address. The function IEE1_GetByte() just return the lowest byte of the specified word.

Regards,

Bruce