The bootloader consists out of two parts:
Some Modtronix Ethernet enabled boards are programmed with a network bootloader for updating firmware. When powering up the board, the network bootloader program will be executed for a configured time. During this time, it will look for connection messages received via UDP port 54211 from the Modtronix Network Bootloader Application. If found, the target board will remain in bootloader mode and wait for further instructions from the Modtronix Network Bootloader. If not found, it will jump to and start executing the user program.
The Modtronix Network Bootloader application is a user friendly program that is used to update the firmware on a Modtronix Ethernet enabled SBC board with bootloader. 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. The image below shown an example of the label on a board with a V1.00 bootloader.
For the latest version of the Modtronix Network Bootloader application, please go to www.modtronix.com/soft/netloader.
To update the firmware on a local board, follow the following steps:
-
Ensure the target board is connected to the network, and switched off (no power applied).
-
Download, install and start the Modtronix Network Bootloader application.
-
Enter the IP address in the "Target IP Address" field. The default IP address is "10.1.0.1"
-
Load the new firmware (has to be a hex file) by clicking on the "Browse" button. For example, use the "websrvr_mc.hex" file contained in the "../src" folder of the downloaded firmware.
-
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 see a message in the "Message Window" stating that connection has been made with the target board
-
Click on the "Upgrade Firmware" button. The progress of the firmware upgrade will be shown in the "Message Window".
-
When finished, the target board 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. The Modtronix TCP/IP Stack has a reset button on the the password protected "System" page of its web interface. The user has to access this page and reset the target by clicking on this button. 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 by clicking on the "Reset" button on the "System" page of the target board's web interface.
-
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.
To update the firmware via the Modtronix Network Bootloader the following must be true:
- We have to know the IP address of the target board.
- The configuration data stored in the target board's EEPROM must not be corrupted. This configuration data is used to set the board's IP address, how long it remains in bootloader mode after power up...
If for some reason, this EEPROM becomes corrupted, or the user does not know the IP address the device is configured for, the device can be powered up in Safemode. For details, see Safemode. When we start the target board in this mode, it will remain in bootloader mode until it has been programmed via the Modtronix Network Bootloader. We can also use any of the following IP addresses to access it:
- 10.1.0.1
- 192.168.1.1
- 192.168.0.1
The procedure for programming it via the bootloader will be the same as given above in the Updating the firmware on a local target board section.
Generated on Wed Jul 11 11:34:38 2007 for Example Projects by
1.5.2