diff --git a/stmhal/boards/stm32f401.ld b/stmhal/boards/stm32f401.ld index 11c2b690e7..392142d729 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 */ }