syssi / esphome-jk-bms

ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE
Apache License 2.0
405 stars 134 forks source link

Compiling not possible #415

Closed Uli1900 closed 5 months ago

Uli1900 commented 5 months ago

I want to create

I tried it 30 times with different conditions:

  1. restart (real restart) Raspi
  2. Delete
  3. Add Limit the amount of resources used for compiling

Here is the log:

INFO ESPHome 2023.12.6 INFO Reading configuration /config/esphome/dgzi3bildschirm.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main INFO Updating https://github.com/esphome/esphome.git@pull/6051/head INFO Detected timezone 'Europe/Berlin' INFO Generating C++ source... INFO Compiling app... Processing dgzi3bildschirm (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

syssi commented 5 months ago

It looks like the as available memory (RAM) is too small.

Uli1900 commented 5 months ago

How can I make it bigger at the Raspberry Pi 4?

Uli1900 commented 5 months ago

Thanks for your quick answer, I checked: I have a 4GB Raspi. Now I ordered a 8GB Raspi, then I will try again.

syssi commented 5 months ago

I would spin up a virtual machine on a full blown PC. If you still want to use a Raspi probably a swap partition or compressed memory (zram) could be a workaround.