Problems HomeSpan ESP32 Wroom 32D

Hi,

I trying to get Taylor Galbraith HomeKit LED project to work on a ESP32-Wroom-32D. It keeps giving an error on "text section exceeds available space on board".

From the specs it says it has 4mb spiff flash memory.


I am a beginner on this so looking to understand and learn.

Thanks Robert

Did you click the link to learn how to fix this?
What memory size have you selected?

What board did you select in the board selector?

Yes I did but it did not help as the code is very short as you can see so do not think this could be the problem

I tried "ESP32 Dev Module" and "ESP32 Wroom DA modules"

You said

and the error message says
Screenshot 2025-06-22 at 22.49.36

Do you see a clue?

For the ESP32 Dev Module, what memory model did you select?

so 4mb is 4000000 bytes right so why is the maximum 1310720

Different memory. You need to pick a bigger memory model for the sketch. I usually just pick HUGE. Its in the IDE menu, so go find it.

As mentioned I am absolute beginner in this, you mean I need to change the Board in IDE not the actual esp32 module.

Here is the sketch I compiled from that HomeSpan thing and the successful result.
Screenshot 2025-06-22 at 23.33.19
Screenshot 2025-06-22 at 23.33.27
Good luck

Looks like the sketch now get accepted only one other error

But that is an upload error, and it's one I haven't seen before. It appears to be caused by a bad cable or a bad connection, but in any case, your original problem is solved, so mark post nine as the solution.
You should really start with much simpler projects. Do you have a copy of the Arduino Cookbook? Work your way through that from front to back, and then you might be ready for IoT stuff.

Set the upload speed slower and it looks it worked