Skip to content

Commit 062e1b4

Browse files
committed
[F2] Update STM32F2xx HAL Drivers to v1.2.6
Included in STM32CubeF2 FW v1.9.2 Signed-off-by: Frederic Pillon <[email protected]>
1 parent e975967 commit 062e1b4

File tree

6 files changed

+90
-16
lines changed

6 files changed

+90
-16
lines changed
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).

system/Drivers/STM32F2xx_HAL_Driver/Release_Notes.html

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,29 @@ <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-section12" aria-hidden="true"> <label for="collapse-section12" aria-hidden="true"><strong>V1.2.5 / 09-September-2020</strong></label>
41+
<input type="checkbox" id="collapse-section13" aria-hidden="true"> <label for="collapse-section13" aria-hidden="true"><strong>V1.2.6 / 22-October-2020</strong></label>
4242
<div>
4343
<h2 id="main-changes">Main Changes</h2>
4444
<ul>
45+
<li>General updates to fix known defects.</li>
46+
</ul>
47+
<h2 id="contents">Contents</h2>
48+
<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+
</ul>
57+
</div>
58+
</div>
59+
<div class="collapse">
60+
<input type="checkbox" id="collapse-section12" aria-hidden="true"> <label for="collapse-section12" aria-hidden="true"><strong>V1.2.5 / 09-September-2020</strong></label>
61+
<div>
62+
<h2 id="main-changes-1">Main Changes</h2>
63+
<ul>
4564
<li>General updates to fix known defects and enhancements implementation.</li>
4665
<li><strong>HAL</strong> driver
4766
<ul>
@@ -302,7 +321,7 @@ <h2 id="main-changes">Main Changes</h2>
302321
<div class="collapse">
303322
<input type="checkbox" id="collapse-section11" aria-hidden="true"> <label for="collapse-section11" aria-hidden="true"><strong>V1.2.4 / 31-December-2019</strong></label>
304323
<div>
305-
<h2 id="main-changes-1">Main Changes</h2>
324+
<h2 id="main-changes-2">Main Changes</h2>
306325
<ul>
307326
<li>General updates to fix known defects and enhancements implementation</li>
308327
<li><strong>HAL/LL GPIO</strong> update
@@ -368,7 +387,7 @@ <h2 id="main-changes-1">Main Changes</h2>
368387
<div class="collapse">
369388
<input type="checkbox" id="collapse-section10" aria-hidden="true"> <label for="collapse-section10" aria-hidden="true"><strong>V1.2.3 / 26-June-2019</strong></label>
370389
<div>
371-
<h2 id="main-changes-2">Main Changes</h2>
390+
<h2 id="main-changes-3">Main Changes</h2>
372391
<ul>
373392
<li>General updates to fix known defects and enhancements implementation</li>
374393
<li>HAL drivers clean up: remove double casting ‘uint32_t’ and ‘U’</li>
@@ -731,7 +750,7 @@ <h2 id="main-changes-2">Main Changes</h2>
731750
<div class="collapse">
732751
<input type="checkbox" id="collapse-section9" aria-hidden="true"> <label for="collapse-section9" aria-hidden="true"><strong>V1.2.2 / 29-September-2017</strong></label>
733752
<div>
734-
<h2 id="main-changes-3">Main Changes</h2>
753+
<h2 id="main-changes-4">Main Changes</h2>
735754
<ul>
736755
<li>General updates to fix known defects and enhancements implementation</li>
737756
<li>Fix compilation warning with GCC compiler</li>
@@ -797,7 +816,7 @@ <h2 id="main-changes-3">Main Changes</h2>
797816
<div class="collapse">
798817
<input type="checkbox" id="collapse-section8" aria-hidden="true"> <label for="collapse-section8" aria-hidden="true"><strong>V1.2.1 / 14-April-2017</strong></label>
799818
<div>
800-
<h2 id="main-changes-4">Main Changes</h2>
819+
<h2 id="main-changes-5">Main Changes</h2>
801820
<ul>
802821
<li>General updates to fix known defects and enhancements implementation</li>
803822
<li><strong>HAL CONF Template</strong> update
@@ -818,7 +837,7 @@ <h2 id="main-changes-4">Main Changes</h2>
818837
<div class="collapse">
819838
<input type="checkbox" id="collapse-section7" aria-hidden="true"> <label for="collapse-section7" aria-hidden="true"><strong>V1.2.0 / 17-March-2017</strong></label>
820839
<div>
821-
<h2 id="main-changes-5">Main Changes</h2>
840+
<h2 id="main-changes-6">Main Changes</h2>
822841
<ul>
823842
<li><strong>Add Low Layer drivers allowing performance and footprint optimization</strong>
824843
<ul>
@@ -936,7 +955,7 @@ <h2 id="main-changes-5">Main Changes</h2>
936955
<div class="collapse">
937956
<input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true"><strong>V1.1.3 / 29-June-2016</strong></label>
938957
<div>
939-
<h2 id="main-changes-6">Main Changes</h2>
958+
<h2 id="main-changes-7">Main Changes</h2>
940959
<ul>
941960
<li>General updates to fix known defects and enhancements implementation</li>
942961
<li>Enhance HAL delay and time base implementation:
@@ -1290,7 +1309,7 @@ <h2 id="main-changes-6">Main Changes</h2>
12901309
<div class="collapse">
12911310
<input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true"><strong>V1.1.2 / 11-December-2015</strong></label>
12921311
<div>
1293-
<h2 id="main-changes-7">Main Changes</h2>
1312+
<h2 id="main-changes-8">Main Changes</h2>
12941313
<ul>
12951314
<li><strong>HAL RCC</strong> update
12961315
<ul>
@@ -1306,7 +1325,7 @@ <h2 id="main-changes-7">Main Changes</h2>
13061325
<div class="collapse">
13071326
<input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true"><strong>V1.1.1 / 20-November-2015</strong></label>
13081327
<div>
1309-
<h2 id="main-changes-8">Main Changes</h2>
1328+
<h2 id="main-changes-9">Main Changes</h2>
13101329
<ul>
13111330
<li>General updates to fix known defects and enhancements implementation</li>
13121331
<li><strong>One change done on the HAL CRYP requires an update on the application code based on HAL V1.1.0</strong>
@@ -1369,7 +1388,7 @@ <h2 id="main-changes-8">Main Changes</h2>
13691388
<div class="collapse">
13701389
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true"><strong>V1.1.0 / 09-October-2015</strong></label>
13711390
<div>
1372-
<h2 id="main-changes-9">Main Changes</h2>
1391+
<h2 id="main-changes-10">Main Changes</h2>
13731392
<ul>
13741393
<li><strong>Maintenance release to fix known defects and enhancements implementation</strong></li>
13751394
<li><strong>Macros and literals renaming to ensure compatibles across STM32 series</strong>, backward compatibility maintained thanks to new added file stm32_hal_legacy.h under /Inc/Legacy</li>
@@ -2199,7 +2218,7 @@ <h2 id="main-changes-9">Main Changes</h2>
21992218
<div class="collapse">
22002219
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.0.1 / 25-March-2014</strong></label>
22012220
<div>
2202-
<h2 id="main-changes-10">Main Changes</h2>
2221+
<h2 id="main-changes-11">Main Changes</h2>
22032222
<ul>
22042223
<li>Patch release : moved macros related to RNG from hal_rcc_ex.h to hal_rcc.h as RNG is present in all versions of the STM32F2</li>
22052224
</ul>
@@ -2208,7 +2227,7 @@ <h2 id="main-changes-10">Main Changes</h2>
22082227
<div class="collapse">
22092228
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.0.0 / 07-March-2014</strong></label>
22102229
<div>
2211-
<h2 id="main-changes-11">Main Changes</h2>
2230+
<h2 id="main-changes-12">Main Changes</h2>
22122231
<ul>
22132232
<li>First official release</li>
22142233
</ul>

