mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
d0aedf0f95
This add a custom ldscript for cc26xx_cc13xx CPUs, which allows linking CCFG configuration, usage of GPRAM, etc. Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
/*
|
|
* Copyright (C) 2020 Locha Inc
|
|
*
|
|
* 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_cc26x2_cc13x2
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Linker script for the CC26x2/CC13x2 MCUs
|
|
*
|
|
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
|
|
*/
|
|
|
|
INCLUDE cortexm_rom_offset.ld
|
|
|
|
/* Memory Space Definitions: */
|
|
MEMORY
|
|
{
|
|
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
|
|
ccfg (rx) : ORIGIN = 0x00057FA8, LENGTH = 88
|
|
/* GPRAM is only available when cache is disabled. When GPRAM is enabled it
|
|
* is used as a backup RAM at the expense of slower CPU execution time */
|
|
gpram : ORIGIN = 0x11000000, LENGTH = 8K
|
|
ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length
|
|
}
|
|
|
|
/* MCU Sepcific Section Definitions */
|
|
SECTIONS
|
|
{
|
|
.ccfg :
|
|
{
|
|
KEEP(*(.ccfg))
|
|
} > ccfg
|
|
|
|
.gpram :
|
|
{
|
|
} > gpram
|
|
|
|
.heap_gpram (NOLOAD) : ALIGN(4)
|
|
{
|
|
_sheap1 = . ;
|
|
_eheap1 = ORIGIN(gpram) + LENGTH(gpram);
|
|
} > gpram
|
|
}
|
|
|
|
INCLUDE cortexm_base.ld
|
|
|
|
/* @} */
|