I’m trying to get esp-builtin working for debugging and uploading to a Seeed XAIO ESP32-C3. But I’m getting the above error. When I look at that path the firmware.bin file is there. I have v3.3.1 of platformio.
Here is my platformio.ini
[env:seeed_xiao]
platform = espressif32
board = seeed_xiao_esp32c3
framework = arduino
debug_tool = esp-builtin
upload_protocol = esp-builtin
monitor_speed = 115200
The build output:
Linking .pio/build/seeed_xiao/firmware.elf
Retrieving maximum program size .pio/build/seeed_xiao/firmware.elf
Checking size .pio/build/seeed_xiao/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 2.0% (used 6440 bytes from 327680 bytes)
Flash: [= ] 8.5% (used 111978 bytes from 1310720 bytes)
Building .pio/build/seeed_xiao/firmware.bin
esptool.py v4.6-dev
Creating esp32c3 image...
Merged 2 ELF sections
Successfully created esp32c3 image.
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esp-builtin
Uploading .pio/build/seeed_xiao/firmware.bin
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
adapter speed: 40000 kHz
** program_esp input args <0x10000 verify> **
** Programming Started **
Error: couldn't open {.pio/build/seeed_xiao/firmware.bin}
embedded:startup.tcl:1524: Error: ** Programming Failed **
in procedure 'program_esp'
in procedure 'program_error' called at file "/Users/cgriffin/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 434
at file "embedded:startup.tcl", line 1524
*** [upload] Error 1
Is this perhaps a case where the error message is not telling what really happened?