gadget-chilipepper-plantmon.../target-f103.ld
Daniele Lacamera a67219081c Initial commit
2019-03-26 09:28:17 +01:00

41 lines
733 B
Text

MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
}
SECTIONS
{
.text :
{
_start_text = .;
KEEP(*(.isr_vector))
*(.text*)
*(.rodata*)
. = ALIGN(4);
_end_text = .;
} > FLASH
_stored_data = .;
.data : AT (_stored_data)
{
_start_data = .;
*(.data*)
. = ALIGN(4);
_end_data = .;
} > SRAM
.bss :
{
_start_bss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_end_bss = .;
_end = .;
} > SRAM
}
PROVIDE(_end_stack = ORIGIN(SRAM) + LENGTH(SRAM));
PROVIDE(_start_heap = _end);