Skip to content

Commit dcdaea8

Browse files
committed
[bsp][stm32]fix stm32 ld flash oversize #11124
1 parent bbc45da commit dcdaea8

110 files changed

Lines changed: 659 additions & 659 deletions

File tree

  • bsp/stm32
    • libraries/templates
    • stm32f072-st-nucleo/board/linker_scripts
    • stm32f091-st-nucleo/board/linker_scripts
    • stm32f103-100ask-mini/board/linker_scripts
    • stm32f103-100ask-pro/board/linker_scripts
    • stm32f103-atk-nano/board/linker_scripts
    • stm32f103-atk-warshipv3/board/linker_scripts
    • stm32f103-blue-pill/board/linker_scripts
    • stm32f103-dofly-M3S/board/linker_scripts
    • stm32f103-dofly-lyc8/board/linker_scripts
    • stm32f103-fire-arbitrary/board/linker_scripts
    • stm32f103-gizwits-gokitv21/board/linker_scripts
    • stm32f103-hw100k-ibox/board/linker_scripts
    • stm32f103-keysking-learning/board/linker_scripts
    • stm32f103-onenet-nbiot/board/linker_scripts
    • stm32f103-yf-ufun/board/linker_scripts
    • stm32f103-ys-f1pro/board/linker_scripts
    • stm32f107-uc-eval/board/linker_scripts
    • stm32f207-st-nucleo/board/linker_scripts
    • stm32f302-st-nucleo/board/linker_scripts
    • stm32f334-st-nucleo/board/linker_scripts
    • stm32f401-st-nucleo/board/linker_scripts
    • stm32f401-weact-blackpill/board/linker_scripts
    • stm32f405-smdz-breadfruit/board/linker_scripts
    • stm32f405zg-mini-template/board/linker_scripts
    • stm32f407-armfly-v5/board/linker_scripts
    • stm32f407-atk-explorer/board/linker_scripts
    • stm32f407-fk407m2-zgt6/board/linker_scripts
    • stm32f407-lckfb-skystar/board/linker_scripts
    • stm32f407-micu/board/linker_scripts
    • stm32f407-robomaster-c/board/linker_scripts
    • stm32f407-rt-spark/board/linker_scripts
    • stm32f407-st-discovery/board/linker_scripts
    • stm32f410-st-nucleo/board/linker_scripts
    • stm32f411-atk-nano/board/linker_scripts
    • stm32f411-st-nucleo/board/linker_scripts
    • stm32f411-weact-blackpill/board/linker_scripts
    • stm32f412-st-nucleo/board/linker_scripts
    • stm32f413-st-nucleo/board/linker_scripts
    • stm32f427-robomaster-a/board/linker_scripts
    • stm32f429-armfly-v6/board/linker_scripts
    • stm32f429-atk-apollo/board/linker_scripts
    • stm32f429-fire-challenger/board/linker_scripts
    • stm32f429-st-disco/board/linker_scripts
    • stm32f446-st-nucleo/board/linker_scripts
    • stm32f469-st-disco/board/linker_scripts
    • stm32f723-st-disco/board/linker_scripts
    • stm32f746-st-disco/board/linker_scripts
    • stm32f746-st-nucleo/board/linker_scripts
    • stm32f767-atk-apollo/board/linker_scripts
    • stm32f767-fire-challenger-v1/board/linker_scripts
    • stm32f767-st-nucleo/board/linker_scripts
    • stm32f769-st-disco/board/linker_scripts
    • stm32g030-tiny-board/board/linker_scripts
    • stm32g070-st-nucleo/board/linker_scripts
    • stm32g071-st-nucleo/board/linker_scripts
    • stm32g431-st-nucleo/board/linker_scripts
    • stm32g474-st-nucleo/board/linker_scripts
    • stm32g491-st-nucleo/board/linker_scripts
    • stm32h503-st-nucleo/board/linker_scripts
    • stm32h563-st-nucleo/board/linker_scripts
    • stm32h723-DM-MC02/board/linker_scripts
    • stm32h723-lxb-disco/board/linker_scripts
    • stm32h723-st-nucleo/board/linker_scripts
    • stm32h743-armfly-v7/board/linker_scripts
    • stm32h743-atk-apollo/board/linker_scripts
    • stm32h743-openmv-h7plus/board/linker_scripts
    • stm32h743-st-nucleo/board/linker_scripts
    • stm32h747-st-discovery/board/linker_scripts
    • stm32h750-armfly-h7-tool/board/linker_scripts
    • stm32h750-artpi/board/linker_scripts
    • stm32h750-fk750m1-vbt6/board/linker_scripts
    • stm32h750-weact-ministm32h7xx/board/linker_scripts
    • stm32h7r7-artpi2/board/linker_scripts
    • stm32h7s7-st-disco/board/linker_scripts
    • stm32l010-st-nucleo/board/linker_scripts
    • stm32l053-st-nucleo/board/linker_scripts
    • stm32l412-st-nucleo/board/linker_scripts
    • stm32l431-BearPi/board/linker_scripts
    • stm32l431-tencentos-tiny-EVB_MX+/board/linker_scripts
    • stm32l432-st-nucleo/board/linker_scripts
    • stm32l433-ali-startkit/board/linker_scripts
    • stm32l433-st-nucleo/board/linker_scripts
    • stm32l452-st-nucleo/board/linker_scripts
    • stm32l475-atk-pandora/board/linker_scripts
    • stm32l475-st-discovery/board/linker_scripts
    • stm32l476-st-nucleo/board/linker_scripts
    • stm32l496-ali-developer/board/linker_scripts
    • stm32l496-st-discovery/board/linker_scripts
    • stm32l496-st-nucleo/board/linker_scripts
    • stm32l4r5-st-nucleo/board/linker_scripts
    • stm32l4r9-st-eval/board/linker_scripts
    • stm32l4r9-st-sensortile-box/board/linker_scripts
    • stm32l552-st-nucleo/board/linker_scripts
    • stm32mp157a-st-discovery/board/linker_scripts
    • stm32mp157a-st-ev1/board/linker_scripts
    • stm32u575-st-nucleo/board/linker_scripts
    • stm32u585-iot02a/board/linker_scripts
    • stm32wb55-st-nucleo/board/linker_scripts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ SECTIONS
