From c92c2e9247ca32060a1849e3395885623515170f Mon Sep 17 00:00:00 2001
From: 94xhn <87560781+94xhn@users.noreply.github.com>
Date: Sat, 11 Jul 2026 22:48:59 +0800
Subject: [PATCH] fix(linker): correct Keil external SRAM region size in
FSMC_SRAM_DataMemory
The MDK-ARM project for STM322xG_EVAL/Examples/FSMC/FSMC_SRAM_DataMemory
declares the external FSMC SRAM region (OCR_RVCT9, base 0x64000000) with
a size of 0x20000 (128 KB), while the GCC linker script
(SW4STM32/STM322xG_EVAL/STM32F207IGHx_FLASH.ld) and the active IAR
linker file (EWARM/stm32f207xx_extsram.icf, selected via
IlinkIcfOverride) both declare the identical physical memory at the
same base address as 0x100000 (1 MB).
The board's external memory is an ISSI IS61WV102416BLL-10MLI SRAM
(1M x 16-bit = 2 MB), so the GCC/IAR 1 MB figure is a plausible subset
of the real chip capacity, while Keil's 128 KB figure under-declares
the usable window by 8x for no apparent reason. This brings the Keil
project's declared region size back in line with the other two
toolchains for the same physical memory.
Signed-off-by: 94xhn <87560781+94xhn@users.noreply.github.com>
---
.../Examples/FSMC/FSMC_SRAM_DataMemory/MDK-ARM/Project.uvprojx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Projects/STM322xG_EVAL/Examples/FSMC/FSMC_SRAM_DataMemory/MDK-ARM/Project.uvprojx b/Projects/STM322xG_EVAL/Examples/FSMC/FSMC_SRAM_DataMemory/MDK-ARM/Project.uvprojx
index 3639b06a..89e6ed33 100644
--- a/Projects/STM322xG_EVAL/Examples/FSMC/FSMC_SRAM_DataMemory/MDK-ARM/Project.uvprojx
+++ b/Projects/STM322xG_EVAL/Examples/FSMC/FSMC_SRAM_DataMemory/MDK-ARM/Project.uvprojx
@@ -298,7 +298,7 @@
0
0x64000000
- 0x20000
+ 0x100000
0