GlennHA
(Glenn)
April 18, 2022, 1:54am
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
GlennHA
(Glenn)
April 18, 2022, 2:40am
3
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
nickrout
(Nick Rout)
April 18, 2022, 3:45am
4
GlennHA:
esp32-c3-devkitm-1
Yep, the ESP32C3 is a different piece of kit than an ESP32.
ghvader
(Ghvader)
April 19, 2022, 4:20pm
5
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?
GlennHA
(Glenn)
April 19, 2022, 5:29pm
6
I only have ESP32-DEVKITM-1, so I can’t say; but what I posted in the original seems to work for others.
ghvader
(Ghvader)
April 19, 2022, 5:44pm
7
cool. thanks for the info.
maedball
(Michael Klein)
August 28, 2022, 6:36pm
8
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
evlo
(Evlo)
December 15, 2022, 5:56pm
9
did it work for you with uart component?
maedball
(Michael Klein)
December 15, 2022, 11:02pm
10
sorry i did not use it. But with the latest update of ESPHOME none of the above is needed anymore
evlo
(Evlo)
December 16, 2022, 1:19am
11
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.