6262
.ARM.exidx :
6363
{
6464
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
65-
66-
/* This is used by the startup in order to initialize the .data secion */
67-
_sidata = .;
6865
} > ROM
6966
__exidx_end = .;
7067

68+
/* Used by the startup to initialize .data. */
69+
_sidata = LOADADDR(.data);
70+
7171
/* .data section which is used for initialized data */
7272

73-
.data : AT (_sidata)
73+
.data :
7474
{
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
@@ -89,9 +89,9 @@ SECTIONS
8989
. = ALIGN(4);
9090
/* This is used by the startup in order to initialize the .data secion */
9191
_edata = . ;
92-
} >RAM
92+
} >RAM AT> ROM
9393

94-
.stack :
94+
.stack (NOLOAD) :
9595
{
9696
. = ALIGN(4);
9797
_sstack = .;

‎bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ SECTIONS
6262
.ARM.exidx :
6363
{
6464
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
65-
66-
/* This is used by the startup in order to initialize the .data secion */
67-
_sidata = .;
6865
} > ROM
6966
__exidx_end = .;
7067

68+
/* Used by the startup to initialize .data. */
69+
_sidata = LOADADDR(.data);
70+
7171
/* .data section which is used for initialized data */
7272

73-
.data : AT (_sidata)
73+
.data :
7474
{
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
@@ -88,9 +88,9 @@ SECTIONS
8888
. = ALIGN(4);
8989
/* This is used by the startup in order to initialize the .data secion */
9090
_edata = . ;
91-
} >RAM
91+
} >RAM AT> ROM
9292

