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:
- Ensure the target board (SBC65EC, SBC68EC...) is connected to the network, and switched off
(no power applied).
-
Download, install and start the Modtronix Network Bootloader. Latest version
can be downloaded at www.modtronix.com/soft/netloader.
- Enter the IP address or NetBIOS name in the "Target IP Address" field. The default NetBIOS name for Modtronix Ethernet
boards is MXBOARD, and the default IP address (if DHCP is disabled) is "10.1.0.1".
- Load the the new firmware (has to be a hex file) by clicking on the "Browse" button.
- Click on the "Connect" button. This will start sending UDP packets onto the network trying to connect
with the bootloader on the target board.
- Apply power to the target board.
- You should now see progress information being displayed in the "Message Window". This information should
notify you that a connection to the target board has been established, and show the progress of
programming.
- When finished, the target will automatically be reset, and will start up with the new firmware.
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:
- Start the Modtronix Network Bootloader program, select the desired IP address and hex
file, and click the "Connect" button. It will now start searching for the bootloader device
- Reset the target board. This can be done by applying power to it, or clicking the reset
button on the target board's web interface. The board will now remain in bootloader mode for the
configured time. This time is configured via the web interface of the target board.
- The Modtronix Network Bootloader should now find the device, and establish a connection.
- After connected, click on the "Update Firmware" button to update the firmware. After successfully updating the
firmware, the target board will be reset.
- Finished
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.
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!