Skip to content

Commit 1faf0a0

Browse files
authored
Merge pull request #1225 from fpistm/UpdateCubeF4L1
Update STM32 F4 and L1 HAL drivers
2 parents 12ded37 + 7e0ea23 commit 1faf0a0

File tree

9 files changed

+120
-67
lines changed

9 files changed

+120
-67
lines changed

system/Drivers/STM32F4xx_HAL_Driver/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Tag v1.7.6 | Tag v2.6.3 | Tag v5.4.0_cm4 | Tag v1.24.1 (and following, if any, t
4242
Tag v1.7.7 | Tag v2.6.4 | Tag v5.4.0_cm4 | Tag v1.24.2 (and following, if any, till next tag)
4343
Tag v1.7.8 | Tag v2.6.5 | Tag v5.4.0_cm4 | Tag v1.25.0 (and following, if any, till next tag)
4444
Tag v1.7.9 | Tag v2.6.5 | Tag v5.4.0_cm4 | Tag v1.25.1 (and following, if any, till next tag)
45+
Tag v1.7.10 | Tag v2.6.5 | Tag v5.4.0_cm4 | Tag v1.25.2 (and following, if any, till next tag)
4546

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

system/Drivers/STM32F4xx_HAL_Driver/Release_Notes.html

Lines changed: 61 additions & 30 deletions
Large diffs are not rendered by default.

system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_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 STM32F4xx HAL Driver version number V1.7.9
53+
* @brief STM32F4xx HAL Driver version number V1.7.10
5454
*/
5555
#define __STM32F4xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
5656
#define __STM32F4xx_HAL_VERSION_SUB1 (0x07U) /*!< [23:16] sub1 version */
57-
#define __STM32F4xx_HAL_VERSION_SUB2 (0x09U) /*!< [15:8] sub2 version */
57+
#define __STM32F4xx_HAL_VERSION_SUB2 (0x0AU) /*!< [15:8] sub2 version */
5858
#define __STM32F4xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
5959
#define __STM32F4xx_HAL_VERSION ((__STM32F4xx_HAL_VERSION_MAIN << 24U)\
6060
|(__STM32F4xx_HAL_VERSION_SUB1 << 16U)\

system/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_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/STM32L1xx_HAL_Driver/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ HAL Driver L1 | CMSIS Device L1 | CMSIS Core | Was delivered in the full MCU pac
4141
Tag v1.4.0 | Tag v2.3.0 | Tag v5.4.0_cm3 | Tag v1.9.0 (and following, if any, till next new tag)
4242
Tag v1.4.1 | Tag v2.3.1 | Tag v5.4.0_cm3 | Tag v1.10.0 (and following, if any, till next new tag)
4343
Tag v1.4.2 | Tag v2.3.1 | Tag v5.4.0_cm3 | Tag v1.10.1 (and following, if any, till next new tag)
44+
Tag v1.4.3 | Tag v2.3.1 | Tag v5.4.0_cm3 | Tag v1.10.2 (and following, if any, till next new tag)
4445

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

system/Drivers/STM32L1xx_HAL_Driver/Release_Notes.html

Lines changed: 49 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,35 @@ <h1 id="purpose">Purpose</h1>
4646
<div class="col-sm-12 col-lg-8">
4747
<h1 id="update-history">Update History</h1>
4848
<div class="collapse">
49-
<input type="checkbox" id="collapse-section13" aria-hidden="true"> <label for="collapse-section13" aria-hidden="true">V1.4.2 / 28-August-2020</label>
49+
<input type="checkbox" id="collapse-section14" aria-hidden="true"> <label for="collapse-section14" aria-hidden="true">V1.4.3 / 22-October-2020</label>
5050
<div>
5151
<h2 id="main-changes">Main Changes</h2>
5252
<h3 id="maintenance-release">Maintenance release</h3>
5353
<ul>
54-
<li>Patch release to fix issue in I2C HAL driver</li>
54+
<li>General updates to fix known defect.</li>
5555
</ul>
5656
<h2 id="contents">Contents</h2>
5757
<ul>
58+
<li><strong>HAL/LL I2C</strong> driver
59+
<ul>
60+
<li>Update to fix hardfault issue with HAL_I2C_Mem_Write_DMA() API:
61+
<ul>
62+
<li>Abort the right ongoing DMA transfer when memory write access request operation failed: fix typo “hdmarx” replaced by “hdmatx”</li>
63+
</ul></li>
64+
</ul></li>
65+
</ul>
66+
</div>
67+
</div>
68+
<div class="collapse">
69+
<input type="checkbox" id="collapse-section13" aria-hidden="true"> <label for="collapse-section13" aria-hidden="true">V1.4.2 / 28-August-2020</label>
70+
<div>
71+
<h2 id="main-changes-1">Main Changes</h2>
72+
<h3 id="maintenance-release-1">Maintenance release</h3>
73+
<ul>
74+
<li>Patch release to fix issue in I2C HAL driver</li>
75+
</ul>
76+
<h2 id="contents-1">Contents</h2>
77+
<ul>
5878
<li><strong>HAL I2C</strong> driver
5979
<ul>
6080
<li>Update I2C_MasterReceiveRXNE() static API to avoid set the STOP bit again after the bit clearing by Hardware during the masking operation.
@@ -68,13 +88,13 @@ <h2 id="contents">Contents</h2>
6888
<div class="collapse">
6989
<input type="checkbox" id="collapse-section12" aria-hidden="true"> <label for="collapse-section12" aria-hidden="true">V1.4.1 / 24-June-2020</label>
7090
<div>
71-
<h2 id="main-changes-1">Main Changes</h2>
72-
<h3 id="maintenance-release-1">Maintenance release</h3>
91+
<h2 id="main-changes-2">Main Changes</h2>
92+
<h3 id="maintenance-release-2">Maintenance release</h3>
7393
<ul>
7494
<li>Add new HAL EXTI driver</li>
7595
<li>General updates to fix known defects and enhancements implementation</li>
7696
</ul>
77-
<h2 id="contents-1">Contents</h2>
97+
<h2 id="contents-2">Contents</h2>
7898
<ul>
7999
<li><strong>HAL</strong> driver
80100
<ul>
@@ -267,14 +287,14 @@ <h2 id="contents-1">Contents</h2>
267287
<div class="collapse">
268288
<input type="checkbox" id="collapse-section11" aria-hidden="true"> <label for="collapse-section11" aria-hidden="true">V1.4.0 / 05-April-2019</label>
269289
<div>
270-
<h2 id="main-changes-2">Main Changes</h2>
271-
<h3 id="maintenance-release-2">Maintenance release</h3>
290+
<h2 id="main-changes-3">Main Changes</h2>
291+
<h3 id="maintenance-release-3">Maintenance release</h3>
272292
<ul>
273293
<li>Add support of <strong>HAL callback registration</strong> feature</li>
274294
<li>Add several enhancements implementation</li>
275295
<li>Fix known defects to be aligned with others STM32 series</li>
276296
</ul>
277-
<h2 id="contents-2">Contents</h2>
297+
<h2 id="contents-3">Contents</h2>
278298
<ul>
279299
<li><strong>HAL/LL</strong> generic
280300
<ul>
@@ -550,9 +570,9 @@ <h2 id="contents-2">Contents</h2>
550570
<div class="collapse">
551571
<input type="checkbox" id="collapse-section9" aria-hidden="true"> <label for="collapse-section9" aria-hidden="true">V1.3.1 / 25-August-2017</label>
552572
<div>
553-
<h2 id="main-changes-3">Main Changes</h2>
573+
<h2 id="main-changes-4">Main Changes</h2>
554574
<h3 id="patch-release">Patch release</h3>
555-
<h2 id="contents-3">Contents</h2>
575+
<h2 id="contents-4">Contents</h2>
556576
<ul>
557577
<li><strong>HAL/LL</strong> generic
558578
<ul>
@@ -565,9 +585,9 @@ <h2 id="contents-3">Contents</h2>
565585
<div class="collapse">
566586
<input type="checkbox" id="collapse-section8" aria-hidden="true"> <label for="collapse-section8" aria-hidden="true">V1.3.0 / 21-April-2017</label>
567587
<div>
568-
<h2 id="main-changes-4">Main Changes</h2>
569-
<h3 id="maintenance-release-3">Maintenance release</h3>
570-
<h2 id="contents-4">Contents</h2>
588+
<h2 id="main-changes-5">Main Changes</h2>
589+
<h3 id="maintenance-release-4">Maintenance release</h3>
590+
<h2 id="contents-5">Contents</h2>
571591
<ul>
572592
<li><strong>HAL/LL</strong> generic
573593
<ul>
@@ -638,8 +658,8 @@ <h2 id="contents-4">Contents</h2>
638658
<div class="collapse">
639659
<input type="checkbox" id="collapse-section7" aria-hidden="true"> <label for="collapse-section7" aria-hidden="true">V1.2.0 / 01-July-2016</label>
640660
<div>
641-
<h2 id="main-changes-5">Main Changes</h2>
642-
<h3 id="maintenance-release-4">Maintenance release</h3>
661+
<h2 id="main-changes-6">Main Changes</h2>
662+
<h3 id="maintenance-release-5">Maintenance release</h3>
643663
<ul>
644664
<li>First official release supporting the <strong>Low Level</strong> drivers for the <strong>STM32L1xx</strong> family:
645665
<ul>
@@ -648,7 +668,7 @@ <h3 id="maintenance-release-4">Maintenance release</h3>
648668
<li>Low Layer drivers APIs are implemented as static inline function in new Inc/stm32l1xx_ll_ppp.h files for PPP peripherals, there is no configuration file and each stm32l1xx_ll_ppp.h file must be included in user code.</li>
649669
</ul></li>
650670
</ul>
651-
<h2 id="contents-5">Contents</h2>
671+
<h2 id="contents-6">Contents</h2>
652672
<ul>
653673
<li><strong>Generic updates</strong>
654674
<ul>
@@ -743,9 +763,9 @@ <h2 id="contents-5">Contents</h2>
743763
<div class="collapse">
744764
<input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true">V1.1.3 / 04-March-2016</label>
745765
<div>
746-
<h2 id="main-changes-6">Main Changes</h2>
747-
<h3 id="maintenance-release-5">Maintenance release</h3>
748-
<h2 id="contents-6">Contents</h2>
766+
<h2 id="main-changes-7">Main Changes</h2>
767+
<h3 id="maintenance-release-6">Maintenance release</h3>
768+
<h2 id="contents-7">Contents</h2>
749769
<ul>
750770
<li><strong>Generic update</strong>
751771
<ul>
@@ -794,9 +814,9 @@ <h2 id="contents-6">Contents</h2>
794814
<div class="collapse">
795815
<input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true">V1.1.2 / 09-October-2015</label>
796816
<div>
797-
<h2 id="main-changes-7">Main Changes</h2>
798-
<h3 id="maintenance-release-6">Maintenance release</h3>
799-
<h2 id="contents-7">Contents</h2>
817+
<h2 id="main-changes-8">Main Changes</h2>
818+
<h3 id="maintenance-release-7">Maintenance release</h3>
819+
<h2 id="contents-8">Contents</h2>
800820
<ul>
801821
<li><strong>ADC</strong>
802822
<ul>
@@ -880,13 +900,13 @@ <h2 id="contents-7">Contents</h2>
880900
<div class="collapse">
881901
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.1.1 / 31-March-2015</label>
882902
<div>
883-
<h2 id="main-changes-8">Main Changes</h2>
884-
<h3 id="maintenance-release-7">Maintenance release</h3>
903+
<h2 id="main-changes-9">Main Changes</h2>
904+
<h3 id="maintenance-release-8">Maintenance release</h3>
885905
<ul>
886906
<li>Include path changes for compilation under Unix environment</li>
887907
<li>Update drivers to be C++ compliant</li>
888908
</ul>
889-
<h2 id="contents-8">Contents</h2>
909+
<h2 id="contents-9">Contents</h2>
890910
<ul>
891911
<li><strong>CORTEX</strong>
892912
<ul>
@@ -952,12 +972,12 @@ <h2 id="contents-8">Contents</h2>
952972
<div class="collapse">
953973
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 06-February-2015</label>
954974
<div>
955-
<h2 id="main-changes-9">Main Changes</h2>
956-
<h3 id="maintenance-release-8">Maintenance release</h3>
975+
<h2 id="main-changes-10">Main Changes</h2>
976+
<h3 id="maintenance-release-9">Maintenance release</h3>
957977
<ul>
958978
<li>Add support of new <strong>STM32L1 eXtended devices</strong> - <strong>STM32l151xDX, STM32l152xDX &amp; STM32l62xDX</strong></li>
959979
</ul>
960-
<h2 id="contents-9">Contents</h2>
980+
<h2 id="contents-10">Contents</h2>
961981
<ul>
962982
<li><strong>HAL</strong> generic
963983
<ul>
@@ -979,7 +999,7 @@ <h2 id="contents-9">Contents</h2>
979999
<div class="collapse">
9801000
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 05-September-2014</label>
9811001
<div>
982-
<h2 id="main-changes-10">Main Changes</h2>
1002+
<h2 id="main-changes-11">Main Changes</h2>
9831003
<h3 id="first-official-release">First official release</h3>
9841004
</div>
9851005
</div>

system/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
*/
5555

5656
/**
57-
* @brief STM32L1xx HAL Driver version number V1.4.2
57+
* @brief STM32L1xx HAL Driver version number V1.4.3
5858
*/
5959
#define __STM32L1xx_HAL_VERSION_MAIN (0x01) /*!< [31:24] main version */
6060
#define __STM32L1xx_HAL_VERSION_SUB1 (0x04) /*!< [23:16] sub1 version */
61-
#define __STM32L1xx_HAL_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */
61+
#define __STM32L1xx_HAL_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */
6262
#define __STM32L1xx_HAL_VERSION_RC (0x00) /*!< [7:0] release candidate */
6363
#define __STM32L1xx_HAL_VERSION ((__STM32L1xx_HAL_VERSION_MAIN << 24)\
6464
|(__STM32L1xx_HAL_VERSION_SUB1 << 16)\

system/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_i2c.c

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

30383038
/* Prevent unused argument(s) compilation and MISRA warning */
30393039
UNUSED(dmaxferstatus);

system/Drivers/STM32YYxx_HAL_Driver_version.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* STM32F1: 1.1.7
55
* STM32F2: 1.2.6
66
* STM32F3: 1.5.4
7-
* STM32F4: 1.7.9
7+
* STM32F4: 1.7.10
88
* STM32F7: 1.2.8
99
* STM32G0: 1.3.0
1010
* STM32G4: 1.2.0
1111
* STM32H7: 1.9.0
1212
* STM32L0: 1.10.3
13-
* STM32L1: 1.4.2
13+
* STM32L1: 1.4.3
1414
* STM32L4: 1.12.0
1515
* STM32MP1: 1.2.0
1616
* STM32WB: 1.6.0

0 commit comments

Comments
 (0)