File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed
targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ defined in linker script */
58
58
.word _sdata
59
59
/* end address for the .data section. defined in linker script */
60
60
.word _edata
61
- /* start address for the .bss section. defined in linker script */
62
- .word _sbss
63
- /* end address for the .bss section. defined in linker script */
64
- .word _ebss
65
61
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
66
62
67
63
/**
@@ -95,24 +91,18 @@ LoopCopyDataInit:
95
91
adds r2, r0, r1
96
92
cmp r2, r3
97
93
bcc CopyDataInit
98
- ldr r2, =_sbss
99
- b LoopFillZerobss
100
- /* Zero fill the bss segment. */
101
- FillZerobss:
102
- movs r3, #0
103
- str r3, [r2], #4
104
-
105
- LoopFillZerobss:
106
- ldr r3, = _ebss
107
- cmp r2, r3
108
- bcc FillZerobss
109
94
110
95
/* Call the clock system initialization function.*/
111
96
bl SystemInit
112
97
/* Call static constructors */
113
- bl __libc_init_array
98
+ // bl __libc_init_array
114
99
/* Call the application's entry point.*/
115
- bl main
100
+ //bl main
101
+ // Calling the crt0 'cold-start' entry point. There __libc_init_array is called
102
+ // and when existing hardware_init_hook() and software_init_hook() before
103
+ // starting main(). software_init_hook() is available and has to be called due
104
+ // to initializsation when using rtos.
105
+ bl _start
116
106
bx lr
117
107
.size Reset_Handler, .-Reset_Handler
118
108
You can’t perform that action at this time.
0 commit comments