Skip to content

Unable to call to function vTaskList (GIT8266O-190) #495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zinahe opened this issue Feb 23, 2019 · 3 comments
Closed

Unable to call to function vTaskList (GIT8266O-190) #495

zinahe opened this issue Feb 23, 2019 · 3 comments

Comments

@zinahe
Copy link

zinahe commented Feb 23, 2019

In trying to generate a run-time stat about running tasks, I tried to call vTaskList but it fails with the following error message:

undefined reference to `vTaskList'
collect2: error: ld returned 1 exit status

Based on a recommendation found in ESP32 forums I did try to enable it's use in components/freertos/include/freertos/FreeRTOS.h by setting
configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS as follows

#ifndef configUSE_STATS_FORMATTING_FUNCTIONS
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
#endif

#ifndef configUSE_TRACE_FACILITY
#define configUSE_TRACE_FACILITY 1
#endif

A similar issue can be found here

@zinahe zinahe changed the title Failed to make use of functions vTaskList/vTaskGetRunTimeStats for runtime stats Functions vTaskList/vTaskGetRunTimeStats fail Feb 23, 2019
@zinahe zinahe changed the title Functions vTaskList/vTaskGetRunTimeStats fail Unable to call to function vTaskList Feb 23, 2019
@donghengqaz
Copy link
Collaborator

"configUSE_TRACE_FACILITY", "configUSE_STATS_FORMATTING_FUNCTIONS" and "configSUPPORT_DYNAMIC_ALLOCATION" should be set to be "1" at "FreeRTOSConfig.h".

Mr-Pi pushed a commit to Mr-Pi/ESP8266_RTOS_SDK that referenced this issue Apr 20, 2019
This commit makes configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS
configurable in kconfig.

Closes espressif#495
@joaorsbarbosa
Copy link

I'm still unable to call vTaskList even with @donghengqaz solution. Those values are already set to 1 on my system

@github-actions github-actions bot changed the title Unable to call to function vTaskList Unable to call to function vTaskList (GIT8266O-190) Jun 13, 2019
@donghengqaz
Copy link
Collaborator

Using SDK of release/v3.1 or newer version, you can only enable at "make menuconfig":

Component config
    ---> FreeRTOS
          ---> Enable FreeRTOS trace facility
              ---> Enable FreeRTOS stats formatting function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants