Skip to content

Commit c40581c

Browse files
committed
Merge pull request #1792 from svastm/update_cube_l1
STM32Cube_L1 update
2 parents bccd6f2 + 6ebb2e6 commit c40581c

File tree

120 files changed

+31143
-22123
lines changed

Some content is hidden

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

120 files changed

+31143
-22123
lines changed

hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/Release_Notes_stm32l1xx_hal.html

Lines changed: 706 additions & 692 deletions
Large diffs are not rendered by default.

hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/startup_stm32l152xc.S

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,47 @@
1-
; STM32L152RC Ultra Low Power High-density Devices vector table for MDK ARM_MICRO toolchain
2-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3-
; Copyright (c) 2014, STMicroelectronics
4-
; All rights reserved.
1+
;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
2+
;* File Name : startup_stm32l152xc.s
3+
;* Author : MCD Application Team
4+
;* Version : V2.1.3
5+
;* Date : 04-March-2016
6+
;* Description : STM32L152XC Devices vector for MDK-ARM toolchain.
7+
;* This module performs:
8+
;* - Set the initial SP
9+
;* - Set the initial PC == Reset_Handler
10+
;* - Set the vector table entries with the exceptions ISR
11+
;* address.
12+
;* - Configure the system clock
13+
;* - Branches to __main in the C library (which eventually
14+
;* calls main()).
15+
;* After Reset the Cortex-M3 processor is in Thread mode,
16+
;* priority is Privileged, and the Stack is set to Main.
17+
;********************************************************************************
18+
;*
19+
;* COPYRIGHT(c) 2016 STMicroelectronics
20+
;*
21+
;* Redistribution and use in source and binary forms, with or without modification,
22+
;* are permitted provided that the following conditions are met:
23+
;* 1. Redistributions of source code must retain the above copyright notice,
24+
;* this list of conditions and the following disclaimer.
25+
;* 2. Redistributions in binary form must reproduce the above copyright notice,
26+
;* this list of conditions and the following disclaimer in the documentation
27+
;* and/or other materials provided with the distribution.
28+
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
29+
;* may be used to endorse or promote products derived from this software
30+
;* without specific prior written permission.
31+
;*
32+
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33+
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34+
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35+
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
36+
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37+
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38+
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39+
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
40+
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41+
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
542
;
6-
; Redistribution and use in source and binary forms, with or without
7-
; modification, are permitted provided that the following conditions are met:
43+
;*******************************************************************************
844
;
9-
; 1. Redistributions of source code must retain the above copyright notice,
10-
; this list of conditions and the following disclaimer.
11-
; 2. Redistributions in binary form must reproduce the above copyright notice,
12-
; this list of conditions and the following disclaimer in the documentation
13-
; and/or other materials provided with the distribution.
14-
; 3. Neither the name of STMicroelectronics nor the names of its contributors
15-
; may be used to endorse or promote products derived from this software
16-
; without specific prior written permission.
17-
;
18-
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19-
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20-
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21-
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22-
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23-
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24-
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25-
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26-
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27-
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29-
3045
; Amount of memory (in bytes) allocated for Stack
3146
; Tailor this value to your application needs
3247
; <h> Stack Configuration
@@ -37,7 +52,7 @@ Stack_Size EQU 0x00000400
3752

3853
AREA STACK, NOINIT, READWRITE, ALIGN=3
3954
EXPORT __initial_sp
40-
55+
4156
Stack_Mem SPACE Stack_Size
4257
__initial_sp EQU 0x20008000 ; Top of RAM (32 KB)
4358

@@ -51,7 +66,7 @@ Heap_Size EQU 0x00000400
5166
AREA HEAP, NOINIT, READWRITE, ALIGN=3
5267
EXPORT __heap_base
5368
EXPORT __heap_limit
54-
69+
5570
__heap_base
5671
Heap_Mem SPACE Heap_Size
5772
__heap_limit EQU (__initial_sp - Stack_Size)
@@ -132,23 +147,23 @@ __Vectors DCD __initial_sp ; Top of Stack
132147
DCD 0 ; Reserved
133148
DCD TIM5_IRQHandler ; TIM5
134149
DCD SPI3_IRQHandler ; SPI3
135-
DCD UART4_IRQHandler ; UART4
136-
DCD UART5_IRQHandler ; UART5
150+
DCD 0 ; Reserved
151+
DCD 0 ; Reserved
137152
DCD DMA2_Channel1_IRQHandler ; DMA2 Channel 1
138153
DCD DMA2_Channel2_IRQHandler ; DMA2 Channel 2
139154
DCD DMA2_Channel3_IRQHandler ; DMA2 Channel 3
140155
DCD DMA2_Channel4_IRQHandler ; DMA2 Channel 4
141156
DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5
142157
DCD 0 ; Reserved
143158
DCD COMP_ACQ_IRQHandler ; Comparator Channel Acquisition
144-
159+
145160
__Vectors_End
146161