93-
.stack :
93+
.stack (NOLOAD) :
9494
{
9595
. = ALIGN(4);
9696
_sstack = .;

‎bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ SECTIONS
5454
.ARM.exidx :
5555
{
5656
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
57-
58-
/* This is used by the startup in order to initialize the .data secion */
59-
_sidata = .;
6057
} > ROM
6158
__exidx_end = .;
6259

60+
/* Used by the startup to initialize .data. */
61+
_sidata = LOADADDR(.data);
62+
6363
/* .data section which is used for initialized data */
6464

65-
.data : AT (_sidata)
65+
.data :
6666
{
6767
. = ALIGN(4);
6868
/* This is used by the startup in order to initialize the .data secion */
@@ -75,9 +75,9 @@ SECTIONS
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
7777
_edata = . ;
78-
} >RAM
78+
} >RAM AT> ROM
7979

80-
.stack :
80+
.stack (NOLOAD) :
8181
{
8282
. = ALIGN(4);
8383
_sstack = .;

‎bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ SECTIONS
6363
.ARM.exidx :
6464
{
6565
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
66-
67-
/* This is used by the startup in order to initialize the .data secion */
68-
_sidata = .;
6966
} > ROM
7067
__exidx_end = .;
7168

69+
/* Used by the startup to initialize .data. */
70+
_sidata = LOADADDR(.data);
71+
7272
/* .data section which is used for initialized data */
7373

74-
.data : AT (_sidata)
74+
.data :
7575
{
7676
. = ALIGN(4);
7777
/* This is used by the startup in order to initialize the .data secion */
@@ -89,9 +89,9 @@ SECTIONS
8989
. = ALIGN(4);
9090
/* This is used by the startup in order to initialize the .data secion */
9191
_edata = . ;
92-
} >RAM
92+
} >RAM AT> ROM
9393

94-
.stack :
94+
.stack (NOLOAD) :
9595
{
9696
. = ALIGN(4);
9797
_sstack = .;

‎bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ SECTIONS
6363
.ARM.exidx :
6464
{
6565
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
66-
67-
/* This is used by the startup in order to initialize the .data secion */
68-
_sidata = .;
6966
} > ROM
7067
__exidx_end = .;
7168

69+
/* Used by the startup to initialize .data. */
70+
_sidata = LOADADDR(.data);
71+
7272
/* .data section which is used for initialized data */
7373

74-
.data : AT (_sidata)
74+
.data :
7575
{
7676
. = ALIGN(4);
7777
/* This is used by the startup in order to initialize the .data secion */
@@ -89,9 +89,9 @@ SECTIONS
8989
. = ALIGN(4);
9090
/* This is used by the startup in order to initialize the .data secion */
9191
_edata = . ;
92-
} >RAM
92+
} >RAM AT> ROM
9393

94-
.stack :
94+
.stack (NOLOAD) :
9595
{
9696
. = ALIGN(4);
9797
_sstack = .;

‎bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ SECTIONS
6363
.ARM.exidx :
6464
{
6565
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
66-
67-
/* This is used by the startup in order to initialize the .data secion */
68-
_sidata = .;
6966
} > ROM
7067
__exidx_end = .;
7168

69+
/* Used by the startup to initialize .data. */
70+
_sidata = LOADADDR(.data);
71+
7272
/* .data section which is used for initialized data */
7373

74-
.data : AT (_sidata)
74+
.data :
7575
{
7676
. = ALIGN(4);
7777
/* This is used by the startup in order to initialize the .data secion */
@@ -89,9 +89,9 @@ SECTIONS
8989
. = ALIGN(4);
9090
/* This is used by the startup in order to initialize the .data secion */
9191
_edata = . ;
92-
} >RAM
92+
} >RAM AT> ROM
9393

