Just add to line 51 of '../micropython/ports/stm32/boards/PYBD_SF2/f722_qspi.ld' :
Code: Select all
*lib/lwip/*(.text* .rodata*)
- writing firmware 'PYBD-SF2_lwip-2MB_v1.12-623-gf743bd3d2_20200712.dfu''' with .native module 'lwip' in FLASH_EXT (external 2 MB QSPI flash), 414.616 bytes are written to FLASH_APP (480 kB), so there are ((480*1024=491520) - 414616 = 76904) bytes free in FLASH_APP, enough for ulab;
- writing firmware 'PYBD-SF2_lwip-frozen-2MB_v1.12-623-gf743bd3d2_20200712.dfu''' with .native module 'lwip' and .py frozen modules in FLASH_EXT (external 2 MB QSPI flash), 388.136 bytes are written to FLASH_APP (480 kB), so there are ((480*1024=491520) - 388.136 = 103384) bytes free in FLASH_APP, enough for ulab.
I hope that 'lwip' module is not used during Pyboard D SF2W boot, so the boot time doesn't increase due to reading from the slower QSPI flash. The MicroPython main developers could confirm this behaviour.
So these 3 options allow to install full ulab :
- .py frozen modules;
- 'lwip' native module;
- py frozen modules + 'lwip' native module;
moved to FLASH_EXT (external 2 MB QSPI flash).