cancel
Showing results for 
Search instead for 
Did you mean: 

Flash memory store and call functions from stored area

mani s
Associate III

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

0 REPLIES 0