Skip to main content
Visitor II
August 5, 2020
Question

Getting Hard fault interrupt while creating task in FreeRTOS MPU application

  • August 5, 2020
  • 1 reply
  • 1080 views

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

    This topic has been closed for replies.

    1 reply

    Super User
    August 6, 2020

    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.