system/Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
* @{
5151
*/
5252
/**
53-
* @brief STM32F2xx HAL Driver version number V1.2.5
53+
* @brief STM32F2xx HAL Driver version number V1.2.6
5454
*/
5555
#define __STM32F2xx_HAL_VERSION_MAIN 0x01U /*!< [31:24] main version */
5656
#define __STM32F2xx_HAL_VERSION_SUB1 0x02U /*!< [23:16] sub1 version */
57-
#define __STM32F2xx_HAL_VERSION_SUB2 0x05U /*!< [15:8] sub2 version */
57+
#define __STM32F2xx_HAL_VERSION_SUB2 0x06U /*!< [15:8] sub2 version */
5858
#define __STM32F2xx_HAL_VERSION_RC 0x00U /*!< [7:0] release candidate */
5959
#define __STM32F2xx_HAL_VERSION ((__STM32F2xx_HAL_VERSION_MAIN << 24U)\
6060
|(__STM32F2xx_HAL_VERSION_SUB1 << 16U)\

system/Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_i2c.c

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

30483048
/* Prevent unused argument(s) compilation and MISRA warning */
30493049
UNUSED(dmaxferstatus);

system/Drivers/STM32YYxx_HAL_Driver_version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* STM32F0: 1.7.4
44
* STM32F1: 1.1.7
5-
* STM32F2: 1.2.5
5+
* STM32F2: 1.2.6
66
* STM32F3: 1.5.4
77
* STM32F4: 1.7.9
88
* STM32F7: 1.2.8

0 commit comments

Comments
 (0)