mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
7dad2e7096
Allow defining a specific rom length to use for linking the firmware, _fw_rom_length, instead of the default configuration to use the whole rom from _rom_offset to the end. * Add cortexm_common/Makefile.include FW_ROM_SIZE configuration * Add an assertion that _fw_rom_length still respects _rom_length
35 lines
972 B
Plaintext
35 lines
972 B
Plaintext
/*
|
|
* Copyright (C) 2017 Inria
|
|
* 2018 Freie Universität Berlin
|
|
*
|
|
* 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>
|
|
* Gaëtan Harter <gaetan.harter@inria.fr>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
_rom_offset = DEFINED( _rom_offset ) ? _rom_offset : 0x0;
|
|
_fw_rom_length = DEFINED( _fw_rom_length ) ? _fw_rom_length : _rom_length - _rom_offset;
|
|
|
|
ASSERT((_fw_rom_length <= _rom_length - _rom_offset), "Specified firmware size does not fit in ROM");
|
|
|
|
MEMORY
|
|
{
|
|
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
|
|
ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
|
|
}
|
|
|
|
INCLUDE cortexm_base.ld
|