XIAO ESP32C6 in PlatformIO

There’s a tutorial on using the Xiao ESP32-C6 on PlatformIO in the Wiki. However there is another approach that some might find easier: pioarduino which is a fork of platform-espressif32 by Jason2866. Just use

platform = https://github.com/pioarduino/platform-espressif32.git#develop
board = seeed_xiao_esp32c6

in platformio.ini.

All the sketches in sigmdel/xiao_esp32c6_sketches can be compiled with the develop branch of the pioarduino fork. They can also be compiled with the stable branch if the seeed_xiao_esp32c6.json board definition file is added in a local directory.

Many thanks to Jason2866 for all that work.

2 Likes

Thank u very much. I will give it a try and report back……

Hello, I tried this without success, it downloads and install all needed packages, but I get the following output:

Building in release mode
Compiling .pio\build\seeed_xiao_esp32c6\FrameworkArduinoVariant\variant.cpp.o
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/Heikki/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
Compiling .pio\build\seeed_xiao_esp32c6\src\main.cpp.o
*** [.pio\build\seeed_xiao_esp32c6\FrameworkArduinoVariant\variant.cpp.o] Error 1
In file included from C:/Users/Heikki/.platformio/packages/framework-arduinoespressif32-libs/esp32c6/include/bt/include/esp32c6/include/esp_bt.h:17,
                 from .pio/libdeps/seeed_xiao_esp32c6/NimBLE-Arduino/src/NimBLEDevice.h:46,
                 from src/ble.h:3,
                 from src/globals.h:66,
                 from src/main.cpp:4:
C:/Users/Heikki/.platformio/packages/framework-arduinoespressif32-libs/esp32c6/include/bt/controller/esp32c6/esp_bt_cfg.h:19:10: fatal error: syscfg/syscfg.h: No such file or directory
   19 | #include "syscfg/syscfg.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\seeed_xiao_esp32c6\src\main.cpp.o] Error 1
============================================= [FAILED] Took 16.36 seconds =============================================

Environment         Status    Duration
------------------  --------  ------------
seeed_xiao_esp32c6  FAILED    00:00:16.357

Can anyone suggest, what is the problem ?

Hi there,

So it is telling you what the issue is… WHere is the file? find it and move it to SRC or explicitly set the location.
HTH

GL :slight_smile: PJ :v: