Multithreading Debugging in VSCode Fails with Amazon SMP FreeRTOS Kernel on ESP32-S3 (ESP-IDF 5.3.1)
Posted: Fri Oct 11, 2024 5:08 pm
Hi everyone,
I'm experiencing issues with multithreading debugging in VSCode when using the "Eclipse CDT GDB Adapter" for a project compiled with the Amazon SMP FreeRTOS kernel. Specifically, I'm using the "Run the Amazon SMP FreeRTOS kernel instead" option in ESP-IDF 5.3.1 on an ESP32-S3.
When I try to debug, GDB shows errors indicating that it cannot find FreeRTOS symbols, such as:
After analyzing the .map files, I noticed that with the standard FreeRTOS kernel, the symbol xSchedulerRunning exists:
But when using the Amazon SMP FreeRTOS kernel, the closest symbol I can find is:
It seems like GDB is still searching for the old FreeRTOS symbols. Is there a way to configure GDB or VSCode to work correctly with the Amazon SMP FreeRTOS kernel?
Steps to reproduce:
Thanks in advance, Ramiro
I'm experiencing issues with multithreading debugging in VSCode when using the "Eclipse CDT GDB Adapter" for a project compiled with the Amazon SMP FreeRTOS kernel. Specifically, I'm using the "Run the Amazon SMP FreeRTOS kernel instead" option in ESP-IDF 5.3.1 on an ESP32-S3.
When I try to debug, GDB shows errors indicating that it cannot find FreeRTOS symbols, such as:
Code: Select all
Warn : RTOS FreeRTOS not detected. (GDB could not find symbol 'xSchedulerRunning')
Code: Select all
.bss.xSchedulerRunning 0x3fc96b38 0x4 esp-idf/freertos/libfreertos.a(tasks.c.obj)
Code: Select all
.bss.xSchedulerRunningPerCore 0x3fc95d04 0x8 esp-idf/freertos/libfreertos.a(tasks.c.obj)
Steps to reproduce:
- Use ESP32-S3 with ESP-IDF version 5.3.1.
- Compile the blink example with the "Run the Amazon SMP FreeRTOS kernel instead" option.
- Attempt to debug using the "Eclipse CDT GDB Adapter" in VSCode.
Thanks in advance, Ramiro