Multithreading Debugging in VSCode Fails with Amazon SMP FreeRTOS Kernel on ESP32-S3 (ESP-IDF 5.3.1)

rutrilla
Posts: 1
Joined: Fri Oct 11, 2024 4:56 pm

Multithreading Debugging in VSCode Fails with Amazon SMP FreeRTOS Kernel on ESP32-S3 (ESP-IDF 5.3.1)

Postby rutrilla » 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:

Code: Select all

Warn : RTOS FreeRTOS not detected. (GDB could not find symbol 'xSchedulerRunning')
After analyzing the .map files, I noticed that with the standard FreeRTOS kernel, the symbol xSchedulerRunning exists:

Code: Select all

.bss.xSchedulerRunning 0x3fc96b38 0x4 esp-idf/freertos/libfreertos.a(tasks.c.obj)
But when using the Amazon SMP FreeRTOS kernel, the closest symbol I can find is:

Code: Select all

.bss.xSchedulerRunningPerCore 0x3fc95d04 0x8 esp-idf/freertos/libfreertos.a(tasks.c.obj)
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:
  • 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.
Any help or suggestions would be greatly appreciated!

Thanks in advance, Ramiro

Who is online

Users browsing this forum: No registered users and 364 guests