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

"Connecting to board...done" but getting "Error flashing the sketch:Not Found" using SerialWifiOTA (Arduino Mega & ESP32) #227

Closed mluthfialhadi closed 9 months ago

mluthfialhadi commented 9 months ago

Hello, i am trying to upload SerialWifiOTA with ESP32 attached to Serial1 of Arduino Mega. As you mentioned in the readme, device using WifiEspAT cannot show under "port" name. So i used "fake programmer". But i always getting "error flashing the sketch:not found". I have uploaded SerialWifiOTA manually using usb to arduino mega, then when I tried to upload using programmer, it only showed error not found. I have flash optiboot into the mega board from your _"myboard" and flash AT firmware 2.4.0 into ESP32-wroom board.

Arduino Mega and ESP32 Connection to get AT command working is from ESP AT docs : image

Here the error code from Arduino IDE 1.8.19:

Arduino: 1.8.19 (Windows 10), Board: "Arduino Mega 2560 (Optiboot)"
Sketch uses 16494 bytes (6%) of program storage space. Maximum is 261120 bytes.
Global variables use 1197 bytes (14%) of dynamic memory, leaving 6995 bytes for local variables. Maximum is 8192 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/arduinoOTA -address 192.168.1.65 -port 65280 -username Arduino -password password -sketch C:\Users\ACER\AppData\Local\Temp\arduino_build_787056/SerialWiFiOTA.ino.bin -upload /sketch -b 

Connecting to board ...  done
Uploading sketch ...  done
Flashing sketch ...  done
Error flashing the sketch:Not Found
Error flashing the sketch:Not Found

Sorry for my bad English, English is my third language.

JAndrassy commented 9 months ago

It looks like you have some older version of the upload tool in the IDE. Try to install the Arduino SAMD package. It will install a newer version.