2020-08-05 01:15 PM
HI All,
I am using STM32 nucleo-L4A6ZG development board.
And I am implementing FreeRTOS MPU application with help of NUCLEO-L476RG FreeRTOS_MPU example code.
I have replaced ARM_CM4F with ARM_CM4_MPU. Added mpu_wrappers.c file in my current project. And done some necessary changes in .ld file with reference of NUCLEO-L476RG FreeRTOS_MPU code .
While running when I am trying to create any task , But getting Hard fault interrupt.
My observation :
While executing line no 88 of vListInsertEnd (list.c) function getting hard fault interrupt
For more information, ld file and FreeRTOSConfig.h added.
Thanks
Rahul
2020-08-05 08:09 PM
How much stack/heap does your program use?
If you're always getting a hard fault regardless of the code, increase stack size and try again.
If you're getting a hard fault at a specific line, debug the hard fault to find the cause. Possibly your pointer is invalid.