Skip to content
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

vTaskList() creates an ugly table when CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID enabled (IDFGH-11759) #12858

Closed
3 tasks done
ataweg opened this issue Dec 21, 2023 · 1 comment
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@ataweg
Copy link

ataweg commented Dec 21, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.2-dev-4169-gbf816394d4

Espressif SoC revision.

ESP32

Operating System used.

Windows

How did you build your project?

Command line with CMake

If you are using Windows, please specify command line type.

None

Development Kit.

custom

Power Supply used.

External 5V

What is the expected behavior?

Task Name       Status  Prio    CoreID  HWM     Task#
main            X       1        0      980     4
IDLE1           R       0        1      1004    6
IDLE0           R       0        0      1016    5
appButtonTask   B       5       -1      736     9
appUserControlT B       8       -1      1084    15
appRMSTask      B       10       1      1112    10
appLedTask      B       5       -1      316     8
tiT             B       18      -1      1408    12
statusBroadcast B       9       -1      2360    17
rms_tableBroadc B       9       -1      3388    18
appDisplayTask  B       5       -1      1732    11
ipc0            S       1        0      260     1
sys_evt         B       20       0      760     13
appHttpServer   B       7       -1      5036    16
ipc1            S       24       1      344     2
esp_timer       S       22       0      1592    3
wifi            B       23       0      3900    14
Tmr Svc         B       1        0      3392    7

What is the actual behavior?

Task Name       Status  Prio    CoreID  HWM     Task#
main            X       1       0       980     4
IDLE1           R       0       1       1004    6
IDLE0           R       0       0       1016    5
appButtonTask   B       5       2147483647      736     9
appUserControlT B       8       2147483647      1084    15
appRMSTask      B       10      1       1112    10
appLedTask      B       5       2147483647      316     8
tiT             B       18      2147483647      1408    12
statusBroadcast B       9       2147483647      2348    17
rms_tableBroadc B       9       2147483647      3184    18
appDisplayTask  B       5       2147483647      1744    11
ipc0            S       1       0       260     1
sys_evt         B       20      0       760     13
appHttpServer   B       7       2147483647      5036    16
ipc1            S       24      1       344     2
esp_timer       S       22      0       1620    3
wifi            B       23      0       3900    14
Tmr Svc         B       1       0       3392    7

Steps to reproduce.

build and run application

Debug Logs.

No response

More Information.

I fixed it with
C:\Espressif\frameworks\esp-idf-v5.0\components\freertos\FreeRTOS-Kernel\tasks.c, line 5440

                /* Write the rest of the string. */
                #if ( configTASKLIST_INCLUDE_COREID == 1 )
                {
                    sprintf( pcWriteBuffer, "\t%c\t%u\t%2d\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, pxTaskStatusArray[ x ].xCoreID == 0x7FFFFFFF ? -1 : pxTaskStatusArray[ x ].xCoreID, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */
                }

@ataweg ataweg added the Type: Bug bugs in IDF label Dec 21, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 21, 2023
@github-actions github-actions bot changed the title vTaskList() creates an ugly table when CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID enabled vTaskList() creates an ugly table when CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID enabled (IDFGH-11759) Dec 21, 2023
@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: Opened Issue is new labels Dec 22, 2023
@o-marshmallow
Copy link
Collaborator

o-marshmallow commented Dec 22, 2023

Hello @ataweg ,

Thanks for reporting this issue, an internal MR has been opened.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Reviewing Issue is being reviewed labels Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants