espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
613 stars 146 forks source link

No Enough heap size for me. (CON-1231) #990

Closed ronny-antoon closed 1 day ago

ronny-antoon commented 1 week ago

Describe the question/query that you have the light example, without modification esp_matter 1.3.0 esp-idf 5.1.2

only the on_off_light, 49000 Only heap size left for me. and that not enough

any ideas

jonsmirl commented 1 week ago

If you need to add significant code to esp-matter you will need to use an ESP32 version with PSRAM. I find even the smallest 2MB PSRAM to be plenty. From my system "Free internal 34,192 PSRAM free 1,474,332" so I am using 610KB PSRAM. I am probably wasting half of that 610KB with unimportant things.

dhrishi commented 6 days ago

@ronny-antoon Please check if this section of the documentation is helpful

jonsmirl commented 6 days ago

I would recommend for development to just use the PSRAM. I initially tried without using it and I spent way too much time fighting with RAM usage. And then only after everything is working see if you can squeeze things down enough to avoid the PSRAM. Doing it this way will give you more RAM to turn on developer things like heap tracking too.

ronny-antoon commented 1 day ago

thank you alot