Skip to content

Commit bd45b38

Browse files
gautierg-sterwango
authored andcommitted
stm32cube: update stm32h5 to cube version V1.3.0
Update Cube version for STM32H5xx series on https://github.com/STMicroelectronics from version v1.2.0 to version v1.3.0 Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 868d162 commit bd45b38

Some content is hidden

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

68 files changed

+3099
-1265
lines changed

stm32cube/stm32h5xx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024 STMicroelectronics
1+
# Copyright (c) 2020 STMicroelectronics
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

stm32cube/stm32h5xx/README

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Origin:
66
http://www.st.com/en/embedded-software/stm32cubeh5.html
77

88
Status:
9-
version v1.2.0
9+
version v1.3.0
1010

1111
Purpose:
1212
ST Microelectronics official MCU package for STM32H5 series.
@@ -23,7 +23,7 @@ URL:
2323
https://github.com/STMicroelectronics/STM32CubeH5
2424

2525
Commit:
26-
182f4c8589bf775b330ed63af7c0c17060d8a649
26+
a6a936dfaf382c83b73be5e46c3c1c28e8d0caa0
2727
Maintained-by:
2828
External
2929

@@ -48,12 +48,6 @@ Patch List:
4848
. renamed stm32h5xx_hal_timebase_rtc_wakeup_template. c to stm32h5xx_hal_timebase_rtc_wakeup.c
4949
. renamed stm32h5xx_hal_timebase_tim_template. c to stm32h5xx_hal_timebase_tim.c
5050

51-
*Var init in LL_I2S_Init
52-
- In the LL_I2S_Init function, initialisation of the sourceclock to avoid compilation warning.
53-
Impacted files:
54-
drivers/include/stm32h5xx_ll_spi.c
55-
ST internal bug : 147754
56-
5751
*fix to the V2 HAL API to get PTP to work
5852
impacted file : stm32h5xx_hal_eth.c
5953
In the HAL_ETH_ReadData function where it checks for the last descriptor,
@@ -67,9 +61,4 @@ Patch List:
6761
Impacted files:
6862
drivers/include/Legacy/stm32_hal_legacy.h
6963

70-
*Fix to set __SAUREGION_PRESENT to 0 for STM32H503 devices
71-
Impacted files:
72-
stm32cube/stm32h5xx/soc/stm32h503xx.h
73-
ST internal bug: 177135
74-
7564
See release_note.html from STM32Cube

stm32cube/stm32h5xx/drivers/include/Legacy/stm32_hal_legacy.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ extern "C" {
18171817
#define HAL_FMPI2CEx_AnalogFilter_Config HAL_FMPI2CEx_ConfigAnalogFilter
18181818
#define HAL_FMPI2CEx_DigitalFilter_Config HAL_FMPI2CEx_ConfigDigitalFilter
18191819

1820-
#define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) ((cmd == ENABLE)? \
1820+
#define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) (((cmd) == ENABLE)? \
18211821
HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): \
18221822
HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus))
18231823

