FreeRTOS Task Aware Debugger?
FreeRTOS Task Aware Debugger?
I like NXP's Task Aware Debugger extension for Eclipse. See https://mcuoneclipse.com/2017/03/18/bet ... n-eclipse/
It is so useful to quickly see tasks and their stack sizes and usage.
But I wasn't able to get it to work with ESP32. Is there a way to use it with ESP32, or perhaps a similar extension?
It is so useful to quickly see tasks and their stack sizes and usage.
But I wasn't able to get it to work with ESP32. Is there a way to use it with ESP32, or perhaps a similar extension?
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: FreeRTOS Task Aware Debugger?
It is part of the debug adapter for our Visual Studio Code ESP-IDF extension coming very very soon
-
- Posts: 34
- Joined: Thu Dec 24, 2015 12:04 pm
Re: FreeRTOS Task Aware Debugger?
How far away are we from seeing this? I really want to stop using Eclipse and switch to VS Code.
Also, if you want a beta tester I'm happy to help.
Regards,
Mark
Also, if you want a beta tester I'm happy to help.
Regards,
Mark
-
- Posts: 3
- Joined: Tue Jun 09, 2020 8:28 pm
Re: FreeRTOS Task Aware Debugger?
Hi ,
i would like to have that too! Any news about it?
Normal debugguing with VSCode works pretty well, but i'm not able to debug any subtask...
Best,
Monkey
i would like to have that too! Any news about it?
Normal debugguing with VSCode works pretty well, but i'm not able to debug any subtask...
Best,
Monkey
-
- Posts: 2
- Joined: Sat Mar 06, 2021 10:48 am
Re: FreeRTOS Task Aware Debugger?
Are there any updates regarding this featue?ESP_bignacio wrote: ↑Tue Mar 17, 2020 9:54 amIt is part of the debug adapter for our Visual Studio Code ESP-IDF extension coming very very soon
-
- Posts: 2
- Joined: Sat Mar 06, 2021 10:48 am
Re: FreeRTOS Task Aware Debugger?
Is anyone alive here?
Re: FreeRTOS Task Aware Debugger?
BUMP! Is there any update on this?
-
- Posts: 2
- Joined: Tue Aug 25, 2020 1:27 am
Re: FreeRTOS Task Aware Debugger?
Hello,
ST has the same and I like it so I fixed it on eclipse for ESP (Only tested for ESP32-S2 and mostly interested in cpu usage)
VSCode is awesome for developing but its awful for debugging in my opinion...
1. Install FreeRTOS Task Aware Debugger from http://freescale.com/lgfiles/updates/Eclipse/KDS like this guide https://mcuoneclipse.com/2017/03/18/bet ... n-eclipse/
2. tick in sdkconfig: Component Config -> FreeRTOS -> Enable FreeRTOS to collect runtime stats
3. Go to esp_idf_components/freertos/tasks.c
Find: PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL;
(It's at line 430 now)
a) You can either add "volatile" in front of it:
b) Disable GCC optimization for this variable:
Future prof notice: If something doesn't work you can open the nxp jar located in \tools\espressif-ide\2.6.0\plugins with "jd gui" and view what variables tries to read. If something is "optimized out" while debugging you have to make it volatile so the plugin can read its value. I don't think that ESP team changed FreeRTOS variable names so it will be just the optimization if something doesn't work.
ST has the same and I like it so I fixed it on eclipse for ESP (Only tested for ESP32-S2 and mostly interested in cpu usage)
VSCode is awesome for developing but its awful for debugging in my opinion...
1. Install FreeRTOS Task Aware Debugger from http://freescale.com/lgfiles/updates/Eclipse/KDS like this guide https://mcuoneclipse.com/2017/03/18/bet ... n-eclipse/
2. tick in sdkconfig: Component Config -> FreeRTOS -> Enable FreeRTOS to collect runtime stats
3. Go to esp_idf_components/freertos/tasks.c
Find: PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL;
(It's at line 430 now)
a) You can either add "volatile" in front of it:
Code: Select all
volatile PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL;
b) Disable GCC optimization for this variable:
Code: Select all
#pragma GCC push_options
#pragma GCC optimize ("O0")
PRIVILEGED_DATA static uint32_t ulTotalRunTime = 0UL;
#pragma GCC pop_options
Who is online
Users browsing this forum: No registered users and 16 guests