In this post it will be shown how to proceed in order to upload a sketch using the Ethernet instead of using the tipical Serial (USB). This is really useful in order to upload a sketch being far from the Arduino board. This post is been prepared for upload a code using Linux and using Windows.
This process is a bit long and for this reasons it has been divided in the 3 big parts.
1.How to install the Ariadne Bootloader.
In this part it will be seen how to change the bootloader of the Arduino for the Ariadne Bootloader. This bootloader works with the Ethernet Shield when bootloading. Remember that a code can only be injected if the sketch is bootloading. So it is really important to have enabled the Ethernet Shield at the bootloading moment.
2.How to get the binary file.
In this part it will be seen how to get the binary file from an hexa file. By the time an skech is verified it generates a temporary file. This temporary file is an hexa file and it is the file that is injected into the Arduino when it is used the USB to upload the sketch. If we want to use Ethernet it is different because it needs the binary file instead of the hexa. In this post it is seen how to get the binary file.
3. How to send the binary file using tftp
In this part it is seen how to actually upload the sketch(binary file) using Ethernet. The other 2 parts just configurated everything.