Esp32 debugging

I’m a newbie using the esp32 board(esp-wrover-kit) for the first time, and I have the following questions;

  1. I opened the espidf-arduino-blink project in platformio, and I could see that framework = arduino, espidf was set. Can I use both frameworks?
[env]
platform = espressif32
framework = arduino, espidf
build_flags =
    -D CONFIG_BLINK_GPIO=2
monitor_speed = 115200
  1. When debugging the esp-wrover-kit board (ftdi interface), the following warning message is displayed. How can I modify it?
undefinedC:\Users\JJS\.platformio\packages\toolchain-xtensa-esp32\bin\xtensa-esp32-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.

Reading symbols from c:\Users\JJS\Documents\PlatformIO\Projects\esp_wrover_kit_ve\.pio\build\esp-wrover-kit\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = ftdi
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz

WARNING: boards/esp32-wrover.cfg is deprecated, and may be removed in a future release.
         If your board is ESP32-WROVER-KIT, use board/esp32-wrover-kit-1.8v.cfg instead.
adapter speed: 5000 kHz

  1. Debugging with ftdi is too slow, is there any way to speed it up?
[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = arduino
  1. What is the default debugger for platformio? openocd?

Yes per platform-espressif32/examples/espidf-arduino-blink at develop · platformio/platform-espressif32 · GitHub and multiple posts in this forum.

Non-critical warning, already tracked.

debug_speed.

For Platform-espressif32, it is openocd. Other platforms and microcontrollers can use other GDB servers, like pyocd, JLinkGDBServer, avarice, …

1 Like