Systick interrupt causes HardFault

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

Systick interrupt causes HardFault

2,059件の閲覧回数
davithakobyan
Contributor III

Hi,

I face a HardFault problem when using the LIN master example together with initializing Systick interrupt.

To reproduce the problem one should simply create a LIN master project from the examples using S32 Design Studio for S32K144EVB-Q100 board. Once the project is create initialize Systick like in the figure below:

Image 1.png

So basically the program does nothing except initializing the system and systick clocks (although the problem may persist even without system clock initialization), however, when debugging the program ends up in the HardFault and the SysTick_Handler is never called. The HardFault seems to be triggered when it is time for Systick interrupt to appear.

Changing slightly some irrelevant code may make the program again work (i.e. triggerint Systick interrupt), which points rather to RAM corruption.

Can NXP team confirm this?

Thanks a lot.

0 件の賞賛
返信
2 返答(返信)

1,847件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I have tried to reproduce the hardfault following your description with SDK v2.9.2, but it triggers the SysTick interrupt as expected.

pastedImage_2.png

Which SDK version do you use?

Thanks,

Daniel

0 件の賞賛
返信

1,847件の閲覧回数
davithakobyan
Contributor III

Thank you for your comment.

I have SDK BETA 2.9.2 version.

Unfortunately, on the next day I could also not reproduce the behavior.

Close the issue for now.

0 件の賞賛
返信