[NUCLEO_L152RE] GCC startup for RTOS

pull/1162/head
dbestm 2015-06-04 17:31:36 +02:00
parent 1b3896f1c2
commit a5272f721d
1 changed files with 10 additions and 3 deletions

View File

@ -78,6 +78,8 @@ defined in linker script */
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
ldr r0, =_estack
mov sp, r0 /* set stack pointer */
/* Copy the data segment initializers from flash to SRAM */
movs r1, #0
@ -110,10 +112,15 @@ LoopFillZerobss:
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
bl __libc_init_array
//bl __libc_init_array
/* Call the application's entry point.*/
bl main
bx lr
//bl main
bl _start
LoopForever:
b LoopForever
.size Reset_Handler, .-Reset_Handler
/**