aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George2018-03-27 21:35:03 +1100
committerDamien George2018-03-27 21:35:03 +1100
commit4d409b8e3276c2e40191ada9726780a0dcc776ba (patch)
treed2992453d41d2978c95f6819c3cc7379579dc5ab
parent04de9e33bce3c30de86c3486a132f5a646239c4a (diff)
stm32/boards/stm32f767.ld: Add definition of FLASH_APP.
This allows F767 MCUs to support a bootloader in the first sector.
-rw-r--r--ports/stm32/boards/stm32f767.ld1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/boards/stm32f767.ld b/ports/stm32/boards/stm32f767.ld
index 7e34a90d5..c05fd8021 100644
--- a/ports/stm32/boards/stm32f767.ld
+++ b/ports/stm32/boards/stm32f767.ld
@@ -7,6 +7,7 @@ MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 32K /* sector 0, 32K */
+ FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 2016K /* sectors 1-11 3x32K 1*128K 7*256K */
FLASH_FS (r) : ORIGIN = 0x08008000, LENGTH = 96K /* sectors 1, 2, 3 (32K each) */
FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 896K /* sectors 4-7 1*128Kib 3*256KiB = 896K */
DTCM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K /* Used for storage cache */