summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2016-03-05 20:04:18 -0800
committerDamien George <damien.p.george@gmail.com>2016-03-07 12:38:57 +0000
commit367c084c4beb62e16c5fb4dccd8e55e950bc2f1d (patch)
treed06c31cdd489d792e45e9c66d3c7dc2c81b5fd7f
parent0edfb7a11591f2b6282ea5db5713613360dd1526 (diff)
stmhal: Fix typo in stm32f401.ld file, regarding flash size.
-rw-r--r--stmhal/boards/stm32f401.ld3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/boards/stm32f401.ld b/stmhal/boards/stm32f401.ld
index 11c2b690e..392142d72 100644
--- a/stmhal/boards/stm32f401.ld
+++ b/stmhal/boards/stm32f401.ld
@@ -8,7 +8,8 @@ MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x080000 /* entire flash, 512 KiB */
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 0x004000 /* sector 0, 16 KiB */
- FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 0x080000 /* sectors 5,6,7,8, 4*128KiB = 512 KiB */
+ /* sectors 1,2,3 are 16K, 4 is 64K (for filesystem) */
+ FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 0x080000 /* sectors 5,6,7 3*128KiB = 384 KiB */
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x018000 /* 96 KiB */
}