mbed library sources
Fork of mbed-src by
Diff: targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.s
- Revision:
- 560:c8f2dd221c5d
- Parent:
- 408:4dd1c1251ba6
--- a/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.s Thu Jun 04 16:15:09 2015 +0100 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.s Mon Jun 08 13:45:08 2015 +0100 @@ -78,6 +78,8 @@ .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 @@ /* 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 /**