ECC SRAM double-bit error injected triggers hardfault

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ECC SRAM double-bit error injected triggers hardfault

ソリューションへジャンプ
1,685件の閲覧回数
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,668件の閲覧回数
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,630件の閲覧回数
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,669件の閲覧回数
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 件の賞賛
返信