UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer ajcurtis84
Observer
6,813 Views
Registered: ‎04-04-2016

question regarding lscript.ld and ps7_ram regions

Hello,

 

When I look at the linker script generated for an application I see:

 

MEMORY
{
ps7_ddr_0_S_AXI_BASEADDR : ORIGIN = 0x00100000, LENGTH = 0x08000000
ps7_ram_0_S_AXI_BASEADDR : ORIGIN = 0x00000000, LENGTH = 0x00030000
ps7_ram_1_S_AXI_BASEADDR : ORIGIN = 0xFFFF0000, LENGTH = 0x0000FE00
}

 

This is the default memory configuration of the Zynq7000. However when you run U-Boot, it changes the memory configuration to:

 

DDR ORIGIN = 0x00000000, LENGTH = 0x08000000
OCM ORIGIN = 0xFFFC0000, LENGTH = 0x00040000

Is correct?

 

Note: The map file confirms the memory map.

 

Memory Configuration

Name Origin Length Attributes
ps7_ddr_0_S_AXI_BASEADDR 0x00100000 0x08000000
ps7_qspi_linear_0_S_AXI_BASEADDR 0xfc000000 0x01000000
ps7_ram_0_S_AXI_BASEADDR 0x00000000 0x00030000
ps7_ram_1_S_AXI_BASEADDR 0xffff0000 0x0000fe00
*default* 0x00000000 0xffffffff

Linker script and memory map

LOAD /opt/Xilinx/SDK/2015.4/gnu/arm/lin/bin/../lib/gcc/arm-xilinx-eabi/4.9.2/crti.o
LOAD /opt/Xilinx/SDK/2015.4/gnu/arm/lin/bin/../lib/gcc/arm-xilinx-eabi/4.9.2/crtbegin.o
0x00002000 _STACK_SIZE = DEFINED (_STACK_SIZE)?_STACK_SIZE:0x2000
0x00004000 _HEAP_SIZE = DEFINED (_HEAP_SIZE)?_HEAP_SIZE:0x4000
0x00000400 _ABORT_STACK_SIZE = DEFINED (_ABORT_STACK_SIZE)?_ABORT_STACK_SIZE:0x400
0x00000800 _SUPERVISOR_STACK_SIZE = DEFINED (_SUPERVISOR_STACK_SIZE)?_SUPERVISOR_STACK_SIZE:0x800
0x00001000 _IRQ_STACK_SIZE = DEFINED (_IRQ_STACK_SIZE)?_IRQ_STACK_SIZE:0x1000
0x00000400 _FIQ_STACK_SIZE = DEFINED (_FIQ_STACK_SIZE)?_FIQ_STACK_SIZE:0x400
0x00000400 _UNDEF_STACK_SIZE = DEFINED (_UNDEF_STACK_SIZE)?_UNDEF_STACK_SIZE:0x400

.text 0x00100000 0x51d4c
0x00000000 _binary_firmware1_start = 0x0
0x00000000 _binary_firmware1_end = 0x0
0x00000000 _binary_firmware2_start = 0x0
0x00000000 _binary_firmware2_end = 0x0
*(.vectors)
.vectors 0x00100000 0x11c /home/allen/work/LEA/standalone_bsp_1/standalone_bsp_1/ps7_cortexa9_1/lib/libxil.a(asm_vectors.o)
0x00100000 _vector_table

 

 

Tags (4)
0 Kudos