Hello, a while ago I did a eap8266 updated over the network and it worked. JAndrassy who made that from the community. I have a question about it.
I hav the arduino zero board that has Ethernet and a sd card to store the new bin or hex file.
I was wondering if I can change the sd card module out for the same winbond chip the esp8266 uses?
My project doesn’t have an sd card module I’m just trying it on an breadboard. On my project pcb I do have the same winbond chip and a wiznet W5500 Ethernet.
Yes sorry you are correct. So it seems I'm okay then. I have another question. Is it possible to put the file or files on a hosted server instead of from my IDE? What I mean is I would like to put this is another 700 miles from my location and I will not have access to it. At times I need ot update and change somethings. Is that possible?
Thank you. Can I ask you one question. If the file name is the same. How does it know If something has changed and to use the newer version if it is the same file name?
I see in the sketch it has different versions to tell if its different and sizes i'm guessing of the file to know this.
the ArduinoOTA library supports upload from IDE or you can use the InternalStorage with any other transport way, but the transport and the logic around it is on you
hello juraj. I compiled and saved the ino file to a area on my localwebserver then I went back into the IDE and hit export Compiled Binary and it did a Hex file called Blink.ino.arduino_mzero.hex also a file called Blink.ino.with_bootloader.arduino_mzero.hex. Is this correct?
Did i do something wrong or was there suppose to be a Bin file?
If I compile a blink with esp8266 I get a Bin file. But If I did it with a uno board or zero board selection I get 2 hex files, I'm lost.
you compile for M0, not for Zero.
they have different bootloaders. M0 bootloader expect hex. upload to Zero uses bin. that is why you get hex.
the M0 bootloader is larger so the start address of the sketch is different so you can't use for M0 a bin compiled for Zero.
EDIT:
if you remove the line
mzero_bl.build.preferred_out_format=hex
from boards.txt, it will create bin for export but still use hex for USB upload.
Hello Juraj, The updater work. I stored the bin file in a the local server of mine and Did a simple blink bin file and the led started to blink. So i tried it again with a remote server from godaddy and that worked as well. Thank you.