cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Hard fault interrupt while creating task in FreeRTOS MPU application

RMane.1
Associate II

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

0693W000003CFdxQAG.jpg

1 REPLY 1
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".