0

Since the ESP8266 can self program on Wifi, can we use it to program Arduino too with the binary sent via Wifi? My Arduino is connected withReset + RX + TX pins and shared power.

jsotola's user avatar
jsotola
1,5532 gold badges13 silver badges22 bronze badges
askedFeb 15, 2022 at 13:15
thevikas's user avatar

1 Answer1

0

If you use Linux, you can use a simpleTelnet to Serial sketch in esp8266 to upload with avrdude to Uno over esp8266. Only on Linux can avrdude use telnet to do a serial upload.

For upload from IDE on any OS there isJeeLabs ESP Link firmware for the esp8266.

answeredFeb 15, 2022 at 14:08
Juraj's user avatar
6
  • plenty of ways on other os to patch things so arduino looks to be connected over serial as far as avrdude is concerned- for example com0com makes virtual serial ports...CommentedMar 17, 2022 at 23:24
  • @Abel, did you test it?CommentedMar 18, 2022 at 5:52
  • haven't done it for avrdude yet, but i did have the need to do something similar for a serial user interface program to connect to a stream that had to be encapsulated by ssh first.CommentedMar 18, 2022 at 11:54
  • tested with pi in the middle (avrdude-com0com-customExe-pi-customProgram-uno). gotchas found: bootloader baud, and stable re-entry to bootloader. no reason to believe any other program attempting this over serial would behave differently. i implemented re-entry via usb port poweroff and poweron via rpi uhubctl, but it might be possible with hardware (reset pin), a modified bootloader, or crashing? the main on command (casting 0 to a function pointer and calling it).CommentedMar 20, 2022 at 13:43
  • 1
    i didnt use your sketch or telnet. Just wanted to prove you are not limited to avrdude linux to get the job done- for me avrdude thought it was talking over serial and uploaded just fine. Can make a connection between avrdude and the nets with other programs.CommentedMar 20, 2022 at 15:19

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.