Calling vTaskList() inside IDLE task

michaeln32 wrote on Tuesday, March 13, 2018:


Is it safe to call the API vTaskList() inside Idle task ?

Thank you


rtel wrote on Tuesday, March 13, 2018:

vTaskList() does not call any blocking functions, so yes it should be safe. You need to make sure you give the idle task enough stack space, especially if you are going to use formatted text output. The stack size for the idle task is set by configMINIMAL_STACK_SIZE in FreeRTOSConfig.h.

michaeln32 wrote on Wednesday, March 14, 2018:

Thank you very much Richard.