view packages/hal/cortexm/stm32/stm32f4discovery/current/include/pkgconf/mlt_cortexm_stm32f4discovery_rom.ldi @ 3247:6a85fd724dd8

* packages/hal/cortexm/stm32/stm32f4discovery/*: New STM32F4-Discovery platform HAL package. * packages/ecos.db: Add STM32F4-Discovery platform HAL package and target records. * doc/sgml/doclist: Add STM32F4-Discovery doc file.
author jld
date Wed, 12 Jun 2013 13:20:07 +0000
parents
children
line wrap: on
line source

// eCos memory layout

#include <pkgconf/hal.h>
#include <cyg/infra/cyg_type.inc>

MEMORY
{
    ram   : ORIGIN = 0x20000000, LENGTH = 0x00020000-CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE
    flash : ORIGIN = 0x08000000, LENGTH = 0x00100000
    ccm   : ORIGIN = 0x10000000, LENGTH = 0x00010000
}

hal_vsr_table = 0x20000000;
hal_virtual_vector_table = hal_vsr_table + 98*4;
#if defined(CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT)
hal_virtual_vector_table_end = hal_virtual_vector_table + 64*4;
#else // zero size virtual vector table
hal_virtual_vector_table_end = hal_virtual_vector_table;
#endif

// SRAM is 128k.
hal_startup_stack = 0x20000000 + 1024*128;

SECTIONS
{
    SECTIONS_BEGIN
    USER_SECTION (ccm, ccm, 0x10000000, LMA_EQ_VMA)
    SECTION_rom_vectors (flash, 0x08000000, LMA_EQ_VMA)
    SECTION_RELOCS (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_text (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_fini (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_rodata (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_rodata1 (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_fixup (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_gcc_except_table (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_eh_frame (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_got (flash, ALIGN (0x8), LMA_EQ_VMA)
    SECTION_sram (ram, hal_virtual_vector_table_end, FOLLOWING (.got))
    SECTION_data (ram, ALIGN( 0x8), FOLLOWING (.sram))
    SECTION_bss (ram, ALIGN (0x8), LMA_EQ_VMA)
    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
    SECTIONS_END
}