ECC SRAM double-bit error injected triggers hardfault

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

ECC SRAM double-bit error injected triggers hardfault

跳至解决方案
1,680 次查看
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 项奖励
回复
1 解答
1,663 次查看
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 项奖励
回复
2 回复数
1,625 次查看
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 项奖励
回复
1,664 次查看
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 项奖励
回复