Hi there,
So , It has been a challenge to try and use PLIO for C6. I swear they want us to ONLY use ESP-IDF and they try hard NOT to support anything else. I for one like PLIO because the Debugger actually works, When Espressif first did the rug pull on everyone to 5.1 of IDF, the work around beside the Platform.ini proper setup was to install a Board Support Package say 3.1.1 in Arduino IDE, then when using Platform IO You could use the (use arduino IDE LIBs) and the Board package would show up in PLIO. With the C6 this AFAIK this doe NOT work anymore.
C6 sketches GIT hub
Follow the read me, and see if it yields the results.
The latest info I see on the subject , here is a seeed version of the INI,
[env:seeed_xiao_esp32_c6]
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = seeed-xiao-c6
framework = arduino
If you prefer to use Espressif’s official PlatformIO platform, you can create a custom board definition for the XIAO ESP32C6:
- Create Custom Board File: Navigate to your PlatformIO boards directory (typically located at
~/.platformio/boards/
) and create a new file named seeed_xiao_esp32c6.json
with the following content:ESP32 Forum+1PlatformIO Community+1
{
"build": {
"core": "esp32",
"mcu": "esp32c6",
"f_cpu": "160000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"variant": "esp32c6"
},
"connectivity": ["wifi"],
"frameworks": ["arduino", "espidf"],
"name": "Seeed Studio XIAO ESP32C6",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 4194304,
"require_upload_port": true,
"speed": 460800
},
"url": "https://www.seeedstudio.com/XIAO-ESP32C6-p-5749.html",
"vendor": "Seeed Studio"
}
- Modify
platformio.ini
: Update your project’s platformio.ini
file as follows:PlatformIO Community+2Seeed Studio+2PlatformIO Documentation+2
[env:seeed_xiao_esp32c6]
platform = espressif32
board = seeed_xiao_esp32c6
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
This approach allows you to use the standard Espressif platform with a custom board definition tailored for the XIAO ESP32C6.
NOTE: You may want to re-install, the most recent PlatformIO installs the latest Espressif32 platform (version 6.x+), which includes ESP32C6 support:
HTH
GL
PJ 