Skip to main content
LMorr.3
Senior
Apr 15, 2022 6:56 PM UTC
Solved

CubeMX Task Name Length

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.
Artur IWANICKIBest answer
ST Employee
Apr 28, 2022 6:37 AM UTC

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
Apr 28, 2022 6:37 AM UTC

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.