You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
642 B

MEMORY
{
FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = 32256
RAM (xrw) : ORIGIN = 0, LENGTH = 2K
}
_stack_size = 512;
SECTIONS
{
.text :
{
KEEP(*(.isr))
KEEP(*(.reset))
KEEP(*(.text.main)) /* main must follow the reset handler */
*(.text.*)
*(.rodata)
*(.rodata.*)
}
.stack :
{
. += _stack_size;
_stack_top = .;
} >RAM
.data :
{
*(.data)
*(.data*)
} >RAM AT>FLASH_TEXT
.bss :
{
_sbss = .;
*(.bss)
*(.bss*)
*(COMMON)
_ebss = .;
_heap_start = .;
} >RAM
}