Skip to content

Commit f016f1d

Browse files
author
Jan Kamidra
committed
update startup file
1 parent 27de5e7 commit f016f1d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

targets/TARGET_STM/TARGET_STM32U0/TARGET_STM32U083xC/TOOLCHAIN_GCC_ARM/startup_stm32u083xx.s

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ defined in linker script */
5454
.section .text.Reset_Handler
5555
.weak Reset_Handler
5656
.type Reset_Handler, %function
57+
5758
Reset_Handler:
5859
ldr r0, =_estack
5960
mov sp, r0 /* set stack pointer */
61+
6062
/* Call the clock system initialization function.*/
6163
bl SystemInit
6264

@@ -90,16 +92,12 @@ FillZerobss:
9092
LoopFillZerobss:
9193
cmp r2, r4
9294
bcc FillZerobss
93-
94-
/* Call static constructors */
95-
bl __libc_init_array
9695
9796
/* Call the application's entry point.*/
98-
bl _start
99-
97+
bl _start
98+
10099
LoopForever:
101100
b LoopForever
102-
103101
.size Reset_Handler, .-Reset_Handler
104102

105103
/**

0 commit comments

Comments
 (0)