| 1 |
/* |
| 2 |
Linker script for PYBD with STM32F722/STM32F723/STM32F732/STM32F733 |
| 3 |
|
| 4 |
Memory layout for mboot configuration (this here describes the app part): |
| 5 |
|
| 6 |
FLASH_APP .isr_vector |
| 7 |
FLASH_APP .text |
| 8 |
FLASH_APP .data |
| 9 |
|
| 10 |
FLASH_EXT .text_ext |
| 11 |
|
| 12 |
RAM .data |
| 13 |
RAM .bss |
| 14 |
RAM .heap |
| 15 |
RAM .stack |
| 16 |
*/ |
| 17 |
|
| 18 |
/* Specify the memory areas */ |
| 19 |
MEMORY |
| 20 |
{ |
| 21 |
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K |
| 22 |
FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 480K /* sectors 2-7 */ |
| 23 |
FLASH_EXT (rx) : ORIGIN = 0x90000000, LENGTH = 1024K /* external QSPI */ |
| 24 |
FLASH_ROMFS (rx): ORIGIN = 0x90100000, LENGTH = 1024K /* external QSPI */ |
| 25 |
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256K /* DTCM+SRAM1+SRAM2 */ |
| 26 |
} |
| 27 |
|
| 28 |
/* produce a link error if there is not this amount of RAM for these sections */ |
| 29 |
_minimum_stack_size = 2K; |
| 30 |
_minimum_heap_size = 16K; |
| 31 |
|
| 32 |
/* Define the stack. The stack is full descending so begins just above last byte |
| 33 |
of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */ |
| 34 |
_estack = ORIGIN(RAM) + LENGTH(RAM) - _estack_reserve; |
| 35 |
_sstack = _estack - 16K; |
| 36 |
|
| 37 |
/* RAM extents for the garbage collector */ |
| 38 |
_ram_start = ORIGIN(RAM); |
| 39 |
_ram_end = ORIGIN(RAM) + LENGTH(RAM); |
| 40 |
_heap_start = _ebss; /* heap starts just after statically allocated memory */ |
| 41 |
_heap_end = _sstack; |
| 42 |
|
| 43 |
/* ROMFS location */ |
| 44 |
_micropy_hw_romfs_part0_start = ORIGIN(FLASH_ROMFS); |
| 45 |
_micropy_hw_romfs_part0_size = LENGTH(FLASH_ROMFS); |
| 46 |
|
| 47 |
/* Define output sections */ |
| 48 |
SECTIONS |
| 49 |
{ |
| 50 |
.text_ext : |
| 51 |
{ |
| 52 |
. = ALIGN(4); |
| 53 |
*lib/btstack/*(.text* .rodata*) |
| 54 |
*lib/mbedtls/*(.text* .rodata*) |
| 55 |
*lib/mynewt-nimble/*(.text* .rodata*) |
| 56 |
*lib/cyw43-driver/*(.rodata.w4343*_combined) |
| 57 |
*lib/cyw43-driver/*(.rodata.cyw43_btfw_*) |
| 58 |
. = ALIGN(4); |
| 59 |
} >FLASH_EXT |
| 60 |
} |
| 61 |
|
| 62 |
INCLUDE common_bl.ld |