mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/cc26xx_cc13xx: add custom ld script
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>
This commit is contained in:
parent
62fb4a2ade
commit
d0aedf0f95
53
cpu/cc26xx_cc13xx/ldscripts/cc26xx_cc13xx.ld
Normal file
53
cpu/cc26xx_cc13xx/ldscripts/cc26xx_cc13xx.ld
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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
|
||||
|
||||
/* @} */
|
Loading…
Reference in New Issue
Block a user