Has anyone been able to use this board with PlatformIO?
Have you tried using it with a regular ESP32C3 board definition already? I don’t see why this should not work.
I did, but apparently even the blink program didn’t work
Better use a ESP32C3 board directly like
[env:esp32-c3-devkitm-1]
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
[env:esp32-c3-devkitm-1]
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
This option doesn’t work
Does uploading work, does it not work during runtime, what src/*.cpp
code you have? Not enough info at all…
usual blink compiles, loads, but does not work
Well are you using the right pin? I would not rely on LED_BUILTIN
to becorrect if you’re using different hardware… Hardware reference says you should try 12 or 13 as the pin.
I tried that, but the main error message was:
‘xtensa-esp32c3-elf-g++’ is not recognized as an internal or external command,operable program or batch file.
What do i do?
When I use this platformio.ini
I get a perfectly normal compile…
$ pio run
Processing esp32-c3-devkitm-1 (platform: espressif32; board: esp32-c3-devkitm-1; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
PLATFORM: Espressif 32 (6.0.0) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 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.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/esp32-c3-devkitm-1/src/main.cpp.o
Building .pio/build/esp32-c3-devkitm-1/bootloader.bin
Generating partitions .pio/build/esp32-c3-devkitm-1/partitions.bin
esptool.py v4.4
Creating esp32c3 image...
Merged 1 ELF section
Successfully created esp32c3 image.
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/Esp.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/HWCDC.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/Print.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/StreamString.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/Tone.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/USB.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/USBCDC.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/USBMSC.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/WString.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/base64.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/cbuf.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-time.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/libb64/cencode.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/main.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/wiring_pulse.c.o
Compiling .pio/build/esp32-c3-devkitm-1/FrameworkArduino/wiring_shift.c.o
Archiving .pio/build/esp32-c3-devkitm-1/libFrameworkArduino.a
Indexing .pio/build/esp32-c3-devkitm-1/libFrameworkArduino.a
Linking .pio/build/esp32-c3-devkitm-1/firmware.elf
Retrieving maximum program size .pio/build/esp32-c3-devkitm-1/firmware.elf
Checking size .pio/build/esp32-c3-devkitm-1/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.7% (used 15488 bytes from 327680 bytes)
Flash: [== ] 16.4% (used 214824 bytes from 1310720 bytes)
Building .pio/build/esp32-c3-devkitm-1/firmware.bin
esptool.py v4.4
Creating esp32c3 image...
Merged 2 ELF sections
Successfully created esp32c3 image.
================ [SUCCESS] Took 6.05 seconds ================
If you get something different then your installation is broken. Remove C:\Users\<user>\.platformio
and retry.
Ok i tested again now uninstalling everything of platformio and that actually worked now, help from maxgerhardt might work, but as this already worked i will stick with it