1881601_en-US

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

1881601_en-US

1881601_en-US

ECC SRAM double-bit error injected triggers hardfault

Hi,

I am using Error inject Module to inject double-bit to SRAM_U, and the all codes about eim or erm are copied from the link:Example S32K14x SRAM ECC Injection - NXP Community The example from the link does not trigger the hardfault and I have made my code identical to the example.So what's wrong with my code?Can anyone do me a favor? Thanks!

Re: ECC SRAM double-bit error injected triggers hardfault

Hi, Thank you for responding, I have compared the example with my code one by one and find the difference in linker files, that my linker files has not defined the __flash_vector_table__ which means the vector table will be copied into SRAM_U, this is the reason causes the bug.

Re: ECC SRAM double-bit error injected triggers hardfault

Hi @n00b123,

First of all, you can debug the exception following this document / example:

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

In SRAM_U, there is the stack, so there can be an issue on a function exit.

What S32K1xx part do you have?

If you have S32K11x, in SRAM_U, there is also the copy of the interrupt vector table.

The example you linked disables the copying of the table from PFlash to SRAM.


Regards,

Daniel


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:07 PM
Updated by: