| |||
| Home > Running the LED Application > Using Multi-ICE to load and debug images > Loading an image into flash with Multi-ICE | |||
Follow the steps below to load an image into flash memory on the target board:
Start the debugger as described in Starting the debugger.
Start the flash utility application.
Use the debugger to load the afu.axf flash
utility application (see Figure 3.8). For AXD, select File → Load image.
Use the image that matches your board. (For the Integrator
board, use the image in AFSv1_4\Images\Integrator\.)
Display the debugger console. (For AXD, select Processor Views → Console.)
Execute the flash utility application. (For AXD, select Execute → Go.)
The flash utility runs and displays a prompt (see Figure 3.9).
Use the Program command to load a standalone image as image number 2. The AFU utility cannot handle long pathnames. To avoid long pathnames, use a temporary directory to hold the files to download:
p 2 LED D:\Temp\led.axf
Quit by using the q command
in the debugger and exit the debugger.
Set the development board to boot the new image.
The new image must be set by the boot monitor as the default. Change the development board switches to start the boot monitor on reset. (For the Integrator board, set switch S1-1 and S1-4 to the ON position.)
Connect the serial cable between the target board and the host and start a terminal emulator. See Using a serial port and the boot monitor to load and run images for terminal settings.
Reset the development board. You now see the boot monitor prompt, similar to that shown in Figure 3.10.
Enter BI 2 in the terminal window
to select image 2 on reset.
Change the development board switches to run the image selected by the boot monitor. (The settings depend on the board type and version. For the Integrator board, set switches S1-1 to the ON position and S1-4 to the OFF position.)
The switch settings provided here might not apply to the version of development board that you have. Refer to the documentation provided with your development board for detailed switch settings.
Reset the board. The LEDs begin flashing.