[ECOS] Help required for LDI file

Himanshu Patel himanshup@aftek.com
Thu Oct 1 11:43:00 GMT 2009


We are using LPC2458, which has scatter (non-continuous) SRAM memory. Now we want to assign bss section to this scatter memory. We tried to create sections as below but the same is giving linking error.
SECTION_bss (sram, 0x40000540, LMA_EQ_VMA)  
SECTION_bss (sram3, 0x7FD00a00, LMA_EQ_VMA)

How can we do that? What is the reason for error? 

Complete ldi file:

    rom    : ORIGIN = 0x00000000, LENGTH = 0x80000
    sram   : ORIGIN = 0x40000000, LENGTH = 0xFDE0
    sram2   : ORIGIN = 0x7FE00000, LENGTH = 0x4000
    sram3   : ORIGIN = 0x7FD00a00, LENGTH = 0x3600

    SECTION_rom_vectors (rom, 0x00000000, LMA_EQ_VMA)
    SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA)
    SECTION_fixed_vectors (sram, 0x40000400, LMA_EQ_VMA)
    SECTION_data (sram2, 0x7FE00000, FOLLOWING (.gcc_except_table))
    SECTION_bss (sram, 0x40000540, LMA_EQ_VMA)
    SECTION_bss (sram3, 0x7FD00a00, LMA_EQ_VMA)
    CYG_LABEL_DEFN(__heap1) = 0x7FD03200;


Himanshu Patel

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list