How to enable vTaskList using PlatformIO and Arduino Framework
Posted: Mon Feb 10, 2025 5:03 pm
I’m new to FreeRTOS, but have 30+ years experience of writing code for embedded systems. I’ve use a variety of task schedulers during that time.
I am just experimenting at the moment. I’m using FreeRTOS V10.4.3 with an ESP32 dev board. I’d like to see what tasks are running, in addition to those that I explicitly created. If I use vTaskList in my code, it compiles okay, but I get a linker error because it can’t find vTaskList.
The espressif FreeRTOS(IDF) says “configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS must both be defined as 1 for this function to be available.”
I tried editing “C:\Users\David.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\include\freertos\include\esp_additions\freertos\FreeRTOSConfig.h” to define those two macros as 1, then rebuilt my code in PlatformIO, but that didn’t fix it.
I checked I was editing the FreeRTOSConfig.h that my build uses by putting a deliberate syntax error in that file and checked the build failed to compile due the syntax error.
How do I get it to build so that vTaskList is available to the linker?
TIA for any help.
I am just experimenting at the moment. I’m using FreeRTOS V10.4.3 with an ESP32 dev board. I’d like to see what tasks are running, in addition to those that I explicitly created. If I use vTaskList in my code, it compiles okay, but I get a linker error because it can’t find vTaskList.
The espressif FreeRTOS(IDF) says “configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS must both be defined as 1 for this function to be available.”
I tried editing “C:\Users\David.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\include\freertos\include\esp_additions\freertos\FreeRTOSConfig.h” to define those two macros as 1, then rebuilt my code in PlatformIO, but that didn’t fix it.
I checked I was editing the FreeRTOSConfig.h that my build uses by putting a deliberate syntax error in that file and checked the build failed to compile due the syntax error.
How do I get it to build so that vTaskList is available to the linker?
TIA for any help.