Eeprom initialization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Eeprom initialization

4,466 次查看
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 项奖励
回复
5 回复数

4,457 次查看
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 项奖励
回复

4,438 次查看
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 项奖励
回复

4,438 次查看
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 项奖励
回复

4,439 次查看
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 项奖励
回复

4,451 次查看
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 项奖励
回复