Skip to main content
LMorr.3
Senior
April 15, 2022
Solved

CubeMX Task Name Length

  • April 15, 2022
  • 1 reply
  • 690 views

When I attempt to create a task with a name longer than 15 characters, CubeMX seems to truncate to 15 characters max. How do I name a Task in CubeMX longer than 15 characcters?

This topic has been closed for replies.
Best answer by Artur IWANICKI

Please change MAX_TASK_NAME_LEN (FreeRTOS 'Config parameters' tab) to desired length+1 (this +1 is for NULL at the end of the string). By default it is set to 16 this is why you can use max 15 characters within task name.

1 reply

Artur IWANICKIBest answer
ST Employee
April 28, 2022

Please change MAX_TASK_NAME_LEN (FreeRTOS 'Config parameters' tab) to desired length+1 (this +1 is for NULL at the end of the string). By default it is set to 16 this is why you can use max 15 characters within task name.