F.3.3. Loading Boot Monitor into NOR flash

If the flash becomes corrupt and the board no longer runs the Boot Monitor, the Boot Monitor must be reprogrammed into flash.

Because the debugger does not initialize DRAM, the Boot Monitor image cannot be loaded and run directly. Boot from the AXI expansion memory as described in Table 2.1. This procedure automatically configures the DRAM:

  1. Power off the board.

  2. Set the configuration switches:

    • Set all S6 switches to OFF

    • Set S7-2 switch to ON

    • Set S7-1, 3, and 4 to OFF.

  3. Connect a cable from the JTAG device (RealView ICE for example) to the JTAG box header.

  4. Power on the board.

  5. DRAM is now initialized by booting from AXI expansion memory and the memory is remapped. To load Boot Monitor into flash:

    1. From the debugger, load and execute the file Boot_Monitor.axf

    2. at the Boot Monitor prompt enter:

      >FLASH
      

      Erase any images already in Flash using the ERASE IMAGE command.

      Flash> WRITE IMAGE path\Boot_Monitor_platform.axf
      

      where path is the path to the version of the Boot Monitor that is being loaded and platform is the name of the target system.

  6. Loading the image into flash takes a few minutes to complete. Wait until the prompt is displayed again before proceeding.

  7. Turn the board off.

  8. Set S7-2 to OFF.

  9. Turn the board back on.

Boot Monitor starts automatically.

Copyright © 2007-2011 ARM Limited. All rights reserved.ARM DUI 0425F
Non-Confidential