147162
__Vectors_Size EQU __Vectors_End - __Vectors
148163

149164
AREA |.text|, CODE, READONLY
150165

151-
; Reset handler
166+
; Reset handler routine
152167
Reset_Handler PROC
153168
EXPORT Reset_Handler [WEAK]
154169
IMPORT __main
@@ -229,7 +244,6 @@ Default_Handler PROC
229244
EXPORT DAC_IRQHandler [WEAK]
230245
EXPORT COMP_IRQHandler [WEAK]
231246
EXPORT EXTI9_5_IRQHandler [WEAK]
232-
EXPORT LCD_IRQHandler [WEAK]
233247
EXPORT TIM9_IRQHandler [WEAK]
234248
EXPORT TIM10_IRQHandler [WEAK]
235249
EXPORT TIM11_IRQHandler [WEAK]
@@ -250,10 +264,8 @@ Default_Handler PROC
250264
EXPORT USB_FS_WKUP_IRQHandler [WEAK]
251265
EXPORT TIM6_IRQHandler [WEAK]
252266
EXPORT TIM7_IRQHandler [WEAK]
253-
EXPORT TIM5_IRQHandler [WEAK]
267+
EXPORT TIM5_IRQHandler [WEAK]
254268
EXPORT SPI3_IRQHandler [WEAK]
255-
EXPORT UART4_IRQHandler [WEAK]
256-
EXPORT UART5_IRQHandler [WEAK]
257269
EXPORT DMA2_Channel1_IRQHandler [WEAK]
258270
EXPORT DMA2_Channel2_IRQHandler [WEAK]
259271
EXPORT DMA2_Channel3_IRQHandler [WEAK]
@@ -308,8 +320,6 @@ TIM6_IRQHandler
308320
TIM7_IRQHandler
309321
TIM5_IRQHandler
310322
SPI3_IRQHandler
311-
UART4_IRQHandler
312-
UART5_IRQHandler
313323
DMA2_Channel1_IRQHandler
314324
DMA2_Channel2_IRQHandler
315325
DMA2_Channel3_IRQHandler
@@ -323,3 +333,5 @@ COMP_ACQ_IRQHandler
323333

324334
ALIGN
325335
END
336+
337+
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****

hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/startup_stm32l152xc.S

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,52 @@
1-
; STM32L152RC Ultra Low Power High-density Devices vector table for MDK ARM_STD toolchain
2-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3-
; Copyright (c) 2014, STMicroelectronics
4-
; All rights reserved.
1+
;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
2+
;* File Name : startup_stm32l152xc.s
3+
;* Author : MCD Application Team
4+
;* Version : V2.1.3
5+
;* Date : 04-March-2016
6+
;* Description : STM32L152XC Devices vector for MDK-ARM toolchain.
7+
;* This module performs:
8+
;* - Set the initial SP
9+
;* - Set the initial PC == Reset_Handler
10+
;* - Set the vector table entries with the exceptions ISR
11+
;* address.
12+
;* - Configure the system clock
13+
;* - Branches to __main in the C library (which eventually
14+
;* calls main()).
15+
;* After Reset the Cortex-M3 processor is in Thread mode,
16+
;* priority is Privileged, and the Stack is set to Main.
17+
;********************************************************************************
18+
;*
19+
;* COPYRIGHT(c) 2016 STMicroelectronics
20+
;*
21+
;* Redistribution and use in source and binary forms, with or without modification,
22+
;* are permitted provided that the following conditions are met:
23+
;* 1. Redistributions of source code must retain the above copyright notice,
24+
;* this list of conditions and the following disclaimer.
25+
;* 2. Redistributions in binary form must reproduce the above copyright notice,
26+
;* this list of conditions and the following disclaimer in the documentation
27+
;* and/or other materials provided with the distribution.
28+
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
29+
;* may be used to endorse or promote products derived from this software
30+
;* without specific prior written permission.
31+
;*
32+
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33+
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34+
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35+
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
36+
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37+
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38+
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39+
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
40+
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41+
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
542
;
6-
; Redistribution and use in source and binary forms, with or without
7-
; modification, are permitted provided that the following conditions are met:
43+
;*******************************************************************************
844
;
9-
; 1. Redistributions of source code must retain the above copyright notice,
10-
; this list of conditions and the following disclaimer.
11-
; 2. Redistributions in binary form must reproduce the above copyright notice,
12-
; this list of conditions and the following disclaimer in the documentation
13-
; and/or other materials provided with the distribution.
14-
; 3. Neither the name of STMicroelectronics nor the names of its contributors
15-
; may be used to endorse or promote products derived from this software
16-
; without specific prior written permission.
17-
;
18-
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19-
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20-
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21-
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22-
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23-
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24-
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25-
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26-
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27-
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
45+
; Amount of memory (in bytes) allocated for Stack
46+
; Tailor this value to your application needs
47+
; <h> Stack Configuration
48+
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
49+
; </h>
2950

