The Network Flash Utility (NFU) uses the TFTP protocol to access files over the Ethernet network. You can use this utility to program files into flash.
To connect to a server and program a file to flash:
Start the NFU utility from the debugger console:
Set the Boot Monitor configuration switches to force the console to use either UART-0 or the LCD and keyboard. (See Boot Monitor configuration switches for details.)
The debugger console cannot be used because the semihosted console I/O is blocking.
Start the NFU utility.
It typically takes several seconds for the NFU to start. Do not enter any commands until the prompt is displayed.
Use the DHCP protocol to get an IP address by entering:
manage dhcpc start
Use the map command to map a drive letter to the TFTP server. For example to access a file on a TFTP server with the IP address 192.168.0.1, use:
manage map n: 192.168.0.1
After the drive letter has been mapped, use the normal Boot Monitor command on the remote file by specifying the drive letter. For example, to write a file to NOR flash, enter:
flash write image n:/hello.axf
The NFU supports a subset of the standard Boot Monitor commands
and adds a new
The NFU commands are listed in Table E.3.
|Provides information to the system that is
required by the RUN command in order to execute a binary file. A
new file with name |
Remote file access requires semihosting. Use a debugger connection to provide semihosting.
|Create a new file in the flash by inputting text. Press Ctrl-Z to end the file.|
List the files in a directory.
Files that only accessible from semihosting cannot be listed.
|Exit the NFU. The processor is held in a tight loop until it is interrupted by a JTAG debugger.|
|Enter the flash file system for the NOR flash on the baseboard. See Table F.5 for NOR flash commands.|
|Lists the NFU commands.|
|Change drive (allocated to MMC or SD card).|
|Change drive (allocated to CompactFlash card).|
Enter the network management sub-menu. See Table E.4 for MANAGE commands.
|Create a new directory.|
|Alias for |
|Rename flash file named |
|Remove a directory.|
|Enter the SD card subsystem.|
|Display the flash file |
MANAGE sub-menu listed in Table E.4 contains the network
MANAGE on the command line means
that all future commands (until
EXIT is entered)
will be commands from the
A single command can be executed by entering
by the command. For example,
MANAGE DHCPC START gets
an IP address from the DHCP server. The next command entered must
be from an NFU command.
|Display Address Resolution Protocol host table.|
|Add static entry to ARP table.|
|Delete static entry from ARP table.|
|Use Dynamic Host Configuration Protocol (DHCP)
to start a connection with the network interface |
|Use DHCP to release the connection with the network interface ifname.|
|Returns information on the size of the DHCP packet.|
|Uses the DHCP protocol send information to
the server located at |
|Exit the |
|Lists the NFU |
|Displays the IP settings that are used for communications with the server.|
|Displays the current IP address if |
Configures the IP interface
|Maps the IP address specified in |
Displays active network connections.
The value for
|Send ICMP ECHO_REQUEST packets to the network host. The data in the packet is returned by the host. Reception of the return packet indicates that the TCP/IP connection is functioning.|
|Alias for |
Adds a static route to the network address
|Deletes the static route to the network address
specified by |
|Displays Domain Name System (DNS) configuration details received from DHCP.|
When NFU starts, it attempts to run the
NETSTART.BAT file in
the flash. If the script does not exist, a prompt is displayed on
the console. For example, to map a drive and write a file to flash,
create the following script file:
manage dhcpc start manage map n: 192.168.0.1 flash write image n:/hello.axf
After the file is executed, you can enter additional NFU commands.
To run the file, reset the board and use the
from Boot Monitor.