Systick interrupt causes HardFault

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

Systick interrupt causes HardFault

2,477 次查看
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 回复数

2,265 次查看
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 项奖励
回复

2,265 次查看
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 项奖励
回复