3051
__initial_sp EQU 0x20008000 ; Top of RAM (32 KB)
3152

@@ -105,23 +126,23 @@ __Vectors DCD __initial_sp ; Top of Stack
105126
DCD 0 ; Reserved
106127
DCD TIM5_IRQHandler ; TIM5
107128
DCD SPI3_IRQHandler ; SPI3
108-
DCD UART4_IRQHandler ; UART4
109-
DCD UART5_IRQHandler ; UART5
129+
DCD 0 ; Reserved
130+
DCD 0 ; Reserved
110131
DCD DMA2_Channel1_IRQHandler ; DMA2 Channel 1
111132
DCD DMA2_Channel2_IRQHandler ; DMA2 Channel 2
112133
DCD DMA2_Channel3_IRQHandler ; DMA2 Channel 3
113134
DCD DMA2_Channel4_IRQHandler ; DMA2 Channel 4
114135
DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5
115136
DCD 0 ; Reserved
116137
DCD COMP_ACQ_IRQHandler ; Comparator Channel Acquisition
117-
138+
118139
__Vectors_End
119140

120141
__Vectors_Size EQU __Vectors_End - __Vectors
121142

122143
AREA |.text|, CODE, READONLY
123144

124-
; Reset handler
145+
; Reset handler routine
125146
Reset_Handler PROC
126147
EXPORT Reset_Handler [WEAK]
127148
IMPORT __main
@@ -202,7 +223,6 @@ Default_Handler PROC
202223
EXPORT DAC_IRQHandler [WEAK]
203224
EXPORT COMP_IRQHandler [WEAK]
204225
EXPORT EXTI9_5_IRQHandler [WEAK]
205-
EXPORT LCD_IRQHandler [WEAK]
206226
EXPORT TIM9_IRQHandler [WEAK]
207227
EXPORT TIM10_IRQHandler [WEAK]
208228
EXPORT TIM11_IRQHandler [WEAK]
@@ -223,10 +243,8 @@ Default_Handler PROC
223243
EXPORT USB_FS_WKUP_IRQHandler [WEAK]
224244
EXPORT TIM6_IRQHandler [WEAK]
225245
EXPORT TIM7_IRQHandler [WEAK]
226-
EXPORT TIM5_IRQHandler [WEAK]
246+
EXPORT TIM5_IRQHandler [WEAK]
227247
EXPORT SPI3_IRQHandler [WEAK]
228-
EXPORT UART4_IRQHandler [WEAK]
229-
EXPORT UART5_IRQHandler [WEAK]
230248
EXPORT DMA2_Channel1_IRQHandler [WEAK]
231249
EXPORT DMA2_Channel2_IRQHandler [WEAK]
232250
EXPORT DMA2_Channel3_IRQHandler [WEAK]
@@ -281,8 +299,6 @@ TIM6_IRQHandler
281299
TIM7_IRQHandler
282300
TIM5_IRQHandler
283301
SPI3_IRQHandler
284-
UART4_IRQHandler
285-
UART5_IRQHandler
286302
DMA2_Channel1_IRQHandler
287303
DMA2_Channel2_IRQHandler
288304
DMA2_Channel3_IRQHandler

hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
******************************************************************************
33
* @file startup_stm32l152xc.s
44
* @author MCD Application Team
5-
* @version V2.0.0
6-
* @date 5-September-2014
5+
* @version V2.1.3
6+
* @date 04-March-2016
77
* @brief STM32L152XC Devices vector table for
88
* Atollic toolchain.
99
* This module performs:
@@ -17,7 +17,7 @@
1717
* priority is Privileged, and the Stack is set to Main.
1818
******************************************************************************
1919
*
20-
* <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
20+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
2121
*
2222
* Redistribution and use in source and binary forms, with or without modification,
2323
* are permitted provided that the following conditions are met:
@@ -221,7 +221,7 @@ g_pfnVectors:
221221
.word 0
222222
.word 0
223223
.word BootRAM /* @0x108. This is for boot in RAM mode for
224-
STM32L152XE devices. */
224+
STM32L152XC devices. */
225225

226226
/*******************************************************************************
227227
*

hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/startup_stm32l152xc.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
;/******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
1+
;/******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
22
;* File Name : startup_stm32l152xc.s
33
;* Author : MCD Application Team
4-
;* Version : V1.0.0
5-
;* Date : 5-September-2014
4+
;* Version : V2.1.3
5+
;* Date : 04-March-2016
66
;* Description : STM32L152XC Devices vector for EWARM toolchain.
77
;* This module performs:
88
;* - Set the initial SP
@@ -16,7 +16,7 @@
1616
;* priority is Privileged, and the Stack is set to Main.
1717
;********************************************************************************
1818
;*
19-
;* <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
19+
;* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
2020
;*
2121
;* Redistribution and use in source and binary forms, with or without modification,
2222
;* are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)