From be254d4125c24805cba06e6e7cbe7dbb3acc0a69 Mon Sep 17 00:00:00 2001 From: Ollrogge Date: Mon, 25 Oct 2021 15:13:37 +0200 Subject: [PATCH] cpu/cc2538: adjust rom size to account for cca region --- cpu/cc2538/ldscripts/cc2538.ld | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/cc2538/ldscripts/cc2538.ld b/cpu/cc2538/ldscripts/cc2538.ld index dce01e4497..0d9e5673e1 100644 --- a/cpu/cc2538/ldscripts/cc2538.ld +++ b/cpu/cc2538/ldscripts/cc2538.ld @@ -18,11 +18,13 @@ INCLUDE cortexm_rom_offset.ld +_cca_length = 44; + /* Memory Space Definitions: */ MEMORY { - rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length - cca : ORIGIN = 0x0027ffd4, LENGTH = 44 + rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length - _cca_length + cca : ORIGIN = 0x0027ffd4, LENGTH = _cca_length sram0 : ORIGIN = 0x20000000, LENGTH = 16K /* Lost in PM2 and PM3 */ sram1 : ORIGIN = 0x20004000, LENGTH = 16K ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length