添加bsp_init,sys_api段

This commit is contained in:
2025-07-06 02:53:08 +08:00
parent fed557e2e1
commit 4922fdfa46
4 changed files with 136 additions and 136 deletions

View File

@@ -126,7 +126,7 @@ SECTIONS
.sys_api :{
. = ALIGN(4);
sys_api_start = .;
*(.sys_api)
KEEP(*(.sys_api))
sys_api_end = .;
. = ALIGN(4);
} >FLASH
@@ -134,7 +134,7 @@ SECTIONS
.bsp_init :{
. = ALIGN(4);
bsp_init_start = .;
*(bsp_init)
KEEP(*(.bsp_init))
bsp_init_end = .;
. = ALIGN(4);
} >FLASH
@@ -173,7 +173,7 @@ SECTIONS
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
@@ -186,11 +186,11 @@ SECTIONS
_siccmram = LOADADDR(.ccmram);
/* CCM-RAM section
*
* IMPORTANT NOTE!
/* CCM-RAM section
*
* IMPORTANT NOTE!
* 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 :
{
@@ -198,12 +198,12 @@ SECTIONS
_sccmram = .; /* create a global symbol at ccmram start */
*(.ccmram)
*(.ccmram*)
. = ALIGN(4);
_eccmram = .; /* create a global symbol at ccmram end */
} >CCMRAM AT> FLASH
/* Uninitialized data section */
. = ALIGN(4);
.bss :
@@ -231,7 +231,7 @@ SECTIONS
. = ALIGN(8);
} >RAM
/* Remove information from the standard libraries */
/DISCARD/ :