Skip to content

Commit 12ded37

Browse files
authored
Merge pull request #1224 from fpistm/updateCube
Update STM32 F1 and F2 HAL drivers
2 parents 554a0a8 + 062e1b4 commit 12ded37

11 files changed

+140
-42
lines changed

system/Drivers/STM32F1xx_HAL_Driver/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ HAL Driver F1 | CMSIS Device F1 | CMSIS Core | Was delivered in the full MCU pac
4141
Tag v1.1.4 | Tag v4.3.1 | Tag v5.4.0_cm3 | Tag v1.8.0 (and following, if any, till next new tag)
4242
Tag v1.1.5 | Tag v4.3.1 | Tag v5.4.0_cm3 | Tag v1.8.1 (and following, if any, till next new tag)
4343
Tag v1.1.6 | Tag v4.3.2 | Tag v5.4.0_cm3 | Tag v1.8.2 (and following, if any, till next new tag)
44+
Tag v1.1.7 | Tag v4.3.2 | Tag v5.4.0_cm3 | Tag v1.8.3 (and following, if any, till next new tag)
4445

4546
The full **STM32CubeF1** MCU package is available [here](https://github.com/STMicroelectronics/STM32CubeF1).
4647

system/Drivers/STM32F1xx_HAL_Driver/Release_Notes.html

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="generator" content="pandoc" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
77
<title>Release Notes for STM32F1xx HAL Drivers</title>
8-
<style type="text/css">
8+
<style>
99
code{white-space: pre-wrap;}
1010
span.smallcaps{font-variant: small-caps;}
1111
span.underline{text-decoration: underline;}
@@ -38,14 +38,37 @@ <h1 id="license"><strong>License</strong></h1>
3838
<div class="col-sm-12 col-lg-8">
3939
<h1 id="update-history"><strong>Update History</strong></h1>
4040
<div class="collapse">
41-
<input type="checkbox" id="collapse-section1_1_6" checked aria-hidden="true"> <label for="collapse-section1_1_6" aria-hidden="true"><strong>V1.1.6 / 07-September-2020</strong></label>
41+
<input type="checkbox" id="collapse-section1_1_7" aria-hidden="true"> <label for="collapse-section1_1_7" aria-hidden="true"><strong>V1.1.7 / 20-October-2020</strong></label>
4242
<div>
4343
<h2 id="main-changes">Main Changes</h2>
4444
<ul>
45-
<li>General updates to fix known defects and enhancements implementation</li>
45+
<li>General updates to fix known defects.</li>
4646
</ul>
4747
<h2 id="contents">Contents</h2>
4848
<ul>
49+
<li><strong>HAL/LL I2C</strong> driver
50+
<ul>
51+
<li>Update to fix hardfault issue with HAL_I2C_Mem_Write_DMA() API:
52+
<ul>
53+
<li>Abort the right ongoing DMA transfer when memory write access request operation failed: fix typo “hdmarx” replaced by “hdmatx”</li>
54+
</ul></li>
55+
</ul></li>
56+
<li><strong>HAL/LL GPIO</strong> driver
57+
<ul>
58+
<li>Update LL_GPIO_Init() API to configure correctly the GPIO speed parameter when GPIO alternate function mode is selected.</li>
59+
</ul></li>
60+
</ul>
61+
</div>
62+
</div>
63+
<div class="collapse">
64+
<input type="checkbox" id="collapse-section1_1_6" aria-hidden="true"> <label for="collapse-section1_1_6" aria-hidden="true"><strong>V1.1.6 / 07-September-2020</strong></label>
65+
<div>
66+
<h2 id="main-changes-1">Main Changes</h2>
67+
<ul>
68+
<li>General updates to fix known defects and enhancements implementation</li>
69+
</ul>
70+
<h2 id="contents-1">Contents</h2>
71+
<ul>
4972
<li><strong>HAL/LL ADC</strong> driver
5073
<ul>
5174
<li>Update HAL_ADC_Stop_DMA() API to check if DMA state is Busy before calling HAL_DMA_Abort() API to avoid DMA internal error.</li>
@@ -223,11 +246,11 @@ <h2 id="contents">Contents</h2>
223246
<div class="collapse">
224247
<input type="checkbox" id="collapse-section1_1_5" aria-hidden="true"> <label for="collapse-section1_1_5" aria-hidden="true"><strong>V1.1.5 / 30-July-2020</strong></label>
225248
<div>
226-
<h2 id="main-changes-1">Main Changes</h2>
249+
<h2 id="main-changes-2">Main Changes</h2>
227250
<ul>
228251
<li>General updates to fix known defects and enhancements implementation</li>
229252
</ul>
230-
<h2 id="contents-1">Contents</h2>
253+
<h2 id="contents-2">Contents</h2>
231254
<ul>
232255
<li><strong>HAL</strong> driver
233256
<ul>
@@ -280,7 +303,7 @@ <h2 id="contents-1">Contents</h2>
280303
<div class="collapse">
281304
<input type="checkbox" id="collapse-section11" aria-hidden="true"> <label for="collapse-section11" aria-hidden="true"><strong>V1.1.4 / 26-June-2019</strong></label>
282305
<div>
283-
<h2 id="main-changes-2">Main Changes</h2>
306+
<h2 id="main-changes-3">Main Changes</h2>
284307
<ul>
285308
<li>General updates to fix known defects and enhancements implementation</li>
286309
<li>Add support of HAL callback registration feature</li>
@@ -487,7 +510,7 @@ <h2 id="main-changes-2">Main Changes</h2>
487510
<div class="collapse">
488511
<input type="checkbox" id="collapse-section10" aria-hidden="true"> <label for="collapse-section10" aria-hidden="true"><strong>V1.1.3 / 09-October-2018</strong></label>
489512
<div>
490-
<h2 id="main-changes-3">Main Changes</h2>
513+
<h2 id="main-changes-4">Main Changes</h2>
491514
<ul>
492515
<li><strong>Maintenance release to fix known defects and enhancements implementation</strong></li>
493516
<li><strong>Generic drivers changes</strong></li>
@@ -530,7 +553,7 @@ <h2 id="main-changes-3">Main Changes</h2>
530553
<div class="collapse">
531554
<input type="checkbox" id="collapse-section9" aria-hidden="true"> <label for="collapse-section9" aria-hidden="true"><strong>V1.1.2 / 09-March-2018</strong></label>
532555
<div>
533-
<h2 id="main-changes-4">Main Changes</h2>
556+
<h2 id="main-changes-5">Main Changes</h2>
534557
<ul>
535558
<li>General updates to fix known defects and enhancements implementation</li>
536559
<li>Remove Date and version from header files</li>
@@ -608,7 +631,7 @@ <h2 id="main-changes-4">Main Changes</h2>
608631
<div class="collapse">
609632
<input type="checkbox" id="collapse-section8" aria-hidden="true"> <label for="collapse-section8" aria-hidden="true"><strong>V1.1.1 / 12-May-2017</strong></label>
610633
<div>
611-
<h2 id="main-changes-5">Main Changes</h2>
634+
<h2 id="main-changes-6">Main Changes</h2>
612635
<ul>
613636
<li>General updates to fix known defects and enhancements implementation</li>
614637
<li><strong>HAL Generic</strong> update
@@ -634,7 +657,7 @@ <h2 id="main-changes-5">Main Changes</h2>
634657
<div class="collapse">
635658
<input type="checkbox" id="collapse-section7" aria-hidden="true"> <label for="collapse-section7" aria-hidden="true"><strong>V1.1.0 / 14-April-2017</strong></label>
636659
<div>
637-
<h2 id="main-changes-6">Main Changes</h2>
660+
<h2 id="main-changes-7">Main Changes</h2>
638661
<ul>
639662
<li><strong>Add Low Layer drivers allowing performance and footprint optimization</strong>
640663
<ul>
@@ -916,7 +939,7 @@ <h2 id="main-changes-6">Main Changes</h2>
916939
<div class="collapse">
917940
<input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true"><strong>V1.0.5 / 06-December-2016</strong></label>
918941
<div>
919-
<h2 id="main-changes-7">Main Changes</h2>
942+
<h2 id="main-changes-8">Main Changes</h2>
920943
<ul>
921944
<li>General updates to fix mainly known I2C defects and enhancements implementation</li>
922945
<li><strong>The following changes done on the HAL drivers require an update on the application code based on HAL V1.0.4</strong>
@@ -1012,7 +1035,7 @@ <h2 id="main-changes-7">Main Changes</h2>
10121035
<div class="collapse">
10131036
<input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true"><strong>V1.0.4 / 29-April-2016</strong></label>
10141037
<div>
1015-
<h2 id="main-changes-8">Main Changes</h2>
1038+
<h2 id="main-changes-9">Main Changes</h2>
10161039
<ul>
10171040
<li>General updates to fix known defects and enhancements implementation.</li>
10181041
<li><strong>HAL RCC</strong>
@@ -1052,7 +1075,7 @@ <h2 id="main-changes-8">Main Changes</h2>
10521075
<div class="collapse">
10531076
<input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true"><strong>V1.0.3 / 11-January-2016</strong></label>
10541077
<div>
1055-
<h2 id="main-changes-9">Main Changes</h2>
1078+
<h2 id="main-changes-10">Main Changes</h2>
10561079
<ul>
10571080
<li>Remove the #if defined(USE_HAL_LEGACY) condition to include Legacy/stm32_hal_legacy.h by default, in stm32f1xx_hal_def.h.</li>
10581081
</ul>
@@ -1061,7 +1084,7 @@ <h2 id="main-changes-9">Main Changes</h2>
10611084
<div class="collapse">
10621085
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true"><strong>V1.0.2 / 18-December-2015</strong></label>
10631086
<div>
1064-
<h2 id="main-changes-10">Main Changes</h2>
1087+
<h2 id="main-changes-11">Main Changes</h2>
10651088
<ul>
10661089
<li>General updates to fix known defects and enhancements implementation.</li>
10671090
<li><strong>HAL generic</strong>
@@ -1147,7 +1170,7 @@ <h2 id="main-changes-10">Main Changes</h2>
11471170
<div class="collapse">
11481171
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.0.1 / 31-July-2015</strong></label>
11491172
<div>
1150-
<h2 id="main-changes-11">Main Changes</h2>
1173+
<h2 id="main-changes-12">Main Changes</h2>
11511174
<ul>
11521175
<li>General updates to fix known defects and enhancements implementation.</li>
11531176
<li><strong>HAL generic</strong>
@@ -1249,7 +1272,7 @@ <h2 id="main-changes-11">Main Changes</h2>
12491272
<div class="collapse">
12501273
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.0.0 / 15-December-2014</strong></label>
12511274
<div>
1252-
<h2 id="main-changes-12">Main Changes</h2>
1275+
<h2 id="main-changes-13">Main Changes</h2>
12531276
<ul>
12541277
<li>First Official release of <strong>STM32F1xx HAL Drivers</strong> for all STM32F1 devices.</li>
12551278
<li>This release is in line with <strong>STM32Cube Firmware specification Rev1.0</strong> document</li>

system/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
* @{
5454
*/
5555
/**
56-
* @brief STM32F1xx HAL Driver version number V1.1.6
56+
* @brief STM32F1xx HAL Driver version number V1.1.7
5757
*/
5858
#define __STM32F1xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
5959
#define __STM32F1xx_HAL_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
60-
#define __STM32F1xx_HAL_VERSION_SUB2 (0x06U) /*!< [15:8] sub2 version */
60+
#define __STM32F1xx_HAL_VERSION_SUB2 (0x07U) /*!< [15:8] sub2 version */
6161
#define __STM32F1xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
6262
#define __STM32F1xx_HAL_VERSION ((__STM32F1xx_HAL_VERSION_MAIN << 24)\
6363
|(__STM32F1xx_HAL_VERSION_SUB1 << 16)\

system/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAdd
31473147
if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK)
31483148
{
31493149
/* Abort the ongoing DMA */
3150-
dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmarx);
3150+
dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmatx);
31513151

