khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

Too big for UNO R3? #9

Closed sglebs closed 4 years ago

sglebs commented 4 years ago

Just to confirm: UNO R3 is not supported, right? I have the Ethernet shield but I get this:

Sketch uses 35252 bytes (109%) of program storage space. Maximum is 32256 bytes.
Global variables use 2658 bytes (129%) of dynamic memory, leaving -610 bytes for local variables. Maximum is 2048 bytes.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
text section exceeds available space in board
Error compiling for board Arduino Uno.
khoih-prog commented 4 years ago

Hi @sglebs

As you can see

Sketch uses 35252 bytes (109%) of program storage space. Maximum is 32256 bytes.
Global variables use 2658 bytes (129%) of dynamic memory, leaving -610 bytes for local variables. Maximum is 2048 bytes.

For AVR family, Nano / UNO has too small Flash / memory and can't be supported, only Mega is OK.