My code stuck in HARDFAULT handler

When i tried to integrate FreeRTOS with STM32 HAL library + Segger, my code catch hard fault.

Please find attached screenshot.


I recommend starting with the items here - paying particular attention to making sure you have configASSERT() defined and stack overflow checking on. If that doesn’t help, and if your IDE won’t decode the hard fault for you, the page also contains a link ( to information on how to decode a hard fault.