ECC SRAM double-bit error injected triggers hardfault

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

ECC SRAM double-bit error injected triggers hardfault

Jump to solution
1,676 Views
n00b123
Contributor II

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!

0 Kudos
Reply
1 Solution
1,659 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,621 Views
n00b123
Contributor II

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.

0 Kudos
Reply
1,660 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply