Skip to content

ESP32-S3 Espressif IDE FreeRTOS task debugging using Eclipse FreeRTOS plugin (IEP-897) #712

@zikalino

Description

@zikalino

This issue is moved from: espressif/esp-idf#10101

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.

General issue report

Hello. I am trying to setup FreeRTOS debugging (monitoring each task stack, priority and etc) via the Eclipse IDE plugin.

I use ESP32-S3 Devkit and I am debugging using built in USB JTAG. I setup the debug configuration as following (selected the right cfg):
image

and I can debug the ESP32-S3 without any issues (placing breakpoints and etc...)

I have read about FreeRTOS debuging plugin from the NXP:
https://mcuoneclipse.com/2016/07/06/freertos-kernel-awareness-for-eclipse-from-nxp/

I have downloaded this plugin and added it into my view. I have run the debugging session and placed a breakpoint in one of my FreeRTOS tasks. The FreeRTOS task view seemed to work as it loaded some usefull information about currently running tasks.

image

In order to use full potential of this plugin, I should enable GENERATE_RUN_TIME_STATS for my project in the sdkconfig. After doing so, I would expect the FreeRTOS task view to automatically refresh and show live statistics. After enabling this and building project again, It does not seem to work as expected:

When there are no breakpoints placed, the FreeRTOS task view shows nothing. As soon as I place a breakpoint, it fetches data and displays freertos task information. When I remove the breakpoint and run the code again, the data dissapears. I cant seem to understand how can I debug freertos task in real time. For some reason enabling the GENERATE_RUN_TIME_STATS did not work and it still warns me that I need to enable:

image

But you can see from my sdkconfig that it is enabled:
image

Did anyone else have similar issues with ESP32 FreeRTOS task debugging? I really hope to get some help regarding this as I feel this is a cool debugging feature and could help me out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions