From 9a9d0a647ef1b123627872ab7e139c1c5b9be1a0 Mon Sep 17 00:00:00 2001 From: ligd Date: Fri, 13 Sep 2024 22:54:47 +0800 Subject: [PATCH] olimex-stm32-p407: adjust memory layout LD: nuttx arm-none-eabi-ld: /home/ligd/platform/mainline/nuttx/nuttx section `.bss' will not fit in region `ksram' arm-none-eabi-ld: region `ksram' overflowed by 40 bytes make[1]: *** [Makefile:212: nuttx] Error 1 make: *** [tools/Unix.mk:538: nuttx] Error 2 Signed-off-by: ligd --- boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld index 96fa7b8138..eab64c6580 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld @@ -92,7 +92,7 @@ MEMORY /* 112Kb of contiguous SRAM */ - ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K - usram (rwx) : ORIGIN = 0x20002000, LENGTH = 8K - xsram (rwx) : ORIGIN = 0x20008000, LENGTH = 96K + ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K + usram (rwx) : ORIGIN = 0x20004000, LENGTH = 16K + xsram (rwx) : ORIGIN = 0x20008000, LENGTH = 80K }