Skip to content

Commit 1727c08

Browse files
committed
feat(wb0): add __libc_init_array call to startup
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 00c4cb6 commit 1727c08

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
107107
cmp r2, r3
108108
bcc FillZerobssram
109109

110+
/* Call static constructors */
111+
bl __libc_init_array
110112
/* Call the application's entry point.*/
111113
bl main
112114

system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
107107
cmp r2, r3
108108
bcc FillZerobssram
109109

110+
/* Call static constructors */
111+
bl __libc_init_array
110112
/* Call the application's entry point.*/
111113
bl main
112114

system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
107107
cmp r2, r3
108108
bcc FillZerobssram
109109

110+
/* Call static constructors */
111+
bl __libc_init_array
110112
/* Call the application's entry point.*/
111113
bl main
112114

system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
107107
cmp r2, r3
108108
bcc FillZerobssram
109109

110+
/* Call static constructors */
111+
bl __libc_init_array
110112
/* Call the application's entry point.*/
111113
bl main
112114

0 commit comments

Comments
 (0)