Skip to content

Commit 38b7ae0

Browse files
authored
Merge pull request #6112 from jeromecoutant/PR_CUBE_UPDATE_F4
STM32F4: Update ST HAL driver with CubeF4 v1.19.0
2 parents 1e1a178 + ea9c1f2 commit 38b7ae0

File tree

282 files changed

+12983
-12256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+12983
-12256
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_MICRO toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_STD toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/TOOLCHAIN_IAR/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;/******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for EWARM toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/stm32f4xx.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
86
*
97
* The file is the unique include file that the application programmer
@@ -124,11 +122,11 @@
124122
#endif /* USE_HAL_DRIVER */
125123

126124
/**
127-
* @brief CMSIS version number V2.6.1
125+
* @brief CMSIS version number V2.6.2
128126
*/
129127
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
130128
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
131-
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x01U) /*!< [15:8] sub2 version */
129+
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x02U) /*!< [15:8] sub2 version */
132130
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
133131
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
134132
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/system_stm32f4xx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file system_stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
86
******************************************************************************
97
* @attention

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_MICRO toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_STD toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/TOOLCHAIN_IAR/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;/******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for EWARM toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/stm32f4xx.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
86
*
97
* The file is the unique include file that the application programmer
@@ -124,11 +122,11 @@
124122
#endif /* USE_HAL_DRIVER */
125123

126124
/**
127-
* @brief CMSIS version number V2.6.1
125+
* @brief CMSIS version number V2.6.2
128126
*/
129127
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
130128
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
131-
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x01U) /*!< [15:8] sub2 version */
129+
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x02U) /*!< [15:8] sub2 version */
132130
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
133131
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
134132
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_stm32f4xx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file system_stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
86
******************************************************************************
97
* @attention

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/TOOLCHAIN_ARM_MICRO/startup_stm32f405xx.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f405xx.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F405xx devices vector table for MDK-ARM_MICRO toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/TOOLCHAIN_ARM_STD/startup_stm32f405xx.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f405xx.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F405xx devices vector table for MDK-ARM_STD toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/TOOLCHAIN_IAR/startup_stm32f405xx.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;/******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f405xx.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F405xx devices vector table for EWARM toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/stm32f4xx.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
86
*
97
* The file is the unique include file that the application programmer
108
* is using in the C source code, usually in main.c. This file contains:
119
* - Configuration section that allows to select:
1210
* - The STM32F4xx device used in the target application
13-
* - To use or not the peripherals drivers in application code(i.e.
14-
* code will be based on direct access to peripherals registers
11+
* - To use or not the peripheral's drivers in application code(i.e.
12+
* code will be based on direct access to peripheral's registers
1513
* rather than drivers API), this option is controlled by
1614
* "#define USE_HAL_DRIVER"
1715
*
@@ -124,11 +122,11 @@
124122
#endif /* USE_HAL_DRIVER */
125123

126124
/**
127-
* @brief CMSIS version number V2.6.1
125+
* @brief CMSIS version number V2.6.2
128126
*/
129127
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
130128
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
131-
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x01U) /*!< [15:8] sub2 version */
129+
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x02U) /*!< [15:8] sub2 version */
132130
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
133131
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
134132
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/system_stm32f4xx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file system_stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
86
******************************************************************************
97
* @attention

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_MICRO toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for MDK-ARM_STD toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f411xe.s
44
* @author MCD Application Team
5-
* @version V2.3.0
6-
* @date 02-March-2015
7-
* @brief STM32F411xExx Devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F411xExx Devices vector table for GCC based toolchains.
86
* This module performs:
97
* - Set the initial SP
108
* - Set the initial PC == Reset_Handler,
@@ -16,7 +14,7 @@
1614
******************************************************************************
1715
* @attention
1816
*
19-
* <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
17+
* <h2><center>&copy; COPYRIGHT 2017 STMicroelectronics</center></h2>
2018
*
2119
* Redistribution and use in source and binary forms, with or without modification,
2220
* are permitted provided that the following conditions are met:
@@ -58,6 +56,10 @@ defined in linker script */
5856
.word _sdata
5957
/* end address for the .data section. defined in linker script */
6058
.word _edata
59+
/* start address for the .bss section. defined in linker script */
60+
.word _sbss
61+
/* end address for the .bss section. defined in linker script */
62+
.word _ebss
6163
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6264

