0
votes

I'm using Arduino UNO and the library WiFi 101.

Simply when I try to upload the Firmware Updater sketch from File -> Examples -> WiFi101 -> Firmware Updater I get this error:

Arduino: 1.8.12 (Linux), Board: "Arduino Uno"

data section exceeds available space in boardSketch uses 9908 bytes (30%) of program storage space. Maximm is 32256 bytes.

Global variables use 2145 bytes (104%) of dynamic memory, leaving -97 bytes for local variables. Maximum is 2048 bytes.

Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.

Error compiling for board Arduino Uno.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

  • The problem is clear which is this sketch needs more than the available memory in Arduino. But how can I solve that?

Thanks

2
The message says that you are trying to compile for an UNO. Did you select the right board in the tools menu?Delta_G
@Delta_G, WiFi101 shield is for Uno tooJuraj
Ok, wasn't sure. Never used the WiFi101. Didn't know if it had a separate board entry.Delta_G

2 Answers

0
votes

In the FirmwareUpdate sketch change static const int MAX_PAYLOAD_SIZE = 1024; to a smaller size. Try 256.

-1
votes

The program you try to load onto the board is for Arduino MKR1000 and UNO pin compatible boards with larger memory, if you want to update the firmware of a wifi101 shield attached to an UNO use the extension in

Tools -> WiFi101 / WiFININA Firmware Updater 

If you need to install this here are the instructions

  • Download the tool from this page.
  • Create a tools folder in your sketchbook, if it doesn't exist yet.
  • Unpack the zip archive into tools folder (it will look like .../Arduino/tools/WiFi101/tool/WiFi101.jar)
  • Restart the Arduino IDE.

And this programm finds the current version of the firmware