S32K3 C40 IP Hardware Fault

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

S32K3 C40 IP Hardware Fault

1,308 Views
francescovico
Contributor III

I'm working on a Bootloader that reside in Code Flash Block 0 (From 0x400000 to 0x4FFFFF).

Any erase/write inside this block cause an Hard Fault even with:

  • C40_Ip_MainInterfaceSectorErase
  • C40_Ip_MainInterfaceSectorEraseStatus
  • C40_Ip_MainInterfaceWrite
  • C40_Ip_MainInterfaceWriteStatus

In SRAM.

Only erase/write in Code Flash Block 1 or 2 or 3 it's allowed.

My Application must reside in  Block 1 ?

The residual code flash Block 0 it's lost?

Regards, Francesco.

0 Kudos
Reply
3 Replies

1,287 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @francescovico 

To rule out a potential Read-While-Write Event Error (RWE), it is recommended to put flash operations into SRAM. This approach helps to prevent such errors.

Please refer following thread, which includes an example code.

S32K312_C40_Ip_SRAM_RTD_500_DS35

 

BR, VaneB

0 Kudos
Reply

1,259 Views
francescovico
Contributor III

Hi @VaneB ,

I have solved the problem putting also the functions below in SRAM:

-SchM_Enter_Mem_43_INFLS_MEM_EXCLUSIVE_AREA_01

- ....

-SchM_Exit_Mem_43_INFLS_MEM_EXCLUSIVE_AREA_23

- All C40_Ip functions

Unfortunally these functions are in RTD and at each code generation by ConfigTools the functions are restored at original version.

Regards, Francesco. 

 

0 Kudos
Reply

1,238 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @francescovico 

I am glad to hear the issue has been solved.

Any changes made to the RTD files will be automatically reverted to their original state each time ConfigTools performs an update.

0 Kudos
Reply