|
156 | 156 | #define configIDLE_TASK_NAME "IDLE"
|
157 | 157 | #endif
|
158 | 158 |
|
| 159 | +/* Reserve space for Core ID and null termination. */ |
159 | 160 | #if ( configNUMBER_OF_CORES > 1 )
|
160 |
| - /* Reserve space for Core ID and null termination. */ |
| 161 | + /* Multi-core systems with up to 9 cores require 1 character for core ID and 1 for null termination. */ |
161 | 162 | #if ( configMAX_TASK_NAME_LEN < 2U )
|
162 | 163 | #error Minimum required task name length is 2. Please increase configMAX_TASK_NAME_LEN.
|
163 | 164 | #endif
|
164 | 165 | #define taskRESERVED_TASK_NAME_LENGTH 2U
|
165 | 166 |
|
166 |
| -#elif ( configNUMBER_OF_CORES > 9 ) |
167 |
| - #warning Please increase taskRESERVED_TASK_NAME_LENGTH. 1 character is insufficient to store the core ID. |
168 |
| -#else |
| 167 | +#else /* if ( configNUMBER_OF_CORES > 1 ) */ |
169 | 168 | /* Reserve space for null termination. */
|
170 | 169 | #if ( configMAX_TASK_NAME_LEN < 1U )
|
171 | 170 | #error Minimum required task name length is 1. Please increase configMAX_TASK_NAME_LEN.
|
@@ -3597,7 +3596,12 @@ static BaseType_t prvCreateIdleTasks( void )
|
3597 | 3596 | * only one idle task. */
|
3598 | 3597 | #if ( configNUMBER_OF_CORES > 1 )
|
3599 | 3598 | {
|
3600 |
| - /* Append the idle task number to the end of the name. */ |
| 3599 | + /* Append the idle task number to the end of the name. |
| 3600 | + * |
| 3601 | + * Note: Idle task name index only supports single-character |
| 3602 | + * core IDs (0-9). If the core ID exceeds 9, the idle task |
| 3603 | + * name will contain an incorrect ASCII character. This is |
| 3604 | + * acceptable as the task name is used mainly for debugging. */ |
3601 | 3605 | cIdleName[ xIdleTaskNameIndex ] = ( char ) ( xCoreID + '0' );
|
3602 | 3606 | cIdleName[ xIdleTaskNameIndex + 1 ] = '\0';
|
3603 | 3607 | }
|
|
0 commit comments