mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf51: use cortexm.ld
This commit is contained in:
parent
04b7ea59fd
commit
516b4b6c7f
@ -1,2 +1,18 @@
|
||||
ROM_START_ADDR ?= 0
|
||||
|
||||
# Set ROM and RAM lengths according to CPU model
|
||||
ifneq (,$(filter nrf51x22xxaa nrf51x22xxab,$(CPU_MODEL)))
|
||||
ROM_LEN ?= 0x40000
|
||||
RAM_LEN ?= 0x4000
|
||||
endif
|
||||
ifneq (,$(filter nrf51x22xxaa,$(CPU_MODEL)))
|
||||
ROM_LEN ?= 0x20000
|
||||
RAM_LEN ?= 0x4000
|
||||
endif
|
||||
ifneq (,$(filter nrf51x22xxac,$(CPU_MODEL)))
|
||||
ROM_LEN ?= 0x40000
|
||||
RAM_LEN ?= 0x8000
|
||||
endif
|
||||
|
||||
include $(RIOTCPU)/nrf5x_common/Makefile.include
|
||||
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
||||
|
@ -1,27 +0,0 @@
|
||||
/*
|
||||
* 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_nrf51822
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Memory definitions for the NRF51X22XXAA
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x00000000, LENGTH = 256K
|
||||
ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||
}
|
||||
|
||||
INCLUDE cortexm_base.ld
|
@ -1,27 +0,0 @@
|
||||
/*
|
||||
* 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_nrf51822
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Memory definitions for the NRF51X22XXAB
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x00000000, LENGTH = 128K
|
||||
ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||
}
|
||||
|
||||
INCLUDE cortexm_base.ld
|
@ -1,27 +0,0 @@
|
||||
/*
|
||||
* 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_nrf51822
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Memory definitions for the NRF51X22XXAC
|
||||
*
|
||||
* @author Stephane D'Alu <sdalu@sdalu.com>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x00000000, LENGTH = 256K
|
||||
ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||
}
|
||||
|
||||
INCLUDE cortexm_base.ld
|
@ -35,11 +35,6 @@ ifneq (,$(filter nrf52840xxaa,$(CPU_MODEL)))
|
||||
RAM_LEN ?= 0x40000
|
||||
endif
|
||||
|
||||
ROM_START_ADDR ?= 0x00000000
|
||||
RAM_START_ADDR ?= 0x20000000
|
||||
|
||||
LINKER_SCRIPT ?= cortexm.ld
|
||||
|
||||
VECTORS_O ?= $(BINDIR)/nrf52_vectors/vectors_$(CPU_MODEL).o
|
||||
|
||||
include $(RIOTCPU)/nrf5x_common/Makefile.include
|
||||
|
@ -1,3 +1,8 @@
|
||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||
|
||||
ROM_START_ADDR ?= 0x00000000
|
||||
RAM_START_ADDR ?= 0x20000000
|
||||
|
||||
LINKER_SCRIPT ?= cortexm.ld
|
||||
|
||||
INCLUDES += -I$(RIOTCPU)/nrf5x_common/include
|
||||
|
@ -2,11 +2,6 @@
|
||||
ROM_LEN ?= 0x100000
|
||||
RAM_LEN ?= 0x40000
|
||||
|
||||
ROM_START_ADDR ?= 0x00000000
|
||||
RAM_START_ADDR ?= 0x20000000
|
||||
|
||||
LINKER_SCRIPT ?= cortexm.ld
|
||||
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
|
||||
PROGRAMMER ?= jlink
|
||||
|
Loading…
Reference in New Issue
Block a user