2019-02-17 09:35 PM
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1536K
MYFUNCTION (xr) : ORIGIN = 0x08004000 , LENGTH = 1k
MY_VARS (xrw) : ORIGIN = 0x08005000, LENGTH = 1K
}
/* Define output sections */
SECTIONS
{
/* The startup code goes first into FLASH */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
/*myfunction memeory section start address is 0x08004000 */
.myfunction :
{
*(.MYFUNCTION*);
} > MYFUNCTION