From 3581deec816ff88a7dc2c0274b7c60b11e4ade34 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 3 Jul 2019 16:50:02 +1000 Subject: [PATCH] stm32/boards/PYBD_SF2: Put mbedtls library code in external QSPI flash. mbedtls is large and self contained so is a good candidate to be in external XIP flash, to keep enough spare ROM in internal flash. --- ports/stm32/boards/PYBD_SF2/f722_qspi.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld index b6d3e08e30..554d34b492 100644 --- a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld +++ b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld @@ -47,6 +47,8 @@ SECTIONS { .text_ext : { + . = ALIGN(4); + *lib/mbedtls/*(.text* .rodata*) . = ALIGN(512); *(.big_const*) . = ALIGN(4);