ESP32-C6 DevKit M-1 error about Arduino not supported

I am trying to move an existing project form an ESP8266 to the ESP32-C6. According to Espressif, their Arduino core supports the C6 (GitHub - espressif/arduino-esp32: Arduino core for the ESP32) however when I try to compile with Platform IO I get an error:

Error: This board doesn’t support arduino framework!

My ini file has this set of options for this board:

framework = arduino
platform = espressif32
board = esp32-c6-devkitm-1

Am I missing something obvious here? Here is the ‘full’ but rather short build log:

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c6-devkitm-1.html
PLATFORM: Espressif 32 (6.6.0) > Espressif ESP32-C6-DevKitM-1
HARDWARE: ESP32C6 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20014.231204 (2.0.14) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - tool-mkfatfs @ 2.0.1 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 2.230.0 (2.30) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
Error: This board doesn't support arduino framework!

The only supported framework seems to be espidf - not arduino - see here

Right but it sounds like Espressif has a different opinion on that :sweat_smile: so it does seem to be possible?

Obviously pio has an opposite opinion :wink:. May be that shows an alternative

The ESP32-C6 requires the Arduino core 3.x which is unfortunately not officially available for PlatformIO and may never be available - See Support Arduino ESP32 v3.0 based on ESP-IDF v5.1 · Issue #1225 · platformio/platform-espressif32 · GitHub

But there is the community platform “pioarduino” to fill this gap.

Give it a try.

Huh, I’m trying to parse what that means. Is Espressif saying they pull PlatformIO support in general, or only for Arduino? Would be a bummer if their ESP IDF platform does not support PlatformIO either. That might actually mean that for future projects I’d switch to a different microprocessor.

Thanks for the info though. I will look through my dependencies and check how many of them actually have ESP IDF version / support that. I wanted to look into switching over to that for a while now but never wanted to spend the time. Maybe this is a good incentive.

If it turns out to be too complicated, I will look into pioarduino.

Thanks!
—Michael