Comments (14)
It print nothing.So I can't get any infomation from them.
I copyed all of the error log.
from arduinoota.
I'm using Arduino MEGA2560&Arduino Ethernet Shield.
The version of IDE:Arduino 1.8.10
The source code:
#include <EEPROM.h>
/*
This example polls for sketch updates over Ethernet, sketches
can be updated by selecting a network port from within
the Arduino IDE: Tools -> Port -> Network Ports ...
Circuit:
* W5100, W5200 or W5500 Ethernet shield attached
created 13 July 2010
by dlf (Metodo2 srl)
modified 31 May 2012
by Tom Igoe
modified 16 January 2017
by Sandeep Mistry
Ethernet version August 2018
by Juraj Andrassy
modified by Matt Elias for static IP, LED output & EEPROM reboot counter
*/
#include <SPI.h>
#include <Ethernet.h>
#include <ArduinoOTA.h>
//#define Serial SerialUSB
IPAddress ip(192, 168, 0, 170);
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, ip[2], ip[3] };
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
//while (!Serial); // only needed for Leo?
Serial.print("\n\nVer: 2\nReboots: ");
int reboots;
EEPROM.get(1, reboots);
reboots++;
EEPROM.put(1, reboots);
Serial.println(reboots);
// start the Ethernet connection:
Serial.println("Initialize Ethernet");
Ethernet.begin(mac, ip);
Serial.println(Ethernet.localIP());
// start the OTEthernet library with internal (flash) based storage
ArduinoOTA.begin(Ethernet.localIP(), "Arduino","password", InternalStorage);
}
void loop() {
// check for updates
ArduinoOTA.poll();
// add your normal loop code below ...
}
Then,I change the configure from "arduino" to "Arduino":
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... done
Error flashing the sketch:
Error flashing the sketch:
from arduinoota.
I have never seen "Error flashing the sketch:" with :
. What does print it? With "Flashing sketch ... done" arduinoOTA tool is done.
from arduinoota.
I used the Example OTA 'programmer' configuration in programmers.txt and copied The context of '/extras/avr/plantform.local.txt' to 'plantform.txt'
from arduinoota.
and is the new sketch uploaded over OTA running?
from arduinoota.
I remember it doesn't work.
from arduinoota.
I will try again after I get home.It may take me about half an hour.
from arduinoota.
after "Flashing sketch ... done" the sketch is uploaded and applied and the arduinoOTA tool finished
The "Error flashing the sketch:" is a mystery.
Add in WiFiOTA.cpp to sendHttpResponse
Serial.print("OTA upload response: ");
Serial.println(status);
to see if the upload was successful.
from arduinoota.
It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)
from arduinoota.
It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)
did you add the Serial.println(status);
and it doesn't print anything?
from arduinoota.
It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)
did you add the
Serial.println(status);
and it doesn't print anything?
Yes,I upload them by OTA but nothing displayed except network infomation.But it displayed if I upload by Serial Port(USB)
from arduinoota.
did you add the print to WiFiOTA.cpp in the library in sendHttpResponse
function?
from arduinoota.
Ok,I will add it and test the sketch later.
from arduinoota.
so the "Error flashing the sketch:" is printed if IDE upload verbose mode is enabled.
with ArduinoOTA 1.0.4 version the fail reason is printed after the semicolon
from arduinoota.
Related Issues (20)
- Renesas get stuck in `InternalStorage.open()` HOT 3
- Not compatible with <FlashStorage_STM32F1.h> library
- Unable to compile Arduino Code with ArduinoOTA.begin() HOT 4
- Error compiling for board Arduino Mega 2560 (Optiboot). HOT 6
- Password wrong HOT 4
- Compatibility with Ethernet3 library? HOT 7
- STM32F407 - Flash Size issue HOT 9
- WIFI101_OTA example HOT 1
- "No monitor available for the port protocol network" on R4-WiFi HOT 4
- "Connecting to board...done" but getting "Error flashing the sketch:Not Found" using SerialWifiOTA (Arduino Mega & ESP32) HOT 1
- client.get(buff) causes freeMemory to drop significantly, .stop() doesn't release HOT 8
- OTA with Ethernet from a URL HOT 3
- InternalStorage - Flash MKR NB 1500 HOT 3
- SDStorage open issue on Uno R4 HOT 9
- Support for arduino Opta (STM32H747XI) HOT 4
- Arduino Mega not showing up in "network ports" HOT 8
- R4 Wifi upload fails with "Error flashing the sketch" HOT 5
- SD2Flash2BootAVRHex not working on Arduino Mega ADK (2560)
- Arduino Mega Error HOT 1
- Manual reset required after upload in one on 4 upload attempts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinoota.