Merge pull request #8368 from rotorman/patch-5
Update of startup_stm32f42_43xx.s
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @file startup_stm32f40_41xxx.s
|
* @file startup_stm32f42_43xx.s
|
||||||
* @author MCD Application Team
|
* @author MCD Application Team
|
||||||
* @version V1.3.0
|
* @version V1.3.0
|
||||||
* @date 08-November-2013
|
* @date 08-November-2013
|
||||||
* @brief STM32F40xxx/41xxx Devices vector table for RIDE7 toolchain.
|
* @brief STM32F42xxx/43xxx Devices vector table for RIDE7 toolchain.
|
||||||
* This module performs:
|
* This module performs:
|
||||||
* - Set the initial SP
|
* - Set the initial SP
|
||||||
* - Set the initial PC == Reset_Handler,
|
* - Set the initial PC == Reset_Handler,
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
* - Set the vector table entries with the exceptions ISR address
|
||||||
* - Configure the clock system and the external SRAM mounted on
|
* - Configure the clock system and the external SRAM mounted on
|
||||||
* STM324xG-EVAL board to be used as data memory (optional,
|
* STM32F4xG-EVAL board to be used as data memory (optional,
|
||||||
* to be enabled by user)
|
* to be enabled by user)
|
||||||
* - Branches to main in the C library (which eventually
|
* - Branches to main in the C library (which eventually
|
||||||
* calls main()).
|
* calls main()).
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.syntax unified
|
.syntax unified
|
||||||
.cpu cortex-m3
|
.cpu cortex-m4
|
||||||
.fpu softvfp
|
.fpu softvfp
|
||||||
.thumb
|
.thumb
|
||||||
|
|
||||||
@@ -70,8 +70,8 @@ defined in linker script */
|
|||||||
.weak Reset_Handler
|
.weak Reset_Handler
|
||||||
.type Reset_Handler, %function
|
.type Reset_Handler, %function
|
||||||
Reset_Handler:
|
Reset_Handler:
|
||||||
|
ldr sp, =_estack /* set stack pointer */
|
||||||
bl pwrResetHandler /*jump to WDT reset handler where soft power control pin is turned on as soon as possible */
|
bl pwrResetHandler /* jump to WDT reset handler where soft power control pin is turned on as soon as possible */
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
/* Copy the data segment initializers from flash to SRAM */
|
||||||
movs r1, #0
|
movs r1, #0
|
||||||
@@ -113,7 +113,7 @@ LoopPaintMainStack:
|
|||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
/* Call the clock system intitialization function.*/
|
||||||
bl SystemInit
|
bl SystemInit
|
||||||
/* Call C++ constructors for static objects */
|
/* Call static constructors */
|
||||||
bl __libc_init_array
|
bl __libc_init_array
|
||||||
/* Call the application's entry point.*/
|
/* Call the application's entry point.*/
|
||||||
bl main
|
bl main
|
||||||
|
|||||||
Reference in New Issue
Block a user