Eeprom initialization

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Eeprom initialization

4,463件の閲覧回数
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,454件の閲覧回数
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,435件の閲覧回数
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,435件の閲覧回数
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,436件の閲覧回数
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,448件の閲覧回数
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 件の賞賛
返信