Skip to content

Commit d9357eb

Browse files
committed
Updated STM32F0xx CMSIS to v2.3.3
Included in STM32CubeF0 FW V1.9.0 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent a1a84b7 commit d9357eb

19 files changed

+262
-244
lines changed

system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
#endif /* USE_HAL_DRIVER */
111111

112112
/**
113-
* @brief CMSIS Device version number V2.3.2
113+
* @brief CMSIS Device version number V2.3.3
114114
*/
115115
#define __STM32F0_DEVICE_VERSION_MAIN (0x02) /*!< [31:24] main version */
116116
#define __STM32F0_DEVICE_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */
117-
#define __STM32F0_DEVICE_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */
117+
#define __STM32F0_DEVICE_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */
118118
#define __STM32F0_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
119119
#define __STM32F0_DEVICE_VERSION ((__STM32F0_DEVICE_VERSION_MAIN << 24)\
120120
|(__STM32F0_DEVICE_VERSION_SUB1 << 16)\

system/Drivers/CMSIS/Device/ST/STM32F0xx/Release_Notes.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ <h1 style="margin-bottom: 18pt; text-align: center;" align="center"><span style=
8787
<tbody>
8888
<tr>
8989
<td style="padding: 0cm;" valign="top">
90-
<h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><span style="font-size: 12pt; color: white;">Update History</span></h2><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.2 / 07-April-2017</span></h3>
90+
<h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><span style="font-size: 12pt; color: white;">Update History</span></h2><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.3 / 25-August-2017<o:p></o:p></span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main
91+
Changes</span></u></b></p>
92+
<ul style="margin-top: 0cm;" type="square"><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt; font-weight: normal;"><span style="font-family: 'Verdana','sans-serif'; font-size: 10pt;" lang="EN-US">Remove&nbsp;</span><span style="font-family: Verdana,sans-serif; font-size: 10pt;">support of </span><span style="font-family: Verdana; font-size: 10pt;">Atollic TrueSTUDIO STM32 (TrueSTUDIO) </span><span style="font-family: Verdana,sans-serif; font-size: 10pt;">toolchain.</span></li><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt; font-weight: normal;"><span style="font-family: Verdana,sans-serif; font-size: 10pt;">Performance improvement of the startup code for GCC.<br></span></li></ul><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.2 / 07-April-2017</span></h3>
9193

9294

9395
<p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030x6.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f030x6.s
44
* @author MCD Application Team
5-
* @brief STM32F030x4/STM32F030x6 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F030x4/STM32F030x6 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030x8.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f030x8.s
44
* @author MCD Application Team
5-
* @brief STM32F030x8 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F030x8 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030xc.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f030xc.s
44
* @author MCD Application Team
5-
* @brief STM32F030xc/STM32F030xb devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F030xc/STM32F030xb devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f031x6.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f031x6.s
44
* @author MCD Application Team
5-
* @brief STM32F031x4/STM32F031x6 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F031x4/STM32F031x6 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f038xx.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f038xx.s
44
* @author MCD Application Team
5-
* @brief STM32F038xx devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F038xx devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f042x6.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f042x6.s
44
* @author MCD Application Team
5-
* @brief STM32F042x4/STM32F042x6 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F042x4/STM32F042x6 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -96,33 +96,34 @@ Reset_Handler:
9696

9797
ApplicationStart:
9898
/* Copy the data segment initializers from flash to SRAM */
99-
movs r1, #0
99+
ldr r0, =_sdata
100+
ldr r1, =_edata
101+
ldr r2, =_sidata
102+
movs r3, #0
100103
b LoopCopyDataInit
101104

102105
CopyDataInit:
103-
ldr r3, =_sidata
104-
ldr r3, [r3, r1]
105-
str r3, [r0, r1]
106-
adds r1, r1, #4
106+
ldr r4, [r2, r3]
107+
str r4, [r0, r3]
108+
adds r3, r3, #4
107109

108110
LoopCopyDataInit:
109-
ldr r0, =_sdata
110-
ldr r3, =_edata
111-
adds r2, r0, r1
112-
cmp r2, r3
111+
adds r4, r0, r3
112+
cmp r4, r1
113113
bcc CopyDataInit
114+
115+
/* Zero fill the bss segment. */
114116
ldr r2, =_sbss
117+
ldr r4, =_ebss
118+
movs r3, #0
115119
b LoopFillZerobss
116-
/* Zero fill the bss segment. */
120+
117121
FillZerobss:
118-
movs r3, #0
119122
str r3, [r2]
120123
adds r2, r2, #4
121124

122-
123125
LoopFillZerobss:
124-
ldr r3, = _ebss
125-
cmp r2, r3
126+
cmp r2, r4
126127
bcc FillZerobss
127128

128129
/* Call the clock system intitialization function.*/

0 commit comments

Comments
 (0)