Sleeper85 / esphome-yambms

Yet another multi-BMS Merging Solution
GNU General Public License v3.0
36 stars 3 forks source link

[ETH01-EVO POE] compilation problem with `DM9051` Ethernet component #8

Open Sleeper85 opened 2 weeks ago

Sleeper85 commented 2 weeks ago

Discussed in https://github.com/Sleeper85/esphome-yambms/discussions/2

Originally posted by **Imanol82** November 2, 2024 Hello! I'm making a new version of the yambms to put inside the box I printed in 3D. I have already soldered all the wires and when I start to compile the yambms.yaml that I have running to install it on this new board I get this error. What am I doing wrong? ![Captura de pantalla 2024-11-02 124758](https://github.com/user-attachments/assets/4b7b15af-1e6f-439d-a87c-12caf28ffc9e) Thank you very much!!
Sleeper85 commented 2 weeks ago

https://github.com/esphome/esphome/pull/6861#issuecomment-2464611879

Sleeper85 commented 1 week ago

@Imanol82

Replace the old source with this code.

external_components:
  - source: 
      type: git
      url: https://github.com/esphome/esphome
      ref: d5bdf2575c151abfad39b6c24c3856395a7d0901
    components:
      - ethernet
Imanol82 commented 1 week ago

Amazing. I've updated ESPHome and the firmware. Everything is working again.

Stupid question, why appears 1.4.4B as last instead of 1.4.5?

image

Thank you my friend, you're a master!!

and I have this warning too, I don't know if it's important.

Reading CMake configuration... Warning! Flash memory size mismatch detected. Expected 4MB, found 2MB! Please select a proper value in your sdkconfig.defaults or via the menuconfig target!

Sleeper85 commented 1 week ago

It seems like you just didn't download the latest version from Github ?

Sleeper85 commented 1 week ago

Warning! Flash memory size mismatch detected. Expected 4MB, found 2MB!

The default flash size for an ESP32-C3-DevKitM-1 board is 4MB but it seems your ETH01-EVO board only has 2MB of Flash?

Try this:

esp32:
  board: esp32-c3-devkitm-1
  variant: esp32c3
  flash_size: 2MB
  framework:
    type: esp-idf
    version: latest
    platform_version: 6.5.0
Imanol82 commented 1 week ago

No. If I put this, I receibe this error:

Error: The program size (944880 bytes) is greater than maximum allowed (786432 bytes)
*** [checkprogsize] Explicit exit, status 1
========================= [FAILED] Took 181.36 seconds =========================

So I take out. with warning but is working...

Thank you very much!