From d260f5c5394711559e010912d6681384a8b0f76b Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 8 Mar 2017 22:19:18 +0000 Subject: [PATCH] stm32l476: split sram sections for ld generator The 128K of SRAM on the l476 devices is 96K of "normal" sram, and 32K of parity SRAM at a different offset. Fixes: https://github.com/libopencm3/libopencm3/issues/754 --- ld/devices.data | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ld/devices.data b/ld/devices.data index cfc50d48..ccda53aa 100644 --- a/ld/devices.data +++ b/ld/devices.data @@ -165,9 +165,9 @@ stm32l15[12]?d* stm32l1eep ROM=384K RAM=48K EEP=12K stm32l162?c* stm32l1eep ROM=256K RAM=32K EEP=8K stm32l162?d* stm32l1eep ROM=384K RAM=48K EEP=12K -stm32l4?6?c* stm32l4 ROM=256K RAM=128K -stm32l4?6?e* stm32l4 ROM=512K RAM=128K -stm32l4?6?g* stm32l4 ROM=1024K RAM=128K +stm32l4?6?c* stm32l4 ROM=256K RAM=96K RAM2=32K +stm32l4?6?e* stm32l4 ROM=512K RAM=96K RAM2=32K +stm32l4?6?g* stm32l4 ROM=1024K RAM=96K RAM2=32K stm32ts60 stm32t ROM=32K RAM=10K @@ -418,7 +418,7 @@ stm32f4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m4 FPU=hard-fpv4-sp stm32f7 END ROM_OFF=0x08000000 RAM_OFF=0x20010000 CPU=cortex-m7 FPU=hard-fpv5-sp-d16 stm32l0 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m0plus FPU=soft stm32l1 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft -stm32l4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16 +stm32l4 END ROM_OFF=0x08000000 RAM_OFF=0x20000000 RAM2_OFF=0x10000000 CPU=cortex-m4 FPU=hard-fpv4-sp-d16 stm32w END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft stm32t END ROM_OFF=0x08000000 RAM_OFF=0x20000000 CPU=cortex-m3 FPU=soft