Debian Codegraph @

ports/stm32/boards/PYBD_SF6/f767.ld

raw
1 /*
2 Linker script for PYBD with STM32F767
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 RAM .data
11 RAM .bss
12 RAM .heap
13 RAM .stack
14 */
15
16 /* Specify the memory areas */
17 MEMORY
18 {
19 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
20 FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 2016K /* sectors 1-11 3x32K 1*128K 7*256K */
21 FLASH_ROMFS (rx): ORIGIN = 0x90000000, LENGTH = 2048K /* external QSPI, at least 2MiB */
22 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 512K /* DTCM=128k, SRAM1=368K, SRAM2=16K */
23 }
24
25 /* produce a link error if there is not this amount of RAM for these sections */
26 _minimum_stack_size = 2K;
27 _minimum_heap_size = 16K;
28
29 /* Define the stack. The stack is full descending so begins just above last byte
30 of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
31 _estack = ORIGIN(RAM) + LENGTH(RAM) - _estack_reserve;
32 _sstack = _estack - 24K;
33
34 /* RAM extents for the garbage collector */
35 _ram_start = ORIGIN(RAM);
36 _ram_end = ORIGIN(RAM) + LENGTH(RAM);
37 _heap_start = _ebss; /* heap starts just after statically allocated memory */
38 _heap_end = _sstack;
39
40 /* ROMFS location */
41 _micropy_hw_romfs_part0_start = ORIGIN(FLASH_ROMFS);
42
43 INCLUDE common_bl.ld