Skip to content

Commit be254d4

Browse files
committed
cpu/cc2538: adjust rom size to account for cca region
1 parent cdd9f30 commit be254d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpu/cc2538/ldscripts/cc2538.ld

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818

1919
INCLUDE cortexm_rom_offset.ld
2020

21+
_cca_length = 44;
22+
2123
/* Memory Space Definitions: */
2224
MEMORY
2325
{
24-
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length
25-
cca : ORIGIN = 0x0027ffd4, LENGTH = 44
26+
rom (rx) : ORIGIN = _rom_start_addr + _rom_offset, LENGTH = _fw_rom_length - _cca_length
27+
cca : ORIGIN = 0x0027ffd4, LENGTH = _cca_length
2628
sram0 : ORIGIN = 0x20000000, LENGTH = 16K /* Lost in PM2 and PM3 */
2729
sram1 : ORIGIN = 0x20004000, LENGTH = 16K
2830
ram (w!rx) : ORIGIN = _ram_start_addr, LENGTH = _ram_length

0 commit comments

Comments
 (0)