Eeprom initialization

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

Eeprom initialization

1,482 Views
972276616
Contributor II

Hello!
Initialization sometimes failed when I used EEPROM of S32K116, but after investigating and testing, I found that in debug mode, initialization could be successfully initialized if the break point stuck in the call initialization function.However, running directly to the end of initialization sometimes returns a failure.Please help me with this problem.
EEPROM initialization code is attached.
Thank you. Best wishes

0 Kudos
5 Replies

1,473 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Please make sure the function that launches the FTFC Program partition command is in SRAM.

See the below threads.

https://community.nxp.com/t5/S32K/program-partition-command/m-p/1041468

https://community.nxp.com/t5/S32K/Linker-file-configuration-to-allow-code-execution-from-RAM/m-p/803...


Regards,

Daniel

0 Kudos

1,454 Views
972276616
Contributor II

Hi,Daniel

Thank you for your answer. I have one more question to ask you. When initialized in RAM, an EEPROM erases all Flash data.

 

Regards,

Zhengyu

0 Kudos

1,454 Views
972276616
Contributor II

Hi,Daniel Thank you for your answer. I have one more question to ask you. When initialized in RAM, an EEPROM erases all Flash data. Regards, Zhengyu

0 Kudos

1,455 Views
972276616
Contributor II
Hi,Daniel Thank you for your answer. I have one more question to ask you. When initialized in RAM, an EEPROM erases all Flash data. Regards, Zhengyu
0 Kudos

1,467 Views
972276616
Contributor II

Hi,Daniel

Thank you very much for your help.Per your instructions, let me just put my EEPROM initialization function in RAM and execute it, as shown in the picture, shall I prefix the function with ___ (section(".code_ram"))?

 

Regards,

Zhengyu

0 Kudos