No matter which configurations I try, I get errors when trying to compile esphome for a esp32 C3 mini. I have uninstalled Esphome, deleted the esphome folder and reinstalled the Esphome add on. I get errors trying the arduino framerwork or esp-idf.
INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/diffuser1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing diffuser1 (board: esp32-c3-devkitm-1; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.4
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
Compiling .pioenvs/diffuser1/src/esphome/components/api/api_connection.cpp.o
In file included from src/esphome/components/api/api_connection.h:3,
from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/api/api_frame_helper.h:2:10: fatal error: cstdint: No such file or directory
#include <cstdint>
^~~~~~~~~
compilation terminated.
*** [.pioenvs/diffuser1/src/esphome/components/api/api_connection.cpp.o] Error 1
Compiling .pioenvs/diffuser1/src/esphome/components/api/api_frame_helper.cpp.o
In file included from src/esphome/components/api/api_frame_helper.cpp:1:
src/esphome/components/api/api_frame_helper.h:2:10: fatal error: cstdint: No such file or directory
#include <cstdint>
^~~~~~~~~
compilation terminated.
*** [.pioenvs/diffuser1/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
========================== [FAILED] Took 6.27 seconds ==========================
Obviously you did but I had to ask to be sure.
So bare with me because I have another question. Have you tried to compile a bare minimum config for your device. Something like the config that will be created for you when you create a new device in ESPHome. Can you post it here including the error if you got one?
Thanks for helping me! I followed your advice and I am trying to compile a bare minimun config (wifi, api, ota) I am trying the following config and now I am getting this error.
First try to get it compiling for the ESP32-C3 before adding other things such as a ESPAsyncWebServer and other dependencies.
I am running this on a nuc with HAOS. I am not able to install anything so any dependencies are added automatically.
Unfortunately, I think that the RPi4 does not have enough resources. I setup a VM and that’s how it worked. Nevertheless, I am not very happy with the results of the Esp32 C3 Mini. I regret that I bought those controllers.
I understand. Fortunately the ESP32 C3 Mini doesn’t cost much. The small format is nice, but it has to work properly. For now, I’m trying to use the ESP-WROOM-32D and this device is working great with ESPhome.