diff --git a/ports/stm32/boards/ARDUINO_PORTENTA_H7/stm32h747.ld b/ports/stm32/boards/ARDUINO_PORTENTA_H7/stm32h747.ld index 7a973289cb..d5bd9598f9 100644 --- a/ports/stm32/boards/ARDUINO_PORTENTA_H7/stm32h747.ld +++ b/ports/stm32/boards/ARDUINO_PORTENTA_H7/stm32h747.ld @@ -44,24 +44,4 @@ _micropy_hw_internal_flash_storage_ram_cache_end = ORIGIN(DTCM) + LENGTH(DTCM); _micropy_hw_internal_flash_storage_start = ORIGIN(FLASH_FS); _micropy_hw_internal_flash_storage_end = ORIGIN(FLASH_FS) + LENGTH(FLASH_FS); -REGION_ALIAS("FLASH_COMMON", FLASH_TEXT); - -/* define output sections */ -SECTIONS -{ - INCLUDE common_isr.ld - - .text : - { - . = ALIGN(4); - *(.text*) - *(.rodata*) - . = ALIGN(512); - *(.big_const*) - . = ALIGN(4); - _etext = .; - } >FLASH_TEXT - - INCLUDE common_extratext_data_in_flash.ld - INCLUDE common_bss_heap_stack.ld -} +INCLUDE common_blifs.ld diff --git a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld index 85145b22a3..6ce4c74c3f 100644 --- a/ports/stm32/boards/PYBD_SF2/f722_qspi.ld +++ b/ports/stm32/boards/PYBD_SF2/f722_qspi.ld @@ -7,7 +7,7 @@ FLASH_APP .text FLASH_APP .data - FLASH_EXT .big_const + FLASH_EXT .text_ext RAM .data RAM .bss @@ -40,10 +40,6 @@ _ram_end = ORIGIN(RAM) + LENGTH(RAM); _heap_start = _ebss; /* heap starts just after statically allocated memory */ _heap_end = _sstack; -ENTRY(Reset_Handler) - -REGION_ALIAS("FLASH_COMMON", FLASH_APP); - /* Define output sections */ SECTIONS { @@ -53,13 +49,10 @@ SECTIONS *lib/btstack/*(.text* .rodata*) *lib/mbedtls/*(.text* .rodata*) *lib/mynewt-nimble/*(.text* .rodata*) - . = ALIGN(512); - *(.big_const*) + *lib/cyw43-driver/*(.rodata.w4343*_combined) + *drivers/cyw43/*(.rodata.cyw43_btfw_*) . = ALIGN(4); } >FLASH_EXT - - INCLUDE common_isr.ld - INCLUDE common_text.ld - INCLUDE common_extratext_data_in_flash.ld - INCLUDE common_bss_heap_stack.ld } + +INCLUDE common_bl.ld diff --git a/ports/stm32/boards/PYBD_SF6/f767.ld b/ports/stm32/boards/PYBD_SF6/f767.ld index cbe74696e8..167d2c6a1e 100644 --- a/ports/stm32/boards/PYBD_SF6/f767.ld +++ b/ports/stm32/boards/PYBD_SF6/f767.ld @@ -5,7 +5,6 @@ FLASH_APP .isr_vector FLASH_APP .text - FLASH_APP .big_const FLASH_APP .data RAM .data @@ -39,26 +38,4 @@ _ram_end = ORIGIN(RAM) + LENGTH(RAM); _heap_start = _ebss; /* heap starts just after statically allocated memory */ _heap_end = _sstack; -ENTRY(Reset_Handler) - -REGION_ALIAS("FLASH_COMMON", FLASH_APP); - -/* Define output sections */ -SECTIONS -{ - INCLUDE common_isr.ld - - .text : - { - . = ALIGN(4); - *(.text*) - *(.rodata*) - . = ALIGN(512); - *(.big_const*) - . = ALIGN(4); - _etext = .; - } >FLASH_APP - - INCLUDE common_extratext_data_in_flash.ld - INCLUDE common_bss_heap_stack.ld -} +INCLUDE common_bl.ld