|
@ -1,7 +1,6 @@ |
|
|
/* |
|
|
/* |
|
|
***************************************************************************** |
|
|
***************************************************************************** |
|
|
** |
|
|
** |
|
|
|
|
|
|
|
|
** File : LinkerScript.ld |
|
|
** File : LinkerScript.ld |
|
|
** |
|
|
** |
|
|
** Abstract : Linker script for STM32F407VETx Device with |
|
|
** Abstract : Linker script for STM32F407VETx Device with |
|
@ -115,7 +114,7 @@ SECTIONS |
|
|
_sidata = LOADADDR(.data); |
|
|
_sidata = LOADADDR(.data); |
|
|
|
|
|
|
|
|
/* Initialized data sections goes into RAM, load LMA copy after code */ |
|
|
/* Initialized data sections goes into RAM, load LMA copy after code */ |
|
|
.data : |
|
|
.data : |
|
|
{ |
|
|
{ |
|
|
. = ALIGN(4); |
|
|
. = ALIGN(4); |
|
|
_sdata = .; /* create a global symbol at data start */ |
|
|
_sdata = .; /* create a global symbol at data start */ |
|
@ -128,24 +127,24 @@ SECTIONS |
|
|
|
|
|
|
|
|
_siccmram = LOADADDR(.ccmram); |
|
|
_siccmram = LOADADDR(.ccmram); |
|
|
|
|
|
|
|
|
/* CCM-RAM section |
|
|
/* CCM-RAM section |
|
|
* |
|
|
* |
|
|
* IMPORTANT NOTE! |
|
|
* IMPORTANT NOTE! |
|
|
* If initialized variables will be placed in this section, |
|
|
* If initialized variables will be placed in this section, |
|
|
* the startup code needs to be modified to copy the init-values. |
|
|
* the startup code needs to be modified to copy the init-values. |
|
|
*/ |
|
|
*/ |
|
|
.ccmram : |
|
|
.ccmram : |
|
|
{ |
|
|
{ |
|
|
. = ALIGN(4); |
|
|
. = ALIGN(4); |
|
|
_sccmram = .; /* create a global symbol at ccmram start */ |
|
|
_sccmram = .; /* create a global symbol at ccmram start */ |
|
|
*(.ccmram) |
|
|
*(.ccmram) |
|
|
*(.ccmram*) |
|
|
*(.ccmram*) |
|
|
|
|
|
|
|
|
. = ALIGN(4); |
|
|
. = ALIGN(4); |
|
|
_eccmram = .; /* create a global symbol at ccmram end */ |
|
|
_eccmram = .; /* create a global symbol at ccmram end */ |
|
|
} >CCMRAM AT> FLASH |
|
|
} >CCMRAM AT> FLASH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Uninitialized data section */ |
|
|
/* Uninitialized data section */ |
|
|
. = ALIGN(4); |
|
|
. = ALIGN(4); |
|
|
.bss : |
|
|
.bss : |
|
@ -173,8 +172,6 @@ SECTIONS |
|
|
. = ALIGN(8); |
|
|
. = ALIGN(8); |
|
|
} >RAM |
|
|
} >RAM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Remove information from the standard libraries */ |
|
|
/* Remove information from the standard libraries */ |
|
|
/DISCARD/ : |
|
|
/DISCARD/ : |
|
|
{ |
|
|
{ |
|
@ -185,5 +182,3 @@ SECTIONS |
|
|
|
|
|
|
|
|
.ARM.attributes 0 : { *(.ARM.attributes) } |
|
|
.ARM.attributes 0 : { *(.ARM.attributes) } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|