6365
/**
@@ -91,6 +93,18 @@ LoopCopyDataInit:
9193
adds r2, r0, r1
9294
cmp r2, r3
9395
bcc CopyDataInit
96+
ldr r2, =_sbss
97+
b LoopFillZerobss
98+
/* Zero fill the bss segment. */
99+
FillZerobss:
100+
movs r3, #0
101+
str r3, [r2], #4
102+
103+
LoopFillZerobss:
104+
ldr r3, = _ebss
105+
cmp r2, r3
106+
bcc FillZerobss
107+
94108
/* Call the clock system intitialization function.*/
95109
bl SystemInit
96110
/* Call static constructors */

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/TOOLCHAIN_IAR/startup_stm32f411xe.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
;/******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;/******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
22
;* File Name : startup_stm32f411xe.s
33
;* Author : MCD Application Team
4-
;* Version : V2.1.0
5-
;* Date : 19-June-2014
64
;* Description : STM32F411xExx devices vector table for EWARM toolchain.
75
;* This module performs:
86
;* - Set the initial SP

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/stm32f4xx.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
86
*
97
* The file is the unique include file that the application programmer
@@ -124,11 +122,11 @@
124122
#endif /* USE_HAL_DRIVER */
125123

126124
/**
127-
* @brief CMSIS version number V2.6.1
125+
* @brief CMSIS version number V2.6.2
128126
*/
129127
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
130128
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
131-
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x01U) /*!< [15:8] sub2 version */
129+
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x02U) /*!< [15:8] sub2 version */
132130
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
133131
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
134132
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/system_stm32f4xx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
******************************************************************************
33
* @file system_stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.6.1
6-
* @date 14-February-2017
75
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
86
******************************************************************************
97
* @attention

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/device/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f401xc.s
44
* @author MCD Application Team
5-
* @version V2.3.0
6-
* @date 02-March-2015
7-
* @brief STM32F401xCxx Devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F401xCxx Devices vector table for GCC based toolchains.
86
* This module performs:
97
* - Set the initial SP
108
* - Set the initial PC == Reset_Handler,
@@ -16,7 +14,7 @@
1614
******************************************************************************
1715
* @attention
1816
*
19-
* <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
17+
* <h2><center>&copy; COPYRIGHT 2017 STMicroelectronics</center></h2>
2018
*
2119
* Redistribution and use in source and binary forms, with or without modification,
2220
* are permitted provided that the following conditions are met:
@@ -58,6 +56,10 @@ defined in linker script */
5856
.word _sdata
5957
/* end address for the .data section. defined in linker script */
6058
.word _edata
59+
/* start address for the .bss section. defined in linker script */
60+
.word _sbss
61+
/* end address for the .bss section. defined in linker script */
62+
.word _ebss
6163
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6264

6365
/**
@@ -91,6 +93,17 @@ LoopCopyDataInit:
9193
adds r2, r0, r1
9294
cmp r2, r3
9395
bcc CopyDataInit
96+
ldr r2, =_sbss
97+
b LoopFillZerobss
98+
/* Zero fill the bss segment. */
99+
FillZerobss:
100+
movs r3, #0
101+
str r3, [r2], #4
102+
103+
LoopFillZerobss:
104+
ldr r3, = _ebss
105+
cmp r2, r3
106+
bcc FillZerobss
94107

95108
/* Call the clock system intitialization function.*/
96109
bl SystemInit

0 commit comments

Comments
 (0)