1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #5989 from haukepetersen/fix_stm32f103cb_linkerscript

cpu/stm32f103cb: generalize linkerscript
This commit is contained in:
Martine Lenders 2016-10-24 22:42:42 +02:00 committed by GitHub
commit 6434687271
3 changed files with 34 additions and 1 deletions

View File

@ -2,6 +2,9 @@
export CPU = stm32f1
export CPU_MODEL = stm32f103cb
# the spark-core uses its own custom linkerscript...
export LINKER_SCRIPT = stm32f103cb_sparkcore.ld
# set the default port
export PORT ?= /dev/ttyUSB0

View File

@ -20,7 +20,7 @@
MEMORY
{
rom (rx) : ORIGIN = 0x08005000, LENGTH = 128K-0x5000
rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
cpuid (r) : ORIGIN = 0x1ffff7e8, LENGTH = 12
}

View File

@ -0,0 +1,30 @@
/*
* Copyright (C) 2015 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_stm32f1
* @{
*
* @file
* @brief Spark-core specific memory definitions for the STM32F103CB
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*
* @}
*/
MEMORY
{
rom (rx) : ORIGIN = 0x08005000, LENGTH = 128K-0x5000
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
cpuid (r) : ORIGIN = 0x1ffff7e8, LENGTH = 12
}
_cpuid_address = ORIGIN(cpuid);
INCLUDE cortexm_base.ld