cpu/cc26xx_cc13xx: use _rom_length symbol for CCFG origin

>Now `ROM_LEN` is the "real" length, 352K and 128K respectively
and the CCFG position is determined by subtracting it's size
from `_rom_length` symbol.

Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
This commit is contained in:
Jean Pierre Dudey 2020-09-30 08:54:59 -05:00
parent b2401eb73b
commit ed2e04904b
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ CPU_VARIANT = x0
ROM_START_ADDR ?= 0x00000000
RAM_START_ADDR ?= 0x20000000
ROM_LEN ?= 0x1FFA8 # 128K - 88 bytes
ROM_LEN ?= 128K
RAM_LEN ?= 20K
include ${RIOTCPU}/cc26xx_cc13xx/Makefile.include

View File

@ -2,7 +2,7 @@ CPU_VARIANT = x2
ROM_START_ADDR ?= 0x00000000
RAM_START_ADDR ?= 0x20000000
ROM_LEN ?= 0x57FA8 # 352K - 88 config bytes
ROM_LEN ?= 352K
RAM_LEN ?= 80K
include ${RIOTCPU}/cc26xx_cc13xx/Makefile.include

View File

@ -22,7 +22,8 @@ INCLUDE cortexm_rom_offset.ld
MEMORY
{
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
ccfg (rx) : ORIGIN = 0x00057FA8, LENGTH = 88
/* CCFG starts at the end of ROM */
ccfg (rx) : ORIGIN = _rom_length - 88, 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