2020-05-03 14:35:01 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Inria
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup cpu_cortexm_common
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Memory definitions for the Cortex-M family
|
|
|
|
*
|
|
|
|
* @author Francisco Acosta <francisco.acosta@inria.fr>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2023-07-22 12:22:37 +02:00
|
|
|
ccmram_length = DEFINED( _ccmram_len ) ? _ccmram_len : 0x0 ;
|
2023-07-22 17:31:22 +02:00
|
|
|
|
|
|
|
sram4_addr = DEFINED( _sram4_length ) ? 0x28000000 : 0x0 ;
|
2023-07-22 12:22:37 +02:00
|
|
|
sram4_length = DEFINED( _sram4_length ) ? _sram4_length : 0x0 ;
|
2020-05-03 14:35:01 +02:00
|
|
|
|
2023-07-22 17:31:50 +02:00
|
|
|
fmc_ram_addr = DEFINED( _fmc_ram_addr ) ? _fmc_ram_addr : 0x0 ;
|
|
|
|
fmc_ram_len = DEFINED( _fmc_ram_len ) ? _fmc_ram_len : 0x0 ;
|
|
|
|
|
2020-05-03 14:35:01 +02:00
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
ccmram : ORIGIN = 0x10000000, LENGTH = ccmram_length
|
2023-07-22 17:31:22 +02:00
|
|
|
sram4 : ORIGIN = sram4_addr, LENGTH = sram4_length
|
2023-07-22 17:31:50 +02:00
|
|
|
fmcram : ORIGIN = fmc_ram_addr, LENGTH = fmc_ram_len
|
2021-12-23 11:04:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.heap2 ALIGN(4) (NOLOAD) :
|
|
|
|
{
|
2023-07-22 12:22:37 +02:00
|
|
|
_sheap2 = ORIGIN(sram4);
|
2021-09-16 09:58:37 +02:00
|
|
|
_eheap2 = ORIGIN(sram4) + LENGTH(sram4);
|
2021-12-23 11:04:26 +01:00
|
|
|
} > sram4
|
2023-07-22 17:31:50 +02:00
|
|
|
|
|
|
|
.heap4 ALIGN(4) (NOLOAD) :
|
|
|
|
{
|
|
|
|
_sheap3 = ORIGIN(fmcram);
|
|
|
|
_eheap3 = ORIGIN(fmcram) + LENGTH(fmcram);
|
|
|
|
} > fmcram
|
2020-05-03 14:35:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDE cortexm.ld
|