Freezing modules on SF2W

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
User avatar
Posts: 4479
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Freezing modules on SF2W

Post by pythoncoder » Fri Nov 01, 2019 3:41 pm

This can fail if there are too many files to fit in the chip flash. The solution is to put them in external SPI flash, but the previous instruction for doing this no longer works: frozen_mpy.o should now read frozen_content.o. The diff relative to the file in the source tree is now:

Code: Select all

--- a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld
+++ b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld
@@ -48,6 +48,7 @@ SECTIONS
     .text_ext :
         . = ALIGN(4);
+        *frozen_content.o(.text* .rodata*)
         *lib/mbedtls/*(.text* .rodata*)
         . = ALIGN(512);
Peter Hinch

Post Reply