UPLOADING A SKETCH TO A PLC USING ETHERNET. STEP 1. ARIADNE BOOTLOADER

UPLOADING A SKETCH TO A PLC USING ETHERNET. STEP 1. ARIADNE BOOTLOADER

In this string of posts we will see how to upload an sketch to a PLC using Ethernet connection instead of using the USB. USB is the most common way to upload an sketch into an Arduino board but it is not always the most comfortable way because you need to bring the PLC near of a PC or vice versa.

Before getting into the post it is important to have our boards installed. If you don’t have it please get all the information in the following link because this post is made having the boards installed:


The string of posts will be divided in 3 posts in total, which are the 3 big steps to reproduce it.

  1. Install the Ariadne Bootloader into MDuino.
  2. Get the binary file from an sketch.ino
  3. Send the binary file using tftp client

 

Install the Ariadne Bootloader into MDuino.

On the first one we will see the first step that has to be done. This step is changing the BOOTLOADER of the Arduino. Why? The Bootloader that comes by default doesn’t support this Ethernet uploading, so it is necessary to burn another which permits to upload via Ethernet.

The bootloaders can be found into the official github page of Ariadne. There are two different bootloaders depending on the version of MDuino you are using. For the PLUS version you will be using the w5500 bootloader which is the Ethernet chip it comes with PLUS version. For the 7 version you will be using the w5100. 

You can find the bootloaders on the following links:

         Bootloader w5100 (7 version)

        Bootloader w5500 (PLUS version)

Once we have the bootloader downloaded we need to move it into the bootloader folders. 

For Windows:

C:\Users\User\AppData\Local\Arduino15\packages\industrialshields\hardware\avr\1.0.3-rc1\bootloaders

For Linux:

 $HOME/.arduino15/packages/industrialshields/hardware/avr/1.0.3-rc1/bootloaders

It is important not to delete the original bootloader that appear on this folder. What we need to do is to change the original name of mduino.hex into mduino-original.hex and the Ariadne bootloader will get now the name of mduino.hex.

 

After that we just need to burn the bootloader. Burning a bootloader into an Arduino board is already explained in the following post.

HOW TO UPLOAD A BOOTLOADER ON A ARDBOX/M-DUINO PLC

 

Note:

At this moment w5500 doesn’t support USB. Care if you want to update an sketch into Arduino using USB with the new bootloader. For the w5100 there is no problem.

 

2nd PART: UPLOADING AN SKETCH TO A PLC USING ETHERNET. STEP 2. BINARY FILE

 3rd PART: UPLOADING AN SKETCH TO A PLC USING ETHERNET. STEP 3. TFTP CLIENT

Comments are closed.