Systick interrupt causes HardFault

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

Systick interrupt causes HardFault

1,071 Views
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 Kudos
2 Replies

859 Views
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 Kudos

859 Views
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 Kudos