How to use JTAG built-in debugger of the ESP32-S3 in PLATFORMIO

I believe this guide is outdated. Yesterday, I spent about an hour following those parameters for my ESP32S3 Freenove WROOM board, but I later discovered that if you don’t include any special parameters in the INI configuration, the debugger works fine.

With the latest version of PlatformIO, you only need a basic S3 configuration for debugging using the native USB-C JTAG interface—nothing more. For example:

[env:esp32s3]
framework = arduino
platform = espressif32
board = esp32-s3-devkitc-1
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = 
  esp32_exception_decoder
build_type = debug
build_flags =
  -D CORE_DEBUG_LEVEL=5
  -D ARDUINO_USB_CDC_ON_BOOT=1
2 Likes