Yacubane / esp32-arduino-matter

Matter IoT protocol library for ESP32 working on Arduino framework
Apache License 2.0
323 stars 34 forks source link

The example uses 128% of the program memory #46

Open Arixto09 opened 11 months ago

Arixto09 commented 11 months ago

Hello, I am trying to use the light example on the WEMOS D1 MINI ESP32 board, but I receive an error (the code occupies 128% of the program memory)

`Library ESP32 Arduino Matter has been declared precompiled: Using precompiled library in c:\Storage\02_File\00_Windows\02_Documentos\Arduino\libraries\ESP32_Arduino_Matter\src\esp32 Sketch uses 1677981 bytes (128%) of program storage space. Maximum is 1310720 bytes. Global variables use 97388 bytes (29%) of dynamic memory, leaving 230292 bytes for local variables. Maximum is 327680 bytes. Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it. text section exceeds available space in board

Compilation error: text section exceeds available space in board`

It doesn't seem logical to me that an unmodified example code for this MCU exceeds memory in such a way. Is it an error in the example? Am I wrong about something?

Yacubane commented 11 months ago

It seems like you missed one point from readme: Choose larger partition scheme, for example Minimal SPIFFS. Default partition scheme is to small for Matter - unfortunately it takes a lot of space