Skip to main content
PDeva.1
Visitor II
Sep 11, 2020 7:10 AM UTC
Solved

Free RTOS not working in stm32F4 discovery

I have created a basic project using STM32Cube IDE to turn on LED ON and OFF.

Successfully compiled.But when I debug the project, the processor jumps to the Hard Fault Handler.

So I checked the Fault Analyzer window, it shows that BUS,Memory or Usage Fault forced and PC points to the this function "prvPortStartFirstTask".

I am not sure that what kind of problem has occurred.

This topic has been closed for replies.
Imen.DBest answer
ST Technical Moderator
Sep 15, 2020 4:18 PM UTC

Hello @PDeva.1​ ,

You should manually set priorities as recommended in these discussions: Link1 and Link2.

Our team is working on this issue to improve STM32CubeMx tool.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

1 reply

Imen.DBest answer
ST Technical Moderator
Sep 15, 2020 4:18 PM UTC

Hello @PDeva.1​ ,

You should manually set priorities as recommended in these discussions: Link1 and Link2.

Our team is working on this issue to improve STM32CubeMx tool.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks