diff --git a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld index 8cafb0abe6..49b46bce50 100644 --- a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld +++ b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld @@ -7,6 +7,8 @@ FLASH_APP .text FLASH_APP .data + FLASH_EXT .big_const + RAM .data RAM .bss RAM .heap @@ -43,6 +45,13 @@ ENTRY(Reset_Handler) /* Define output sections */ SECTIONS { + .text_ext : + { + . = ALIGN(512); + *(.big_const*) + . = ALIGN(4); + } >FLASH_EXT + .isr_vector : { . = ALIGN(4); diff --git a/ports/stm32/boards/PYBD_SF2/mpconfigboard.mk b/ports/stm32/boards/PYBD_SF2/mpconfigboard.mk index 87e3970656..98103e1405 100644 --- a/ports/stm32/boards/PYBD_SF2/mpconfigboard.mk +++ b/ports/stm32/boards/PYBD_SF2/mpconfigboard.mk @@ -5,6 +5,10 @@ MICROPY_FLOAT_IMPL = single AF_FILE = boards/stm32f722_af.csv LD_FILES = boards/PYBD_SF2/f722_qspi.ld TEXT0_ADDR = 0x08008000 +TEXT1_ADDR = 0x90000000 +TEXT0_SECTIONS = .isr_vector .text .data +TEXT1_SECTIONS = .text_ext # MicroPython settings MICROPY_PY_LWIP = 1 +MICROPY_PY_NETWORK_CYW43 = 1 diff --git a/ports/stm32/boards/PYBD_SF3/mpconfigboard.mk b/ports/stm32/boards/PYBD_SF3/mpconfigboard.mk index 6104ed2475..924a0f3d55 100644 --- a/ports/stm32/boards/PYBD_SF3/mpconfigboard.mk +++ b/ports/stm32/boards/PYBD_SF3/mpconfigboard.mk @@ -11,3 +11,4 @@ TEXT1_SECTIONS = .text_ext # MicroPython settings MICROPY_PY_LWIP = 1 +MICROPY_PY_NETWORK_CYW43 = 1 diff --git a/ports/stm32/boards/PYBD_SF6/f767.ld b/ports/stm32/boards/PYBD_SF6/f767.ld index d910438a7e..7f13eb45fe 100644 --- a/ports/stm32/boards/PYBD_SF6/f767.ld +++ b/ports/stm32/boards/PYBD_SF6/f767.ld @@ -5,6 +5,7 @@ FLASH_APP .isr_vector FLASH_APP .text + FLASH_APP .big_const FLASH_APP .data RAM .data @@ -55,6 +56,8 @@ SECTIONS . = ALIGN(4); *(.text*) *(.rodata*) + . = ALIGN(512); + *(.big_const*) . = ALIGN(4); _etext = .; } >FLASH_APP diff --git a/ports/stm32/boards/PYBD_SF6/mpconfigboard.mk b/ports/stm32/boards/PYBD_SF6/mpconfigboard.mk index 0288b9142c..5018123272 100644 --- a/ports/stm32/boards/PYBD_SF6/mpconfigboard.mk +++ b/ports/stm32/boards/PYBD_SF6/mpconfigboard.mk @@ -8,3 +8,4 @@ TEXT0_ADDR = 0x08008000 # MicroPython settings MICROPY_PY_LWIP = 1 +MICROPY_PY_NETWORK_CYW43 = 1