cancel
Showing results for 
Search instead for 
Did you mean: 

After FreeRTOS is started, the function call stack becomes full and the system crashes.

ransheng
Associate

Create a FreeRTOS project, keeping all settings at default configuration. Use CMake for building. The steps for creating the project are as follows:

freertos_config.pnggen.pngRCC.pngrcc_config.pngtim16.png

When the first task is initiated, a large number of recursive functions will appear in the function call stack.

error.png

 

 

1 REPLY 1
Andrei Chichak
Lead II

How much memory is allocated to your defaultTask in the <Tasks and Queues> tab?

Increase that number.

You are calling osDelay, that is going to put stuff on the stack. You can check the remaining stack allocation by calling uxTaskGetStackHighWaterMark(NULL).