AnsweredAssumed Answered

HardFault_Handler stm32Cube Stm32F429ZGT6 SHCSR Systick

Question asked by allahyarzadeh.reza on May 4, 2016
Latest reply on May 8, 2016 by Clive One
Hey guys,
I'm using Stm32F429ZGT6 on my own PCB and with STM32CubeMX code generator and Ewarm IAR workbench.
I have a problem with HardFault_Handler which happens some times,very random.
and when I checked the SHCSR register during debugging using ST-link
I saw that whenever I have hard fault error my PC jumps to this handler and LR is a irrelevant address:(
and  the SHCSR  register indicates a 0x00000800 which according to cortex m4 datasheet the 1 bit is for the SYSTICKACT and as I understood it's the systick exception active bit.
 which means when the interrupt for systick handler have had longer time than the systick itself! and that means we should have another interrupt with higher priority which takes longer time,
and that's what I don't have really! and systick is in the highest priority.
I don't know whether the problem is this or something else but this random situation occurrence increase whenever I increase the main clock frequency!
which I thought it shouldn't be.

I'm really open to try new thoughts and know the reason of this,
so please if anyone know what causes this and what should I do, please let me know.
Thanks in advance:)

Outcomes