31523152
/* Prevent unused argument(s) compilation and MISRA warning */
31533153
UNUSED(dmaxferstatus);

system/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_gpio.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStru
189189
assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode));
190190
assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull));
191191

192+
/* Pull-up Pull-down resistor configuration*/
193+
LL_GPIO_SetPinPull(GPIOx, currentpin, GPIO_InitStruct->Pull);
194+
195+
/* Pin Mode configuration */
196+
LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode);
197+
192198
if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTERNATE))
193199
{
194200
/* Check speed and Output mode parameters */
@@ -201,12 +207,6 @@ ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStru
201207
/* Output mode configuration*/
202208
LL_GPIO_SetPinOutputType(GPIOx, currentpin, GPIO_InitStruct->OutputType);
203209
}
204-
205-
/* Pull-up Pull-down resistor configuration*/
206-
LL_GPIO_SetPinPull(GPIOx, currentpin, GPIO_InitStruct->Pull);
207-
208-
/* Pin Mode configuration */
209-
LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode);
210210
}
211211
pinpos++;
212212
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (c) 2016 STMicroelectronics
2+
3+
This software component is licensed by STMicroelectronics under the **BSD-3-Clause** license. You may not use this file except in compliance with this license. You may obtain a copy of the license [here](https://opensource.org/licenses/BSD-3-Clause).
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# STM32CubeF2 HAL Driver MCU Component
2+
3+
## Overview
4+
5+
**STM32Cube** is an STMicroelectronics original initiative to ease the developers life by reducing efforts, time and cost.
6+
7+
**STM32Cube** covers the overall STM32 products portfolio. It includes a comprehensive embedded software platform, delivered for each STM32 series.
8+
* The CMSIS modules (core and device) corresponding to the ARM(tm) core implemented in this STM32 product.
9+
* The STM32 HAL-LL drivers : an abstraction drivers layer, the API ensuring maximized portability across the STM32 portfolio.
10+
* The BSP Drivers of each evaluation or demonstration board provided by this STM32 series.
11+
* A consistent set of middlewares components such as RTOS, USB, FatFS, Graphics, STM32_TouchSensing_Library...
12+
* A full set of software projects (basic examples, applications or demonstrations) for each board provided by this STM32 series.
13+
14+
Two models of publication are proposed for the STM32Cube embedded software:
15+
* The monolithic **MCU Package** : all STM32Cube software modules of one STM32 series are present (Drivers, Middlewares, Projects, Utilities) in the repo (usual name **STM32Cubexx**, xx corresponding to the STM32 series)
16+
* The **MCU component** : progressively from November 2019, each STM32Cube software module being part of the STM32Cube MCU Package, will be delivered as an individual repo, allowing the user to select and get only the required software functions.
17+
18+
## Description
19+
20+
This **stm32f2xx_hal_driver** MCU component repo is one element of the STM32CubeF2 MCU embedded software package, providing the **HAL-LL Drivers** part.
21+
22+
## License
23+
24+
Copyright (c) 2016 STMicroelectronics.
25+
26+
This software component is licensed by STMicroelectronics under BSD-3-Clause license. You may not use this file except in compliance with the License.
27+
You may obtain a copy of the License [here](https://opensource.org/licenses/BSD-3-Clause).
28+
29+
## Release note
30+
31+
Details about the content of this release are available in the release note [here](https://htmlpreview.github.io/?https://github.com/STMicroelectronics/stm32f2xx_hal_driver/blob/master/Release_Notes.html).
32+
33+
## Compatibility information
34+
35+
In this table, you can find the successive versions of this HAL-LL Driver component, in line with the corresponding versions of the full MCU package:
36+
37+
It is **crucial** that you use a consistent set of versions for the CMSIS Core - CMSIS Device - HAL, as mentioned in this table.
38+
39+
HAL Driver F2 | CMSIS Device F2 | CMSIS Core | Was delivered in the full MCU package
40+
------------- | --------------- | ---------- | -------------------------------------
41+
Tag v1.2.3 | Tag v2.2.2 | Tag v5.4.0_cm3 | Tag v1.8.0 (and following, if any, till next tag)
42+
Tag v1.2.4 | Tag v2.2.3 | Tag v5.4.0_cm3 | Tag v1.9.0 (and following, if any, till next tag)
43+
Tag v1.2.5 | Tag v2.2.4 | Tag v5.4.0_cm3 | Tag v1.9.1 (and following, if any, till next tag)
44+
Tag v1.2.6 | Tag v2.2.4 | Tag v5.4.0_cm3 | Tag v1.9.2 (and following, if any, till next tag)
45+
46+
The full **STM32CubeF2** MCU package is available [here](https://github.com/STMicroelectronics/STM32CubeF2).
47+
48+
## Troubleshooting
49+
50+
If you have any issue with the **Software content** of this repository, you can file an issue into the firmware repository [STM32CubeF2](https://github.com/STMicroelectronics/STM32CubeF2/issues/new/choose).
51+
52+
For any other question related to the product, the tools, the environment, you can submit a topic on the [ST Community/STM32 MCUs forum](https://community.st.com/s/group/0F90X000000AXsASAW/stm32-mcus).

0 commit comments

Comments
 (0)