Arduino uno programming over OTA with ESP8266

to the esp? or what do you mean ?

Itsch:
to the esp? or what do you mean ?

yes. the firmware can be ota uploaded. the spiffs too

so now work the upload to the nodemcu. but how i connect the nodemcu to the arduino as a shield i dont find informations for this ?

Itsch:
so now work the upload to the nodemcu. but how i connect the nodemcu to the arduino as a shield i dont find informations for this ?

so the firmware OTA upload works?

can you post a photo of the wiring?

Yes
Nodemcu-Arduino

RX-6
TX-7
GND-GND
Vin-3V
EN-3V
D0-Reset

Itsch:
Yes
Nodemcu-Arduino

RX-6
TX-7
GND-GND
Vin-3V
EN-3V
D0-Reset

what did you set in esp8266-serial-arduinouno-hacked.cpp? 16?

D0 is io 16.
D3 is io 0
D1 is io 5

Ok thanks, the other connections are right ?

Itsch:
Ok thanks, the other connections are right ?

if the WiFiLink library works, then they must be OK

when i try upload ota to the arduino it comes "Error flashing the sketch"

Itsch:
when i try upload ota to the arduino it comes "Error flashing the sketch"

try to disconnect the Arduino from USB. use external power or a charging USB cable without data lines

its the same Problem

Itsch:
its the same Problem

sorry my error. I read the previous page now. You wired the esp to pins 6 and 7 of Arduino. Wire the Arduino to esp8266 RX to TX. the bootloader doesn't listen on SoftwareSerial pins

Arduino- nodemcu

RX-TX
TX-RX ?

ore what you mean ?

Itsch:
Arduino- nodemcu

RX-TX
TX-RX ?

ore what you mean ?

yes. the esp sends the hex file over bootloader same way as avrdude

ok but then i must change this in the sketch ?

Itsch:
ok but then i must change this in the sketch ?

for flashing not. but for WiFiLink library yes. so change it in sketch and upload it OTA :slight_smile:

hmm ota upload does not work the same problem "Error flashing the sketch"
or must i upload a ArduinoOTA library? or for what is this?

Itsch:
hmm ota upload does not work the same problem "Error flashing the sketch"
or must i upload a ArduinoOTA library? or for what is this?

no. it has nothing to with ArduinoOTA library.

does the WiFILink library work now over the hardware Serial? try the WebServer example but change the port to 8080. port 80 would stop the WebPanel and OTA web server in firmware

i change
SoftwareSerial Serial1(6, 7); // RX, TX
to
SoftwareSerial Serial1(TX, RX); // RX, TX ?

Itsch:
i change
SoftwareSerial Serial1(6, 7); // RX, TX
to
SoftwareSerial Serial1(TX, RX); // RX, TX ?

no, please

remove SoftwareSerial and change Serial1 to Serial