Skip to main content
Visitor II
March 18, 2026
Question

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

  • March 18, 2026
  • 1 reply
  • 132 views

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

Andrei Chichak
Lead
March 18, 2026

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).