Hard Fault in C40_Ip_MainInterfaceHVJobStatus api when flash is erase in s32k312

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

Hard Fault in C40_Ip_MainInterfaceHVJobStatus api when flash is erase in s32k312

Jump to solution
2,609 Views
EddiePark
Contributor III

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 Kudos
Reply
1 Solution
2,574 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
2,575 Views
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 Kudos
Reply
2,549 Views
EddiePark
Contributor III

Hi Daniel.

This issue is resolved.
Thank you for your support.

BRs.

Eddie Park

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2002382%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHard%20Fault%20in%20C40_Ip_MainInterfaceHVJobStatus%20api%20when%20flash%20is%20erase%20in%20s32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2002382%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20NXP%20team.%3C%2FP%3E%3CP%3EThe%20HardFault(1.jpg)%20issue%20happens%20while%20checking%20sector(0x00400000)%20erase%20functionality%20of%20S32K312.%3C%2FP%3E%3CP%3EThe%20below%20API%20functions%20have%20to%20be%20placed%20into%20SRAM%20(%22.ramcode%22%20section)%2C%20as%20the%20attached%20files(2.jpg).%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%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BCould%20you%20please%20let%20me%20know%20to%20resolve%20this%20issue%3F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2003945%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hard%20Fault%20in%20C40_Ip_MainInterfaceHVJobStatus%20api%20when%20flash%20is%20erase%20in%20s32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2003945%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Daniel.%3C%2FP%3E%3CP%3EThis%20issue%20is%20resolved.%3CBR%20%2F%3EThank%20you%20for%20your%20support.%3C%2FP%3E%3CP%3EBRs.%3C%2FP%3E%3CP%3EEddie%20Park%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2002942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hard%20Fault%20in%20C40_Ip_MainInterfaceHVJobStatus%20api%20when%20flash%20is%20erase%20in%20s32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2002942%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243574%22%20target%3D%22_blank%22%3E%40EddiePark%3C%2FA%3E%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20specify%20the%20RTD%20revision.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EDoes%20the%20fault%20occur%20during%20or%20after%20the%20flash%20operation%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIf%20you%20are%20erasing%20the%20sector%20starting%20at%200x00400000%2C%20where%20is%20the%20application%20code%20located%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAs%20discussed%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-C40-IP-Hardware-Fault-Problem%2Ftd-p%2F1697432%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-C40-IP-Hardware-Fault-Problem%2Ftd-p%2F1697432%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EPlace%20this%20function%20to%20SRAM%20too%3A%3C%2FP%3E%0A%3CP%3EC40_Ip_MainInterfaceHVJobStatus()%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECheck%20the%20.map%20file%20to%20confirm%20the%20functions%20are%20in%20SRAM.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E