mbed library sources
Fork of mbed-src by
Revision 560:c8f2dd221c5d, committed 2015-06-08
- Comitter:
- mbed_official
- Date:
- Mon Jun 08 13:45:08 2015 +0100
- Parent:
- 559:a5bce224b5d8
- Child:
- 561:f26bb522183d
- Commit message:
- Synchronized with git revision bae47ec3706133b16c1b4346ed4905c059489b7a
Full URL: https://github.com/mbedmicro/mbed/commit/bae47ec3706133b16c1b4346ed4905c059489b7a/
NUCLEO_F103RB, NUCLEO_L152RE - RTOS test enhancement
Changed in this revision
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.s Thu Jun 04 16:15:09 2015 +0100 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.s Mon Jun 08 13:45:08 2015 +0100 @@ -77,6 +77,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 @@ -109,10 +111,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 /**
--- 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 /**