JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries
GNU Lesser General Public License v2.1
435 stars 89 forks source link

Error flashing the sketch:Internal Server Error #249

Closed krzysztofkub closed 3 months ago

krzysztofkub commented 3 months ago

Hi,

Out of no where after adding 3 of totally not important lines of code my ota stopped working on arduino r4 wifi

Sketch uses 129808 bytes (49%) of program storage space. Maximum is 262144 bytes.
Global variables use 13256 bytes (40%) of dynamic memory, leaving 19512 bytes for local variables. Maximum is 32768 bytes.
"C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0/bin/arduinoOTA" -address "192.168.0.4" -port 65280 -t 60 -username arduino -password "password" -sketch "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\DD16C687089DB18FF880A3DFD9A11392/arduino-curtains-wifi.ino.bin" -upload /sketch -b
Connecting to board ...  done
Uploading sketch ...  done
Flashing sketch ...  done
Error flashing the sketch:Internal Server Error
Failed uploading: uploading error: exit status 1
void setup() {
  Serial.begin(9600);
  ...
  connectToWifi();

  ArduinoOTA.begin(WiFi.localIP(), "arduino", "password", InternalStorage);
  encoderSetup();
}

void loop() {
  ArduinoOTA.poll();
...
}
krzysztofkub commented 3 months ago

Looks like I've just exceeded limit of sketch size