94-
.stack :
94+
.stack (NOLOAD) :
9595
{
9696
. = ALIGN(4);
9797
_sstack = .;

‎bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ SECTIONS
6363
.ARM.exidx :
6464
{
6565
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
66-
67-
/* This is used by the startup in order to initialize the .data secion */
68-
_sidata = .;
6966
} > ROM
7067
__exidx_end = .;
7168

69+
/* Used by the startup to initialize .data. */
70+
_sidata = LOADADDR(.data);
71+
7272
/* .data section which is used for initialized data */
7373

74-
.data : AT (_sidata)
74+
.data :
7575
{
7676
. = ALIGN(4);
7777
/* This is used by the startup in order to initialize the .data secion */
@@ -89,9 +89,9 @@ SECTIONS
8989
. = ALIGN(4);
9090
/* This is used by the startup in order to initialize the .data secion */
9191
_edata = . ;
92-
} >RAM
92+
} >RAM AT> ROM
9393

94-
.stack :
94+
.stack (NOLOAD) :
9595
{
9696
. = ALIGN(4);
9797
_sstack = .;

‎bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ SECTIONS
6262
.ARM.exidx :
6363
{
6464
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
65-
66-
/* This is used by the startup in order to initialize the .data secion */
67-
_sidata = .;
6865
} > ROM
6966
__exidx_end = .;
7067

68+
/* Used by the startup to initialize .data. */
69+
_sidata = LOADADDR(.data);
70+
7171
/* .data section which is used for initialized data */
7272

73-
.data : AT (_sidata)
73+
.data :
7474
{
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
@@ -88,9 +88,9 @@ SECTIONS
8888
. = ALIGN(4);
8989
/* This is used by the startup in order to initialize the .data secion */
9090
_edata = . ;
91-
} >RAM
91+
} >RAM AT> ROM
9292

93-
.stack :
93+
.stack (NOLOAD) :
9494
{
9595
. = ALIGN(4);
9696
_sstack = .;

‎bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ SECTIONS
6262
.ARM.exidx :
6363
{
6464
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
65-
66-
/* This is used by the startup in order to initialize the .data secion */
67-
_sidata = .;
6865
} > ROM
6966
__exidx_end = .;
7067

68+
/* Used by the startup to initialize .data. */
69+
_sidata = LOADADDR(.data);
70+
7171
/* .data section which is used for initialized data */
7272

73-
.data : AT (_sidata)
73+
.data :
7474
{
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
@@ -88,9 +88,9 @@ SECTIONS
8888
. = ALIGN(4);
8989
/* This is used by the startup in order to initialize the .data secion */
9090
_edata = . ;
91-
} > RAM
91+
} > RAM AT> ROM
9292

93-
.stack :
93+
.stack (NOLOAD) :
9494
{
9595
. = ALIGN(4);
9696
_sstack = .;

‎bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ SECTIONS
6262
.ARM.exidx :
6363
{
6464
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
65-
66-
/* This is used by the startup in order to initialize the .data secion */
67-
_sidata = .;
6865
} > ROM
6966
__exidx_end = .;
7067

68+
/* Used by the startup to initialize .data. */
69+
_sidata = LOADADDR(.data);
70+
7171
/* .data section which is used for initialized data */
7272

73-
.data : AT (_sidata)
73+
.data :
7474
{
7575
. = ALIGN(4);
7676
/* This is used by the startup in order to initialize the .data secion */
@@ -88,9 +88,9 @@ SECTIONS
8888
. = ALIGN(4);
8989
/* This is used by the startup in order to initialize the .data secion */
9090
_edata = . ;
91-
} > RAM
91+
} > RAM AT> ROM
9292

93-
.stack :
93+
.stack (NOLOAD) :
9494
{
9595
. = ALIGN(4);
9696
_sstack = .;

0 commit comments

Comments
 (0)