S9KEAZN32M4 - EEPROM access with Segger Jlink

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

S9KEAZN32M4 - EEPROM access with Segger Jlink

165 Views
Micha_S9
Contributor I

Hello,

i'm trying do write some data into the EEPROM of the S9KEAZN32M4 with Segger Jlink. I can connect, flash a hex-File and read out register. For example the UUID with
mem8 40048010 8
i get 40048010 = 31 45 33 37 18 68 14 1E
So the connection should be ok.

I have to write 0x0B to 1000_0020 into the EEPROM. But when i write with
w1 10000020 0B
and read out with
mem8 10000020 8
i get 
10000020 = FF FF FF FF FF FF FF FF.

Register 4002_0009 is set to 0x87, so EEPROM protection should be off.

Does anyone have an idea what's wrong on my side?

best regards

0 Kudos
2 Replies

89 Views
Micha_S9
Contributor I

Thanks for your response. Segger will implement the writing of the EEPROM somewhere in the future.

Micha_S9

0 Kudos

121 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Generally, the EEPROM can be written as a RAM is written, but the data in EEPROM can be kept after power off/on.

But the EEPROM for the S9KEAZN32M4 is a bit different. Pls refer to the EEPROM driver for KEA family.

You can download the EEPROM driver "EEPROM emulation driver for KEA128 and KEA8" from the link:

https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/automotive-mcus/ul...

 

So I suppose that you can not write EEPROM with J-Link device and tools.

Hope it can help you

BR

XiangJun Rong