This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Scatter file example

Hello ,

I was just reading about scatter file and found this link below:

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0377c/Chdiehag.html

In chapter "Images with a complex memory map " the example shows how the memory is mapped for two object files.

DRAM 0x18000 0x8000 ; Start address for this exec region (0x18000),

                                          ; Maximum size of this exec region (0x8000)

  {

       program1.o (+RW, +ZI)    ; Place all RW and ZI data from

                                          ; program1.o into this exec region

  }

This lines specifies to the linker that Zero Initialized data shall be place into DRAM but in the execution view of the memory it appears in SRAM region (ZI Section #1)

Is the picture wrong or my understanding?

Thank you in advance !!

Parents
  • Hello raducara,

    The link you provide seems to be incorrect, but I believe you referring to this Images with a complex memory map

    I believe the Figure is correct: notice there are 2 Load Regions (LOAD_ROM_1 and LOAD_ROM_2). The execution section you mention DRAM is in LOAD_ROM_1 which is shown properly in the Execution view of the diagram at address 0x18000.  LOAD_ROM_2 has the execution section SRAM which is whon properly in the the Execution view at address 0x08000.

    Hope that helps,

    -Duberly

Reply
  • Hello raducara,

    The link you provide seems to be incorrect, but I believe you referring to this Images with a complex memory map

    I believe the Figure is correct: notice there are 2 Load Regions (LOAD_ROM_1 and LOAD_ROM_2). The execution section you mention DRAM is in LOAD_ROM_1 which is shown properly in the Execution view of the diagram at address 0x18000.  LOAD_ROM_2 has the execution section SRAM which is whon properly in the the Execution view at address 0x08000.

    Hope that helps,

    -Duberly

Children