ESPHome config for ESP32-DEVKITM-1

I have tried various setups and have not had any success. This is my first attempt esphome and the ESP32-DEVKITM-1 boards are the only ones I have.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/user-guide-devkitm-1.html

Having never used ESPHome before, I don’t know if I’m missing anything else.

I tried the custom setup:

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf
    version: recommended
    # Custom sdkconfig options
    sdkconfig_options:
      CONFIG_COMPILER_OPTIMIZATION_SIZE: y
    # Advanced tweaking options
    advanced:
      ignore_efuse_mac_crc: false

but it errors out on the ‘esphome run’ with “The board is unknown, please set the variant manually.”

I have tried several of the other boards listed but each gets into a reboot loop on the terminal display when flashed. I assume that I have the wrong board selected but I don’t know what I should be selecting. The loop states: WARNING Found Stack in trace! Trying to decode it"

Not sure if it’s the same one, but for mine I use

platform: ESP32
board: esp32dev

I finally got it with some github searching:

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_FREERTOS_UNICORE: y
    advanced:
      ignore_efuse_mac_crc: true

I also had to delete a section that was stated as incompatible that was auto generated.
I have it on wifi now; now to see if any program will work.

1 Like

Yep, the ESP32C3 is a different piece of kit than an ESP32.

sorry to hi-jack. but wondering if the esp32-C3 for esphome is now working?
I know it’s still in dev. but will it compile and run with your settings?

I only have ESP32-DEVKITM-1, so I can’t say; but what I posted in the original seems to work for others.

cool. thanks for the info.

Just in case someone needs it for the ESP32C3 on a 64bit arm

esphome:
  name: test
  platformio_options:
    platform_packages:
      - framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
      - toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch3
      - toolchain-riscv32-esp @ 8.4.0+2021r2-patch3
    platform:
      - https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
    upload_speed: 115200
    
esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino
3 Likes

did it work for you with uart component?

sorry i did not use it. But with the latest update of ESPHOME none of the above is needed anymore :wink:

For me after updating to 2022.12.0 device does not boot if uart is in the config, and I can’t get it to work even with some older versions I’m trying.