platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
937 stars 635 forks source link

Use updated openocd configuration files #478

Open maxgerhardt opened 3 years ago

maxgerhardt commented 3 years ago

When debugging with

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino

upload_protocol = esp-prog
debug_tool = esp-prog
debug_init_break = tbreak setup

The board definition says

https://github.com/platformio/platform-espressif32/blob/883518fa60efc9738f53f6743216be435e5ff1fe/boards/esp32dev.json#L20-L22

but further the openocd config says

echo "WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release."
set ESP32_FLASH_VOLTAGE 3.3
source [find target/esp32.cfg]

so users will receive a

*WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release*.

warning which might confuse them.

It would be good to update the openocd_board value and maybe add a additional parameter to set the flash voltage, so that it's also nicely and independenly configurable I think.

Bobobel commented 1 month ago

Where is that "enhancement"? The warning still apears to date!

Jason2866 commented 1 month ago

The feature request is still open and not implemented