I keep getting this error:
ERROR Running command failed: Could not open COM16, the port is busy or doesn't exist.
(could not open port 'COM16': PermissionError(13, 'Access is denied.', None, 5))
it is the right port
how to put the board in ready flash mode?
how to set the correct YAML?
I have the following:
esphome:
name: esp32-c6-device
platformio_options:
build_flags:
- "-DESP32_C6" # Optional, for compatibility
esp32:
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
version: recommended # Or 'latest' for bleeding edge
# sdkconfig_options: # Optional advanced tweaks if needed