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.

Thanks
Parth

I recommend starting with the items here https://www.freertos.org/FAQHelp.html - 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 (https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html) to information on how to decode a hard fault.