ARM ARM DUI 0224I manual Loading Boot Monitor into NOR flash

Models: ARM DUI 0224I

1 402
Download 402 pages 14.06 Kb
Page 56
Image 56

Getting Started

2.6.3Loading 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.

Note

The Boot Monitor is normally located in NOR flash 2 instead of NOR flash 1. You can, however, load the Boot Monitor into NOR flash 1 instead of NOR flash 2 if this is requiredfor a specific application.

Because the debugger does not initialize SDRAM, the Boot Monitor image cannot be loaded and run directly. Use the scripts in the BoardFiles directory on the CD to setup the board:

1.Power off the board

2.Set switch S1-1 to ON to select booting from NOR flash 1 Set switch S1-1 to OFF to select booting from NOR flash 2 Set all other S1 switches to OFF

Set all S6 switches to OFF.

3.Connect a RealView ICE or Multi-ICEto the JTAG port or a debug cable to the USB debug port.

4.Power on the board.

5.Connect the debugger to the target

For ARM eXtended Debugger, from the Command Line Interface

Debug > Obey VPB926EJS_SDRAM_Init_axd.li

For RealView Debugger:From the Debug menu Include Commands

From File

Select VPB926EJS_SDRAM_Init_rvd.li

6.SDRAM is now initialized and the memory is remapped.

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

8.Load the image into one of the NOR flash memories:

To load the image to NOR flash 2, at the Boot Monitor prompt enter:

>FLASH

Flash> WRITE IMAGE path\Boot_Monitor.axf NAME boot_monitor FLASH_ADDRESS 0x30000000

2-20

Copyright © 2003-2010 ARM Limited. All rights reserved.

ARM DUI 0224I

Page 56
Image 56
ARM ARM DUI 0224I manual Loading Boot Monitor into NOR flash, For RealView DebuggerFrom the Debug menu → Include Commands