Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEMORY
- {
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K
- SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K - 4K
- STACK (rwx) : ORIGIN = 0x20007000, LENGTH = 4K
- }
- SECTIONS
- {
- .text :
- {
- _text = .;
- KEEP(*(.isr_vector))
- *(.text*)
- *(.rodata*)
- _etext = .;
- } > FLASH
- .data : AT(ADDR(.text) + SIZEOF(.text))
- {
- _data = .;
- *(vtable)
- *(.data*)
- _edata = .;
- } > SRAM
- .bss :
- {
- _bss = .;
- *(.bss*)
- *(COMMON)
- _ebss = .;
- } > SRAM
- /* Beginning of heap, just where used RAM ends */
- . = ALIGN(8);
- _heap_bottom = .;
- /* Beginning of stack */
- _stack_bottom = ORIGIN(STACK);
- /* End of stack (default value of the stack pointer) */
- _stack_top = ORIGIN(STACK) + LENGTH(STACK);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement