Hard Fault in C40_Ip_MainInterfaceHVJobStatus api when flash is erase in s32k312

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

Hard Fault in C40_Ip_MainInterfaceHVJobStatus api when flash is erase in s32k312

跳至解决方案
3,063 次查看
EddiePark
Contributor IV

Hi NXP team.

The HardFault(1.jpg) issue happens while checking sector(0x00400000) erase functionality of S32K312.

The below API functions have to be placed into SRAM (".ramcode" section), as the attached files(2.jpg).

  • C40_Ip_MainInterfaceSectorErase
  • C40_Ip_MainInterfaceSectorEraseStatus
  • C40_Ip_MainInterfaceWrite
  • C40_Ip_MainInterfaceWriteStatus                                                                                                         Could you please let me know to resolve this issue?
0 项奖励
回复
1 解答
3,028 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @EddiePark,

 

Please specify the RTD revision.

 

Does the fault occur during or after the flash operation?

 

If you are erasing the sector starting at 0x00400000, where is the application code located?

 

As discussed here:

https://community.nxp.com/t5/S32K/S32K344-C40-IP-Hardware-Fault-Problem/td-p/1697432

Place this function to SRAM too:

C40_Ip_MainInterfaceHVJobStatus()

 

Check the .map file to confirm the functions are in SRAM.

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
2 回复数
3,029 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @EddiePark,

 

Please specify the RTD revision.

 

Does the fault occur during or after the flash operation?

 

If you are erasing the sector starting at 0x00400000, where is the application code located?

 

As discussed here:

https://community.nxp.com/t5/S32K/S32K344-C40-IP-Hardware-Fault-Problem/td-p/1697432

Place this function to SRAM too:

C40_Ip_MainInterfaceHVJobStatus()

 

Check the .map file to confirm the functions are in SRAM.

 

Regards,

Daniel

0 项奖励
回复
3,003 次查看
EddiePark
Contributor IV

Hi Daniel.

This issue is resolved.
Thank you for your support.

BRs.

Eddie Park

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2002382%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8%20s32k312%20%E4%B8%AD%E6%93%A6%E9%99%A4%E9%97%AA%E5%AD%98%E6%97%B6%EF%BC%8CC40_Ip_MainInterfaceHVJobStatus%20API%20%E4%B8%AD%E5%8F%91%E7%94%9F%E7%A1%AC%E6%95%85%E9%9A%9C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2002382%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%EF%BC%8C%E6%81%A9%E6%99%BA%E6%B5%A6%E5%9B%A2%E9%98%9F%E3%80%82%3C%2FP%3E%3CP%3E%E7%A1%AC%E6%95%85%E9%9A%9C(1.jpg)%E6%A3%80%E6%9F%A5%20S32K312%20%E7%9A%84%E6%89%87%E5%8C%BA%EF%BC%880x00400000%EF%BC%89%E6%93%A6%E9%99%A4%E5%8A%9F%E8%83%BD%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%E4%BB%A5%E4%B8%8B%20API%20%E5%87%BD%E6%95%B0%E5%BF%85%E9%A1%BB%E6%94%BE%E5%85%A5%20SRAM%EF%BC%88%E2%80%9C.ramcode%E2%80%9D%E9%83%A8%E5%88%86%EF%BC%89%EF%BC%8C%E5%A6%82%E9%99%84%E4%BB%B6%EF%BC%882.jpg%EF%BC%89%E3%80%82%3C%2FP%3E%3CUL%3E%3CLI%3EC40_Ip_MainInterfaceSectorErase%3C%2FLI%3E%3CLI%3EC40_Ip_MainInterfaceSectorEraseStatus%3C%2FLI%3E%3CLI%3EC40_Ip_MainInterfaceWrite%3C%2FLI%3E%3CLI%3EC40_Ip_MainInterfaceWriteStatus%20%E6%82%A8%E8%83%BD%E5%91%8A%E8%AF%89%E6%88%91%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E5%90%97%EF%BC%9F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E