Getting hard fault handler issue while running
Hi all,
I am working on a project which is based on freertos on stm32l476rg. I have added STM32CubeExpansion_CELLULAR_V5.2.0 into my project and while running I am getting hard fault handler before control comes to main function.
These are the remedies I tried
- Increased stack size and checked
- I referred this document to check the hard fault handler issue (page number 4)

https://www.segger.com/downloads/application-notes/AN00016 shown in the above picture, I changed the variable 'var' to 1 in runtime in expression window in the stm32cubeide to find the root cause of hard fault handler while stepping out of the breakpoint which I set in the line number 96 in the code.
I checked the fault analyzer also and here I attached fault analyzer window
I am not getting where could be the issue? Please can anybody help me out?
