Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEMORY
- {
- FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
- }
- ...
- .fini_array :
- {
- PROVIDE_HIDDEN (__fini_array_start = .);
- KEEP (*(SORT(.fini_array.*)))
- KEEP (*(.fini_array*))
- PROVIDE_HIDDEN (__fini_array_end = .);
- } >FLASH
- /* Uninitialized section, persistent across resets
- When the following section is put before .data the binary ends up being
- padded with zero up to (0x20000000 - 0x8000000) bytes (384MB) wtf ??
- if put after .data the resulting binary is fine */
- .persistent :
- {
- . = ALIGN(4);
- *(.persistent)
- . = ALIGN(4);
- } >RAM
- /* Initialized data sections goes into RAM, load LMA copy after code */
- .data :
- {
- . = ALIGN(4);
- _data_s = .;
- *(.data)
- *(.data*)
- . = ALIGN(4);
- _data_e = .;
- } >RAM AT> FLASH
- /* used by the startup to initialize data */
- _data_init_s = LOADADDR(.data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement