2.5.5. Scatter-loading and memory setup

In a system where the reset-time memory view of the core is altered, either through ROM/RAM remapping or MMU configuration, the scatter-loading description file must describe the image memory map after remapping has taken place.

The description file in Example 2.9 relates to the example in ROM/RAM remapping after remapping.

Example 2.9. 

ROM_LOAD 0x10000 0x8000
{ 
     ROM_EXEC 0x10000 0x8000 
     {
          reset_handler.o (+RO, +FIRST)   ; executed on hard reset
          ...
     }

     RAM 0x0000 0x4000
     {
          vectors.o (+RO, +FIRST)          ; vector table copied
                                           ; from ROM to RAM at zero
          ...
     }
}

The load region ROM_LOAD is placed at 0x10000, because this indicates the load address of code and data after remapping has occurred.

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G
Non-Confidential