Error installing ESPHome

Hey. Im getting an error when Im trying to install ESP home to my ESP32.

I have tried to connect the ESP32 to the Raspberry Pi directly, to my Mac and also tried to use ESP Home Web (with the ESP connected to my Mac). Im new to this, so all help is appreciated.

Here is the output Im getting when trying ESP Home Web.

INFO ESPHome 2023.10.3
INFO Reading configuration /config/esphome/ble-proxy1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing ble-proxy1 (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
Library Manager: Installing esphome/AsyncTCP-esphome @ 2.0.1
INFO Installing esphome/AsyncTCP-esphome @ 2.0.1
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/noise-c @ 0.1.4
INFO Installing esphome/noise-c @ 0.1.4
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10018.1
INFO Installing esphome/libsodium @ 1.10018.1
Unpacking  [####################################]  100%          
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
Compiling .pioenvs/ble-proxy1/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/ble-proxy1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/ble-proxy1/src/esphome/components/api/api_pb2.cpp.o
xtensa-esp32-elf-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
*** [.pioenvs/ble-proxy1/src/esphome/components/api/api_pb2.cpp.o] Error 1
========================= [FAILED] Took 114.66 seconds =========================

All help is much appreciated.

Let me guess, pi3? If so you are running out of RAM.

Yes it’s pi3.

Is it any options to do it from a Mac to avoid the RAM problem?

https://esphome.io/guides/installing_esphome.html#mac