fix f401rc flash size.

This commit is contained in:
guotong ma 2023-11-23 17:51:04 +08:00 committed by Xiang Xiao
parent 6ba30033b3
commit 6c25d2a2f5

View File

@ -18,7 +18,7 @@
* *
****************************************************************************/ ****************************************************************************/
/* The STM32F401RC has 128Kb of FLASH beginning at address 0x0800:0000 and /* The STM32F401RC has 256Kb of FLASH beginning at address 0x0800:0000 and
* 64Kb of SRAM beginning at address 0x2000:0000. When booting from FLASH, * 64Kb of SRAM beginning at address 0x2000:0000. When booting from FLASH,
* FLASH memory is aliased to address 0x0000:0000 where the code expects to * FLASH memory is aliased to address 0x0000:0000 where the code expects to
* begin execution by jumping to the entry point in the 0x0800:0000 address * begin execution by jumping to the entry point in the 0x0800:0000 address
@ -27,7 +27,7 @@
MEMORY MEMORY
{ {
flash (rx) : ORIGIN = 0x08000000, LENGTH = 128K flash (rx) : ORIGIN = 0x08000000, LENGTH = 256K
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K sram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
} }