@@ -2731,6 +2731,12 @@ extern "C" {
27312731
#define __APB1_RELEASE_RESET __HAL_RCC_APB1_RELEASE_RESET
27322732
#define __APB2_FORCE_RESET __HAL_RCC_APB2_FORCE_RESET
27332733
#define __APB2_RELEASE_RESET __HAL_RCC_APB2_RELEASE_RESET
2734+
#if defined(STM32C0)
2735+
#define __HAL_RCC_APB1_FORCE_RESET __HAL_RCC_APB1_GRP1_FORCE_RESET
2736+
#define __HAL_RCC_APB1_RELEASE_RESET __HAL_RCC_APB1_GRP1_RELEASE_RESET
2737+
#define __HAL_RCC_APB2_FORCE_RESET __HAL_RCC_APB1_GRP2_FORCE_RESET
2738+
#define __HAL_RCC_APB2_RELEASE_RESET __HAL_RCC_APB1_GRP2_RELEASE_RESET
2739+
#endif /* STM32C0 */
27342740
#define __BKP_CLK_DISABLE __HAL_RCC_BKP_CLK_DISABLE
27352741
#define __BKP_CLK_ENABLE __HAL_RCC_BKP_CLK_ENABLE
27362742
#define __BKP_FORCE_RESET __HAL_RCC_BKP_FORCE_RESET
@@ -3659,7 +3665,7 @@ extern "C" {
36593665
#endif
36603666

36613667
#if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || \
3662-
defined(STM32WL) || defined(STM32C0) || defined(STM32H7RS) || defined(STM32U0)
3668+
defined(STM32WL) || defined(STM32C0) || defined(STM32H7RS) || defined(STM32U0)
36633669
#define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE
36643670
#else
36653671
#define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK
@@ -3910,7 +3916,8 @@ extern "C" {
39103916
*/
39113917
#if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || \
39123918
defined (STM32L4P5xx)|| defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) || defined (STM32U5) || \
3913-
defined (STM32WBA) || defined (STM32H5) || defined (STM32C0) || defined (STM32H7RS) || defined (STM32U0)
3919+
defined (STM32WBA) || defined (STM32H5) || \
3920+
defined (STM32C0) || defined (STM32H7RS) || defined (STM32U0)
39143921
#else
39153922
#define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
39163923
#endif

stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_exti.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ typedef struct
186186
#define EXTI_LINE_57 (EXTI_DIRECT | EXTI_REG2 | 0x19U)
187187
#endif /* EXTI_IMR2_IM57 */
188188
#if defined(EXTI_IMR2_IM58)
189+
#if defined(I3C2)
189190
#define EXTI_LINE_58 (EXTI_DIRECT | EXTI_REG2 | 0x1AU)
191+
#endif /* I3C2 */
190192
#endif /* EXTI_IMR2_IM58 */
191-
192193
/**
193194
* @}
194195
*/

stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_fdcan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ typedef void (*pFDCAN_ErrorStatusCallbackTypeDef)(FDCAN_HandleTypeDef *hfdcan,
517517
#define HAL_FDCAN_ERROR_PARAM ((uint32_t)0x00000020U) /*!< Parameter error */
518518
#define HAL_FDCAN_ERROR_PENDING ((uint32_t)0x00000040U) /*!< Pending operation */
519519
#define HAL_FDCAN_ERROR_RAM_ACCESS ((uint32_t)0x00000080U) /*!< Message RAM Access Failure */
520-
#define HAL_FDCAN_ERROR_FIFO_EMPTY ((uint32_t)0x00000100U) /*!< Put element in full FIFO */
521-
#define HAL_FDCAN_ERROR_FIFO_FULL ((uint32_t)0x00000200U) /*!< Get element from empty FIFO */
520+
#define HAL_FDCAN_ERROR_FIFO_EMPTY ((uint32_t)0x00000100U) /*!< Get element from empty FIFO */
521+
#define HAL_FDCAN_ERROR_FIFO_FULL ((uint32_t)0x00000200U) /*!< Put element in full FIFO */
522522
#define HAL_FDCAN_ERROR_LOG_OVERFLOW FDCAN_IR_ELO /*!< Overflow of CAN Error Logging Counter */
523523
#define HAL_FDCAN_ERROR_RAM_WDG FDCAN_IR_WDI /*!< Message RAM Watchdog event occurred */
524524
#define HAL_FDCAN_ERROR_PROTOCOL_ARBT FDCAN_IR_PEA /*!< Protocol Error in Arbitration Phase (Nominal Bit Time is used) */

stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_flash_ex.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,13 +632,12 @@ byte configuration */
632632
/** @defgroup FLASH_Programming_Delay FLASH Programming Delay
633633
* @{
634634
*/
635-
#define FLASH_PROGRAMMING_DELAY_0 0x00000000U /*!< programming delay set for Flash running at 70 MHz or
635+
#define FLASH_PROGRAMMING_DELAY_0 0x00000000U /*!< programming delay set for Flash running at 84 MHz or
636636
below */
637-
#define FLASH_PROGRAMMING_DELAY_1 FLASH_ACR_WRHIGHFREQ_0 /*!< programming delay set for Flash running between 70 MHz
638-
and 185 MHz */
639-
#define FLASH_PROGRAMMING_DELAY_2 FLASH_ACR_WRHIGHFREQ_1 /*!< programming delay set for Flash running between 185 MHz
640-
and 225 MHz */
641-
#define FLASH_PROGRAMMING_DELAY_3 FLASH_ACR_WRHIGHFREQ /*!< programming delay set for Flash at startup */
637+
#define FLASH_PROGRAMMING_DELAY_1 FLASH_ACR_WRHIGHFREQ_0 /*!< programming delay set for Flash running between 84 MHz
638+
and 168 MHz */
639+
#define FLASH_PROGRAMMING_DELAY_2 FLASH_ACR_WRHIGHFREQ_1 /*!< programming delay set for Flash running between 168 MHz
640+
and 250 MHz */
642641
/**
643642
* @}
644643
*/

0 commit comments

Comments
 (0)