Updating The Firmware

The Modtronix Network Bootloader uses the UDP protocol to update the firmware on the target board. The new firmware has to be in a hex file. The hex file for the latest firmware can be downloaded from the Modtronix web site, or created by compiling the source code obtained from the Modtronix web site. For downloads, see links on the relevant product pages. No PIC programmer is required. The SBC board used must have a bootloader installed on it. Such a board can be identified by a BLN Vm.nn label on the front of the board - normally stuck on the RTL8019AS 100 pin network chip. Where Vm.nn is the version number of the bootloader. For the latest version of the Modtronix Network Bootloader, please go to
www.modtronix.com/soft/netloader.

To update the firmware, follow the following steps:

Updating The Firmware From A Remote Location

The firmware can also be updated from a remote location, via the internet for example. For this to be possible, both the target board and Modtronix Network Bootloader should be connected to the same network or the internet. A way is needed to remotely reset the target device so it can enter bootloader mode for the configured time. Modtronix Web based products using bootloader boards will have a reset button on a web page that will reset the target board. The user might want to password protect this page for security purposes. After resetting the target board, it will remain in bootloader mode for the configured time.
The procedure for updating the firmware is: If not successful, the target device will remain in bootloader mode until a valid program is received, and it receives a reset command from the Modtronix Network Bootloader. The target device will confirm each block of data that it receives and programs. The Modtronix Network Bootloader will confirm that the board programmed itself with valid data, and when finished, send it a reset command. This method of handshaking between the Modtronix Network Bootloader and target board ensures error free programming of the target board.

Details

The bootloader on the target device implements the IP, ARP and UDP protocols. UDP port 54211 is used for the bootloader. If updating the firmware via a firewall or similar device, UDP communication via this port has to be enabled!