Release v1.8.5
diff --git a/Release_Notes.html b/Release_Notes.html index 5cba24b..e50efeb 100644 --- a/Release_Notes.html +++ b/Release_Notes.html
@@ -40,10 +40,26 @@ <div class="col-sm-12 col-lg-8"> <h1 id="update-history">Update History</h1> <div class="collapse"> -<input type="checkbox" id="collapse-section34" checked aria-hidden="true"> <label for="collapse-section34" aria-hidden="true">V1.8.4 / 25-April-2025</label> +<input type="checkbox" id="collapse-section35" checked aria-hidden="true"> <label for="collapse-section35" aria-hidden="true">V1.8.5 / 23-July-2025</label> <div> <h2 id="main-changes">Main Changes</h2> <ul> +<li><strong>HAL SDMMC</strong> +<ul> +<li>Update to use dedicated MMC defines in the HAL SDMMC driver.</li> +</ul></li> +<li><strong>HAL FLASH</strong> +<ul> +<li>Initialize the ‘pFlash’ variable with default values.</li> +</ul></li> +</ul> +</div> +</div> +<div class="collapse"> +<input type="checkbox" id="collapse-section34" aria-hidden="true"> <label for="collapse-section34" aria-hidden="true">V1.8.4 / 25-April-2025</label> +<div> +<h2 id="main-changes-1">Main Changes</h2> +<ul> <li>Enhance HAL code quality for MISRA-C 2012 Rule-8.13 by adding const qualifiers.</li> <li><strong>HAL RTC</strong> <ul> @@ -119,7 +135,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section33" aria-hidden="true"> <label for="collapse-section33" aria-hidden="true">V1.8.3 / 31-May-2024</label> <div> -<h2 id="main-changes-1">Main Changes</h2> +<h2 id="main-changes-2">Main Changes</h2> <ul> <li>Enhance HAL code quality for MISRA-C Rule-8.13 by adding const qualifiers.</li> <li><strong>HAL Generic</strong> @@ -212,7 +228,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section32" aria-hidden="true"> <label for="collapse-section32" aria-hidden="true">V1.8.2 / 01-November-2023</label> <div> -<h2 id="main-changes-2">Main Changes</h2> +<h2 id="main-changes-3">Main Changes</h2> <ul> <li>General updates to fix known defects and implementation enhancements.</li> <li>HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers.</li> @@ -389,7 +405,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section31" aria-hidden="true"> <label for="collapse-section31" aria-hidden="true">V1.8.1 / 24-June-2022</label> <div> -<h2 id="main-changes-3">Main Changes</h2> +<h2 id="main-changes-4">Main Changes</h2> <ul> <li>General updates to fix HAL ETH defects and implementation enhancements.</li> <li><strong>HAL</strong> updates @@ -409,7 +425,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section30" aria-hidden="true"> <label for="collapse-section30" aria-hidden="true">V1.8.0 / 11-February-2022</label> <div> -<h2 id="main-changes-4">Main Changes</h2> +<h2 id="main-changes-5">Main Changes</h2> <ul> <li>General updates to fix known defects and implementation enhancements.</li> <li>All source files: update disclaimer to add reference to the new license agreement.</li> @@ -591,7 +607,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section29" aria-hidden="true"> <label for="collapse-section29" aria-hidden="true">V1.7.13 / 16-July-2021</label> <div> -<h2 id="main-changes-5">Main Changes</h2> +<h2 id="main-changes-6">Main Changes</h2> <ul> <li><strong>HAL</strong> update <ul> @@ -680,7 +696,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section28" aria-hidden="true"> <label for="collapse-section28" aria-hidden="true">V1.7.12 / 26-March-2021</label> <div> -<h2 id="main-changes-6">Main Changes</h2> +<h2 id="main-changes-7">Main Changes</h2> <ul> <li><strong>HAL</strong> <ul> @@ -695,7 +711,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section27" aria-hidden="true"> <label for="collapse-section27" aria-hidden="true">V1.7.11 / 12-February-2021</label> <div> -<h2 id="main-changes-7">Main Changes</h2> +<h2 id="main-changes-8">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li>Added new <strong>HAL FMPSMBUS extended</strong> driver to support FMPSMBUS fast Mode Plus.</li> @@ -922,7 +938,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section26" aria-hidden="true"> <label for="collapse-section26" aria-hidden="true">V1.7.10 / 22-October-2020</label> <div> -<h2 id="main-changes-8">Main Changes</h2> +<h2 id="main-changes-9">Main Changes</h2> <ul> <li>General updates to fix known defects.</li> <li><strong>HAL/LL I2C</strong> update @@ -938,7 +954,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section25" aria-hidden="true"> <label for="collapse-section25" aria-hidden="true">V1.7.9 / 14-August-2020</label> <div> -<h2 id="main-changes-9">Main Changes</h2> +<h2 id="main-changes-10">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>HAL/LL I2C</strong> update @@ -971,7 +987,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section24" aria-hidden="true"> <label for="collapse-section24" aria-hidden="true">V1.7.8 / 12-February-2020</label> <div> -<h2 id="main-changes-10">Main Changes</h2> +<h2 id="main-changes-11">Main Changes</h2> <ul> <li>Add new <strong>HAL FMPSMBUS</strong> and <strong>LL FMPI2C</strong> drivers</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -1010,7 +1026,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section23" aria-hidden="true"> <label for="collapse-section23" aria-hidden="true">V1.7.7 / 06-December-2019</label> <div> -<h2 id="main-changes-11">Main Changes</h2> +<h2 id="main-changes-12">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>HAL Generic</strong> update @@ -1378,7 +1394,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section22" aria-hidden="true"> <label for="collapse-section22" aria-hidden="true">V1.7.6 / 12-April-2019</label> <div> -<h2 id="main-changes-12">Main Changes</h2> +<h2 id="main-changes-13">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>HAL I2C</strong> update @@ -1415,7 +1431,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section21" aria-hidden="true"> <label for="collapse-section21" aria-hidden="true">V1.7.5 / 08-February-2019</label> <div> -<h2 id="main-changes-13">Main Changes</h2> +<h2 id="main-changes-14">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li>General updates to fix CodeSonar compilation warnings</li> @@ -1686,7 +1702,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section20" aria-hidden="true"> <label for="collapse-section20" aria-hidden="true">V1.7.4 / 02-February-2018</label> <div> -<h2 id="main-changes-14">Main Changes</h2> +<h2 id="main-changes-15">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>HAL</strong> update @@ -1717,7 +1733,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section19" aria-hidden="true"> <label for="collapse-section19" aria-hidden="true">V1.7.3 / 22-December-2017</label> <div> -<h2 id="main-changes-15">Main Changes</h2> +<h2 id="main-changes-16">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>The following changes done on the HAL drivers require an update on the application code based on older HAL versions</strong> @@ -1800,7 +1816,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section18" aria-hidden="true"> <label for="collapse-section18" aria-hidden="true">V1.7.2 / 06-October-2017</label> <div> -<h2 id="main-changes-16">Main Changes</h2> +<h2 id="main-changes-17">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li>Fix compilation warning with GCC compiler</li> @@ -1931,7 +1947,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section17" aria-hidden="true"> <label for="collapse-section17" aria-hidden="true">V1.7.1 / 14-April-2017</label> <div> -<h2 id="main-changes-17">Main Changes</h2> +<h2 id="main-changes-18">Main Changes</h2> <ul> <li>Update CHM UserManuals to support LL drivers</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -1961,7 +1977,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section16" aria-hidden="true"> <label for="collapse-section16" aria-hidden="true">V1.7.0 / 17-February-2017</label> <div> -<h2 id="main-changes-18">Main Changes</h2> +<h2 id="main-changes-19">Main Changes</h2> <ul> <li><strong>Add Low Layer drivers allowing performance and footprint optimization</strong> <ul> @@ -2135,7 +2151,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section15" aria-hidden="true"> <label for="collapse-section15" aria-hidden="true">V1.6.0 / 04-November-2016</label> <div> -<h2 id="main-changes-19">Main Changes</h2> +<h2 id="main-changes-20">Main Changes</h2> <ul> <li>Add support of <strong>STM32F413xx</strong> and <strong>STM32F423xx</strong> devices</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -2242,7 +2258,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section14" aria-hidden="true"> <label for="collapse-section14" aria-hidden="true">V1.5.2 / 22-September-2016</label> <div> -<h2 id="main-changes-20">Main Changes</h2> +<h2 id="main-changes-21">Main Changes</h2> <ul> <li><strong>HAL I2C</strong> update <ul> @@ -2273,7 +2289,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section13" aria-hidden="true"> <label for="collapse-section13" aria-hidden="true">V1.5.1 / 01-July-2016</label> <div> -<h2 id="main-changes-21">Main Changes</h2> +<h2 id="main-changes-22">Main Changes</h2> <ul> <li><strong>HAL GPIO</strong> update <ul> @@ -2305,7 +2321,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section12" aria-hidden="true"> <label for="collapse-section12" aria-hidden="true">V1.5.0 / 06-May-2016</label> <div> -<h2 id="main-changes-22">Main Changes</h2> +<h2 id="main-changes-23">Main Changes</h2> <ul> <li>Add support of <strong>STM32F412cx, STM32F412rx, STM32F412vx and STM32F412zx</strong> devices</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -2681,7 +2697,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section11" aria-hidden="true"> <label for="collapse-section11" aria-hidden="true">V1.4.4 / 22-January-2016</label> <div> -<h2 id="main-changes-23">Main Changes</h2> +<h2 id="main-changes-24">Main Changes</h2> <ul> <li><strong>HAL Generic</strong> update <ul> @@ -2915,7 +2931,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section10" aria-hidden="true"> <label for="collapse-section10" aria-hidden="true">V1.4.3 / 11-December-2015</label> <div> -<h2 id="main-changes-24">Main Changes</h2> +<h2 id="main-changes-25">Main Changes</h2> <ul> <li><strong>HAL Generic</strong> update <ul> @@ -2935,7 +2951,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section9" aria-hidden="true"> <label for="collapse-section9" aria-hidden="true">V1.4.2 / 10-November-2015</label> <div> -<h2 id="main-changes-25">Main Changes</h2> +<h2 id="main-changes-26">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation<br /> </li> @@ -3021,7 +3037,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section8" aria-hidden="true"> <label for="collapse-section8" aria-hidden="true">V1.4.1 / 09-October-2015</label> <div> -<h2 id="main-changes-26">Main Changes</h2> +<h2 id="main-changes-27">Main Changes</h2> <ul> <li><strong>HAL DSI</strong> update <ul> @@ -3036,7 +3052,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section7" aria-hidden="true"> <label for="collapse-section7" aria-hidden="true">V1.4.0 / 14-August-2015</label> <div> -<h2 id="main-changes-27">Main Changes</h2> +<h2 id="main-changes-28">Main Changes</h2> <ul> <li>Add support of <strong>STM32F469xx, STM32F479xx, STM32F410Cx, STM32F410Rx and STM32F410Tx</strong> devices</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -3114,7 +3130,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true">V1.3.2 / 26-June-2015</label> <div> -<h2 id="main-changes-28">Main Changes</h2> +<h2 id="main-changes-29">Main Changes</h2> <ul> <li>General updates to fix known defects and enhancements implementation</li> <li><strong>One changes done on the HAL may require an update on the application code based on HAL V1.3.1</strong> @@ -3222,7 +3238,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true">V1.3.1 / 25-Mars-2015</label> <div> -<h2 id="main-changes-29">Main Changes</h2> +<h2 id="main-changes-30">Main Changes</h2> <ul> <li><strong>HAL PWR</strong> update <ul> @@ -3248,7 +3264,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">V1.3.0 / 09-Mars-2015</label> <div> -<h2 id="main-changes-30">Main Changes</h2> +<h2 id="main-changes-31">Main Changes</h2> <ul> <li>Add support of <strong>STM32F446xx</strong> devices</li> <li>General updates to fix known defects and enhancements implementation</li> @@ -3510,7 +3526,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 26-December-2014</label> <div> -<h2 id="main-changes-31">Main Changes</h2> +<h2 id="main-changes-32">Main Changes</h2> <ul> <li><strong>Maintenance release to fix known defects and enhancements implementation</strong></li> <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> @@ -4041,7 +4057,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 19-June-2014</label> <div> -<h2 id="main-changes-32">Main Changes</h2> +<h2 id="main-changes-33">Main Changes</h2> <ul> <li>Add support of <strong>STM32F411xE</strong> devices</li> <li><strong>HAL generic</strong> update @@ -4343,7 +4359,7 @@ <div class="collapse"> <input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 18-February-2014</label> <div> -<h2 id="main-changes-33">Main Changes</h2> +<h2 id="main-changes-34">Main Changes</h2> <ul> <li>First official release</li> </ul>
diff --git a/Src/stm32f4xx_hal.c b/Src/stm32f4xx_hal.c index d186ce5..862ec73 100644 --- a/Src/stm32f4xx_hal.c +++ b/Src/stm32f4xx_hal.c
@@ -50,11 +50,11 @@ * @{ */ /** - * @brief STM32F4xx HAL Driver version number V1.8.4 + * @brief STM32F4xx HAL Driver version number V1.8.5 */ #define __STM32F4xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */ #define __STM32F4xx_HAL_VERSION_SUB1 (0x08U) /*!< [23:16] sub1 version */ -#define __STM32F4xx_HAL_VERSION_SUB2 (0x04U) /*!< [15:8] sub2 version */ +#define __STM32F4xx_HAL_VERSION_SUB2 (0x05U) /*!< [15:8] sub2 version */ #define __STM32F4xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */ #define __STM32F4xx_HAL_VERSION ((__STM32F4xx_HAL_VERSION_MAIN << 24U)\ |(__STM32F4xx_HAL_VERSION_SUB1 << 16U)\
diff --git a/Src/stm32f4xx_hal_cryp.c b/Src/stm32f4xx_hal_cryp.c index fdf40a5..ba16cf2 100644 --- a/Src/stm32f4xx_hal_cryp.c +++ b/Src/stm32f4xx_hal_cryp.c
@@ -3528,7 +3528,6 @@ #endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */ } } - #else /*AES*/ /* Read the output block from the output FIFO and put them in temporary buffer @@ -5628,11 +5627,10 @@ uint32_t loopcounter; uint32_t size_in_bytes; uint32_t tmp; - uint32_t mask[16] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ + uint32_t mask[12] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ 0x0U, 0x0000FF00U, 0x0000FFFFU, 0xFF00FFFFU, /* 16-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU, /* 8-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU /* 1-bit data type */ - }; + 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU + }; /* 8-bit data type */ /***************************** Header phase for GCM/GMAC or CCM *********************************/ @@ -5934,11 +5932,10 @@ uint32_t loopcounter; uint32_t headersize_in_bytes; uint32_t tmp; - uint32_t mask[16] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ + uint32_t mask[12] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ 0x0U, 0x0000FF00U, 0x0000FFFFU, 0xFF00FFFFU, /* 16-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU, /* 8-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU /* 1-bit data type */ - }; + 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU + }; /* 8-bit data type */ /***************************** Header phase for GCM/GMAC or CCM *********************************/ if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_WORD) @@ -6280,11 +6277,10 @@ uint32_t npblb; #endif /* AES */ uint32_t tmp; - uint32_t mask[16] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ + uint32_t mask[12] = {0x0U, 0xFF000000U, 0xFFFF0000U, 0xFFFFFF00U, /* 32-bit data type */ 0x0U, 0x0000FF00U, 0x0000FFFFU, 0xFF00FFFFU, /* 16-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU, /* 8-bit data type */ - 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU /* 1-bit data type */ - }; + 0x0U, 0x000000FFU, 0x0000FFFFU, 0x00FFFFFFU + }; /* 8-bit data type */ if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_WORD) {
diff --git a/Src/stm32f4xx_hal_flash.c b/Src/stm32f4xx_hal_flash.c index 29c60e3..808949e 100644 --- a/Src/stm32f4xx_hal_flash.c +++ b/Src/stm32f4xx_hal_flash.c
@@ -101,7 +101,14 @@ * @{ */ /* Variable used for Erase sectors under interruption */ -FLASH_ProcessTypeDef pFlash; +FLASH_ProcessTypeDef pFlash = {.ProcedureOnGoing = FLASH_PROC_NONE, + .NbSectorsToErase = 0U, + .VoltageForErase= FLASH_VOLTAGE_RANGE_1, + .Sector = 0U, + .Bank = FLASH_BANK_1, + .Address = 0U, + .Lock = HAL_UNLOCKED, + .ErrorCode = HAL_FLASH_ERROR_NONE}; /** * @} */