In my arduino mega I want to program OTA with esp01 wifi module but i cant find any code related to this.
please give suggestion related to this. THANK YOU.
there are two good ways I know.
one for AT firmware and one for your own sketch in esp-01
for your sketch the right way is Telnet server for avrdude upload. I will find the forum thread or the sketch later
the Telnet sketch
https://forum.arduino.cc/index.php?topic=651260.msg4390750#msg4390750
I flashed esplink firmwere in esp01 but can't get connection to mcu
I also tried with optiboot bootloader burn into mega but not ay improvement seen.
Can you provide example and tutorial video if possible of flashing arduino with at commands ?
@juraj
Kashyapkoshti:
I flashed esplink firmwere in esp01 but can't get connection to mcu
I also tried with optiboot bootloader burn into mega but not ay improvement seen.Can you provide example and tutorial video if possible of flashing arduino with at commands ?
@juraj
first this
then this
I flashed esplink 3.0.4 in esp01 and works fine uc colsole part i can get serial dat on esplink in browers but when i try to upload code in arduino it shows error. I read on net that optiboot can work with esplink but i can't understand what to do for optiboot .
Kashyapkoshti:
I flashed esplink 3.0.4 in esp01 and works fine uc colsole part i can get serial dat on esplink in browers but when i try to upload code in arduino it shows error. I read on net that optiboot can work with esplink but i can't understand what to do for optiboot .
esp-link has support only for ATmega328p for upload from IDE
and it has telnet bridge for avrdude similar to what I linked above (take the avrdude command for USB upload to Mega and change port to net: )
if you don't want to use the esp8266 as network adapter, then the telnet sketch I linked in comment #2 is the simplest solution for upload to Mega over esp8266. it can be enhanced to support upload from IDE
Juraj:
esp-link has support only for ATmega328p for upload from IDEand it has telnet bridge for avrdude similar to what I linked above (take the avrdude command for USB upload to Mega and change port to net: )
if you don't want to use the esp8266 as network adapter, then the telnet sketch I linked in comment #2 is the simplest solution for upload to Mega over esp8266. it can be enhanced to support upload from IDE
I also tried esplink with arduino uno and can't upload code via avrdude the same error shows on avrdude gui
Kashyapkoshti:
I also tried esplink with arduino uno and can't upload code via avrdude the same error shows on avrdude gui
how did you wire the esp-01 to Uno/Mega? do you know if the communication over this wiring works? did you wire and setup the reset pin? do you know if it resets the Uno/Mega?
@juraj can you please provide procedure after at firmwere flashed into esp01 to upload code in arduino using it? Beacuse i cant find any related example code in wifiespAT library or in arduino OTA library.
Kashyapkoshti:
@juraj can you please provide procedure after at firmwere flashed into esp01 to upload code in arduino using it? Beacuse i cant find any related example code in wifiespAT library or in arduino OTA library.
I never tested esp-link with Mega
You can try WiFiClient example of the WiFiEspAT library to confirm that the AT firmware and the library work together on your wiring.
ArduinoOTA library has WiFi101_OTA example. You only need to change the include from WiFi101.h to WiFiEspAT.h
There is no documents for flashing at firmwere 1.7 in esp01.i need address of files come with firmwere can you please provide it?
Kashyapkoshti:
I also tried esplink with arduino uno and can't upload code via avrdude the same error shows on avrdude gui
Are you using Windows or Linux for programming? When I tried ESP-Link a couple of years ago the Windows version of avrdude did not support flashing over network but the Linux version did.
Maybe avrdude has been updated for Windows to support this now but just an observation.
Riva:
Are you using Windows or Linux for programming? When I tried ESP-Link a couple of years ago the Windows version of avrdude did not support flashing over network but the Linux version did.
Maybe avrdude has been updated for Windows to support this now but just an observation.
I am using windows 10 and AVEDUDESS GUI.
Kashyapkoshti:
I am using windows 10 and AVEDUDESS GUI.
What version of avrdude are you using as it looks like only from v6.3 is the -P option supported.
Kashyapkoshti:
There is no documents for flashing at firmwere 1.7 in esp01.i need address of files come with firmwere can you please provide it?
Riva:
Are you using Windows or Linux for programming? When I tried ESP-Link a couple of years ago the Windows version of avrdude did not support flashing over network but the Linux version did.
Maybe avrdude has been updated for Windows to support this now but just an observation.
sorry, I didn't test the telnet upload over the telnet sketch with avrdude on Windows, only on Linux
Riva:
What version of avrdude are you using as it looks like only from v6.3 is the -P option supported.
I don't know what -P stands for .I am just reading in website and implimenting procedure .so please can you provide code for arduino mega and esp01 or related content that would be helpful.
I don't recommend the esp-link for Mega. It is complicated and unreliable
Juraj:
I don't recommend the esp-link for Mega. It is complicated and unreliable
So can you provide code to upload in mega for at command ota programming with esp01?
