Closed fanghuaqi closed 1 month ago
I checked other porting code, found that only main core need to execute main
function, which including task creating and vTaskStartScheduler, other cores should only execute xPortStartScheduler
and some other code to initialize required core interrupt controller.
According to the source code here https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/067d04e44e00f9970f43a44d3325f0c4e035523e/timers.c#L294-L301
When configNUMBER_OF_CORES = 1 and configUSE_CORE_AFFINITY = 0, it will go to above lines, and this
xTimerCreateTimerTask
function will be call in each cpu viavTaskStartScheduler
called from main.https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/067d04e44e00f9970f43a44d3325f0c4e035523e/tasks.c#L3665-L3690
But it seems it doesn't create different stack for different cpu's timer task like the idle task, is it made on intent?
Thanks