ESP32-C6-devkitc embedded:startup.tcl:26: Error: Can't find board/None using esp-prog or esp-builtin

New to PlatformIO in VS Code so likely doing something dumb. Any feedback would be welcome including RTFM (with reference to the manual :slight_smile: How does PlatformIO configure the board designation for “embedded:startup.tcl” from the .ini file?

Hello World code compiles and runs perfectly when downloaded serially via bootloader.

Attempting to debug using esp-prog or esp-builtin and I get a embedded:startup.tcl:26: Error: Can’t find board/None error just after compiling when PlatformIO goes to download.

Here are the two .ini configurations and related error messages.

[env:esp32-c6-devkitc-1]
platform = espressif32
board = esp32-c6-devkitc-1
framework = espidf
monitor_speed = 115200
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup
debug_speed = 1000
build_type = debug
debug_build_flags = -O0 -g -ggdb
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-prog
Uploading .pio\\build\\esp32-c6-devkitc-1\\firmware.bin
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

debug_level: 1

adapter speed: 20000 kHz

embedded:startup.tcl:26: Error: Can’t find board/None
in procedure ‘script’
at file “embedded:startup.tcl”, line 26
\*\*\* \[upload\] Error 1

And

debug_tool = esp-builtin
upload_protocol = esp-builtin

Successfully created esp32c6 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\\esp32-c6-devkitc-1\\firmware.bin
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

debug_level: 1

adapter speed: 40000 kHz

embedded:startup.tcl:26: Error: Can’t find board/None
in procedure ‘script’
at file “embedded:startup.tcl”, line 26
\*\*\* \[upload\] Error 1