# Release Notes for

# STM32WBxx HAL Drivers

Copyright © 2019 STMicroelectronics

# Purpose

The STM32Cube HAL and LL, an STM32 abstraction layer embedded software, ensure maximized portability across STM32 portfolio.

The Portable APIs layer provides a generic, multi instanced and simple set of APIs to interact with the upper layer (application, libraries and stacks). It is composed of native and extended APIs set. It is directly built around a generic architecture and allows the build-upon layers, like the middleware layer, to implement its functions without knowing in-depth the used STM32 device. This improves the library code reusability and guarantees an easy portability on other devices and STM32 families.

The Low Layer (LL) drivers are part of the STM32Cube firmware HAL that provide basic set of optimized and one shot services. The Low layer drivers, contrary to the HAL ones are not Fully Portable across the STM32 families; the availability of some functions depend on the physical availability of the relative features on the product. The Low Layer (LL) drivers are designed to offer the following features:

- New set of inline function for direct and atomic register access
- One-shot operations that can be used by the HAL drivers or from application level.
- Fully Independent from HAL and can be used in standalone usage (without HAL drivers)
- Full features coverage of the all the supported peripherals.

# Update History

V1.14.7/ 29-October-2025

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL ADC driver
  - Add const qualifier for calibrated values (read only, in system flash)
- HAL CRYP driver
  - Remove invocation of __HAL_UNLOCK() when __HAL_LOCK() is not present
- HAL GPIO driver
  - Fixed timer timebase initialization sequence by registering the callback before starting the timer to ensure correct callback handling in FreeRTOS projects
- HAL RTC driver
  - Fixed MISRA 13.5 warnings
- HAL LPTIM driver
  - Removed duplicated macro
- HAL LPUART driver
  - Fix transfer count underflow when using polling mode
- HAL TIM driver
  - Fix complementary channel systematically disabled by TIM_OCx_SetConfig().
- HAL UART driver
  - Fix transfer count underflow when using polling mode
- HAL USART driver
  - Replaced UART calls by USART

### LL Drivers updates

- LL ADC driver
  - Add const qualifier for calibrated values (read only, in system flash
- LL RTC driver
  - Add missing parentheses into macros LL_RTC_WriteReg() and LL_RTC_ReadReg() to comply with MISRA-C 2012 rule 20.7

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.6/ 04-June-2025

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL IWDG driver
  - Calculate the maximum IWDG Timeout period “HAL_IWDG_DEFAULT_TIMEOUT”, based on a Prescaler=128 at LSI frequency=32kHz.
- HAL I2C driver
  - Move variable tmp declaration at the beginning in I2C_TransferCofig function.
  - Update function HAL_I2C_IsDeviceReady() to take into account the number of trials
  - Remove extra parenthesis in c files for driver HAL I2C and SMBUS
- HAL SPI driver
  - Avoid buffer overflow in SPI_WaitFifoStateUntilTimeout().
  - Update function HAL_I2C_IsDeviceReady() to take into account the number of trials.
  - Fix INTEGER_OVERFLOW Coverity warning
  - Add note to clarify HAL_SPI_Receive() behavior in master mode
  - Add units to physical measurements
- HAL RTC driver
  - Expand the cast of ‘RTC_CR_BYPSHAD’ to 32 bits when writing to the CR register in HAL_RTCEx_DisableBypassShadow() to avoid overwriting its upper bits.
  - Fix CONSTANT_EXPRESSION_RESULT/UNUSED_VALUE Coverity warnings.
- HAL TIM driver
  - Update TIM_CCER_CCxE_MASK to support internal TIM Channel5 and TIM Channel6.

### LL Drivers updates

- LL IWDG driver
  - Fix MISRAC2012 Rule 8.13 errors

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.5/ 05-October-2025

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL RNG driver
  - Update Distinguish error coming from RecoverSeedError or from SeedError.
- HAL HSEM driver
  - Macro update to be aligned with register name in CMSIS
- HAL RTC driver
  - Expand the cast of ‘RTC_CR_BYPSHAD’ to 32 bits when writing to the CR register in HAL_RTCEx_DisableBypassShadow() to avoid overwriting its upper bits
- HAL UART driver
  - Provide accurate position in RxEventCallback when ReceptionToIdle mode is used with DMA, when UART and DMA interrupts process is delayed
  - Correct references to HAL_UARTEx_WakeupCallback and to HAL_UART_WAKEUP_CB_ID define, according to serie capabilities
  - Correct DMA Rx abort procedure impact on ongoing Tx transfer in polling mode
  - Ensure UART Rx buffer is not written beyond boundaries in case of RX FIFO reception in Interrupt mode
  - Add HAL_UART_RXEVENT_IDLE event notification to user in case of HAL_UARTEx_ReceiveToIdle_DMA() use with Circular DMA, even if occurring just after TC event.
  - Align prescaler value used by default in UART_GET_DIV_FACTOR macro with RM.
  - Correct wrong comment in HAL_UARTEx_DisableFifoMode() function
  - Corrections in CHM/PDF rendering for HAL_UART
- HAL TIM driver
  - Update TIM_CCER_CCxE_MASK to support internal TIM Channel5 and TIM Channel6.
  - Fix update flag (UIF) clearing in TIM_Base_SetConfig

### LL Drivers updates

- LL LPUART driver
  - Solve Coverity out-of-bound memory access warning in use of LPUART_PRESCALER_TAB array
  - Add LL LPUART API allowing TX FIFO flush request

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.4/ 30-October-2024

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL ADC driver
  - Fixed MISRA 20.6_b warnings
- HAL QSPI driver
  - Clear AR register after CCR to avoid new transfer when address is not needed
- HAL SPI driver
  - Check data size before changing state in reception API
  - Fix MISRA2012 Rule 8.13 errors
- HAL UART driver
  - Correct DMA Rx abort procedure impact on ongoing Tx transfer in polling mode
- HAL PCD driver
  - Fix added to support bulk transfer in double buffer mode

### LL Drivers updates

- LL ADC driver
  - Fixed MISRA 20.6_b warnings.
- LL SPI driver
  - Add const qualifiers to be compliant with MISRA rule 8.13
- LL USB driver
  - Fix added to support bulk transfer in double buffer mode

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.3/ 05-June-2024

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL CRYP driver
  - Code quality enhancment MISRAC 2012 Rule-10.4
- HAL I2C driver
  - Add a temporary variable to get the value to check before comparison.
  - Add abort memory management to function HAL_I2C_Master_Abort_IT
  - Move the prefetch process in function HAL_I2C_Slave_Transmit.
- HAL QSPI driver
  - Clear AR register after CCR to avoid new transfer when address is not needed
- HAL TIM driver
  - Fixed typo in PWM asymmetric mode related constants
- HAL UART driver
  - Add HAL_UART_RXEVENT_IDLE event notification to user in case of HAL_UARTEx_ReceiveToIdle_DMA() use with Circular DMA, even if occurring just after TC even
  - Align prescaler value used by default in UART_GET_DIV_FACTOR macro with RM.
  - Correct wrong comment in HAL_UARTEx_DisableFifoMode() function
  - Ensure UART Rx buffer is not written beyond boundaries in case of RX FIFO reception in Interrupt mode

### LL Drivers updates

- LL LPUART driver
  - Add LL LPUART API allowing TX FIFO flush request
- LL TIM driver
  - Fixed typo in PWM asymmetric mode related constants.

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.2/ 07-February-2024

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL GPIO driver
  - Replace GPIO_Pin_x with GPIO_PIN_x to be compliant with macros definition
- HAL CRYP driver
  - Update CRYP_AESGCM_Process_IT() and CRYP_AESCCM_Process_IT() to prevent ‘Computation Completed’ IRQ from firing before the DINR pointer gets incremented.
- HAL I2C driver
  - Update HAL_I2C_Slave_Transmit to check if the received NACK is the good one
- HAL SMBUS driver
  - Update SMBUS_ITErrorHandler to flash TXDR just in case of error
- HAL QSPI driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Fix incorrect word ‘surcharged’ in functions headers
- HAL CORTEX driver
  - Updated HAL_MPU_ConfigRegion() to allow the configuration of the MPU registers independently of the value of Enable/Disable field.
  - Add new APIs HAL_MPU_EnableRegion() / HAL_MPU_DisableRegion().
- HAL TIM driver
  - Update interrupt flag is cleared when the update event is generated by software.
  - Fix typo in PWM asymmetric mode macros’ names.
- HAL LPTIM driver
  - Removed redundant IS_LPTIM_AUTORELOAD macro.

### LL Drivers updates

- LL UTILS driver
  - Fix a note about Ticks parameter.

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.1 / 01-November-2023

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL I2C driver
  - Update I2C_Slave_ISR_IT, I2C_Slave_ISR_DMA and I2C_ITSlaveCplt to prevent the call of HAL_I2C_ListenCpltCallback twice
  - Update I2C_WaitOnRXNEFlagUntilTimeout to check I2C_FLAG_AF independently from I2C_FLAG_RXNE
  - Remove the unusable code in function HAL_I2C_IsDeviceReady
  - Update I2C_WaitOnFlagUntilTimeout to handle error case
- HAL SAI driver
  - Improve audio quality (avoid potential glitch)
- HAL QSPI driver
  - Clear the QSPI.AR register when sCommand.AddressMode is “QSPI_ADDRESS_NONE”
- HAL TIM driver
  - Removing multiple volatile reads or writes in interrupt handler
  - Improved period configuration parameter check
  - Assert check for the right channels
- HAL RTC driver
  - Remove macro __HAL_RTC_TAMPER_GET_IT() as it is redundant with macro __HAL_RTC_TAMPER_GET_FLAG() and create an alias into the hal_legacy.h file
- HAL UART driver
  - Fix incorrect gState check in HAL_UART_RegisterRxEventCallback/HAL_UART_UnRegisterRxEventCallback to allow user Rx Event Callback registration when a transmit is ongoing
  - Avoid RTOF flag to be cleared by a transmit process in polling mode

### LL Drivers updates

- LL I2C driver
  - Update LL_I2C_HandleTranfer function to prevent undefined behavior of volatile usage before updating the CR2 register
- LL TIM driver
  - Remove unnecessary change of MOE bitfield in LL_TIM_BDTR_Init()
  - User manual quality improvement
- LL RTC driver
  - Correct misleading note about shadow registers

## Backward Compatibility

This release is compatible with the previous versions.

V1.14.0 / 07-June-2023

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL CRYP driver
  - Update Crypt/Decrypt IT processes to avoid Computation Completed IRQ fires before the DINR pointer increment
- HAL Generic driver
  - Update of HAL_GetTickFreq() brief
- HAL I2C driver
  - Change HAL_I2C_IsDeviceReady to support 10 bit addressing mode
  - Update HAL I2C driver to prefetch data before starting the transmission: implementation of errata sheet workaround I2C2-190208 : Transmission stalled after first byte
  - Update HAL I2C driver to disable all interrupts after end of transaction
  - Update HAL_I2C_Init API to clear ADD10 bit in 7 bit addressing mode
  - Update HAL_I2C_Mem_Write_IT API to initialize XferSize at 0
- HAL SMBUS driver
  - Update HAL I2C driver to prefetch data before starting the transmission: implementation of errata sheet workaround I2C2-190208 : Transmission stalled after first byte
- HAL SPI driver
  - Fix driver to don’t update state in case of error. (HAL_SPI_STATE_READY will be set only in case of HAL_TIMEOUT)
  - Update HAL_SPI_TransmitReceive API to set the bit CRCNEXT in case of one byte transaction
  - Update IT API to enable interrupts after process unlock
- HAL TSC driver
  - Add parameter assertion depends on Duration time restriction link to product
- HAL UART driver
  - Update initialisation sequence for TXINV, RXINV and TXRXSWAP settings

### LL Drivers updates

- LL USB driver
  - Add USB_EPStopXfer() function

## Backward Compatibility

This release is compatible with the previous versions.

V1.13.0 / 8-February-2023

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- HAL/LL code quality enhancement

## Contents

### HAL Drivers updates

- HAL FLASH driver
  - Fix missing STM32WB10xx preprocessor checks for several constants (FLASH_PCROP_GRANULARITY_OFFSET,SRAM2B_START_SECURE_ADDR_4,FLASH_PAGE_SIZE..)
  - Fix wrong value of constant SRAM_SECURE_PAGE_GRANULARITY for STM32WB5x & STM32WB3x devices
- HAL Generic driver
  - Add missing preprocessor directive on macros IS_SYSCFG_SRAM2WRP_PAGE & IS_SYSCFG_SRAM2WRP2_PAGE for STM32WB10xx device
  - Fix Tick priority handling in HAL_Init_Tick()
- HAL I2C driver
  - Enhance I2C HAL to be thread safe
  - Remove HAL DMA dependency thanks to the HAL_DMA_MODULE_ENABLED define
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- HAL SAI driver
  - Add 24kHz audio frequency for SAI
- HAL TSC driver

- HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers

- HAL UART driver
  - Rework of UART_WaitOnFlagUntilTimeout() API to avoid being stuck forever when UART overrun error occurs and to enhance behavior.

## Backward Compatibility

This release is compatible with the previous versions.

V1.12.0 / 09-November-2022

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- Remove HAL_LOCK/HAL_UNLOCK calls in HAL_xxxx_RegisterCallback & HAL_xxxx_UnregisterCallback for IPs (IRDA, LPTIM, SMARTCARD, TIM, UART, USART)

## Contents

### HAL Drivers updates

- HAL ADC driver
  - Disable AutoPowerOff when performing calibration
  - Fix calibration issue due to delay between ADC enable and disable
  - Add Bitfield CFGR1_CHSELRMOD cleaning in HAL_ADC_Init and HAL_ADC_DeInit functions, needed for specific cases with reconfiguration on the fly
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- HAL CRC driver
  - Add filter in HAL_CRCEx_Polynomial_Set() function to exclude even polynomials
- HAL EXTI driver
  - Fix computation of pExtiConfig->GPIOSel in HAL_EXTI_GetConfigLine()
- HAL RCC driver
  - Optimize HAL_RCC_GetOscConfig function
- HAL RTC driver
  - Improve HAL_RTC_Init function to avoid initialization if already done
  - HAL code quality enhancement
- HAL SAI driver
  - HAL code quality enhancement
- HAL UART driver
  - New API HAL_UARTEx_GetRxEventType to retrieve the type of event that has led the RxEventCallback execution
  - Remove HAL_LOCK/HAL_UNLOCK calls in HAL UART Tx and Rx APIs to fix a concurrent access issue
  - Disable the Receiver Timeout Interrupt when data reception is completed
- HAL USART driver
  - Remove HAL_LOCK/HAL_UNLOCK calls in HAL_USART_RegisterCallback & HAL_USART_UnregisterCallback
- HAL USB driver
  - Add a mask for USB RX bytes count

### LL Drivers updates

- LL ADC driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- LL LPTIM driver
  - Enhance code quality by renaming all functions LL_LPTIM_ClearFLAG_Xxxxx with LL_LPTIM_ClearFlag_Xxxxx
- LL RCC driver
  - Add specific LSE_VALUE to 32774Hz for STM32WB5Mxx device
- LL TIM driver
  - Remove useless check on IS_TIM_ADVANCED_INSTANCE() within LL_TIM_BDTR_Init() to fix Break Filter configuration problem with specific TIM instances

## Backward Compatibility

This release is compatible with the previous versions.

V1.11.0 / 01-June-2022

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- Correct English spelling errors and typos

## Contents

### HAL Drivers updates

- HAL EXTI driver
  - Fix build error with -Werror=unused-paramerter
- HAL GPIO driver
  - Add new API HAL_GPIO_WriteMultipleStatePin() to set simultaneously several pins to Low level and/or High level
- HAL I2C driver
  - Add new SMBUS_FLAG_TXE flag value for macro __HAL_SMBUS_CLEAR_FLAG()
  - Add flush on TX register
  - Fix some communication issues due to low system frequency execution
  - Fix issue of mismatched data received by master in the case of data size transmitted by the slave is greater than the data size received by the master
  - Fix Timeout issue using HAL MEM interface through FreeRTOS
- HAL IRDA driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- HAL LPTIM driver
  - Enhance IS_LPTIM_AUTORELOAD and IS_LPTIM_PERIOD macros to check that Auto reload value is strictly greater than 0 (Alignment with Reference Manual)
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- HAL PKA driver
  - Add capability to avoid padding when parameters are not uint32_t aligned
- HAL RCC driver
  - Add LSI clock as RF system wakeup clock in RCC_CSR register for STM32WB15xx and STM32WB10xx
  - Enhance HAL_RCCEx_EnableLSCO() and HAL_RCCEx_DisableLSCO() functions
  - Optimize HAL_RCC_OscConfig()
  - Fix MCO index check in HAL_RCC_MCOConfig()
  - Fix IS_RCC_PLLSOURCE macro since PLL_SOURCE_NONE should not be considered as correct parameter
  - Fix PLL_RDY flag still on when turning off PLL source
- HAL SAI driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- HAL SMARTCARD driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Fix wrong cast when setting USARTDIV
- HAL TIM driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Add capability to configure the TIM_CR2_CCDS bit
  - Improved period configuration parameter check for IS_TIM_PERIOD macro
- HAL UART driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Add a check on the UART parity before enabling the parity error interrupt
  - Fix wrong cast when setting USARTDIV
- HAL USART driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Add a check on the UART parity before enabling the parity error interrupt
- HAL USB driver
  - Add new HAL_PCD_EP_Abort API to abort an USB EP transaction
  - Allow sending multi packet on interrupt endpoints
  - Avoid EP0 reconfiguration during OUT multi packet transfer
  - Fix timeout handling in DCD stage of the BCD process

### LL Drivers updates

- LL I2C driver
  - Fix Error status value returned by LL_I2C_DeInit when no I2C1 and I2C3 are available
- LL LPTIM driver
  - LL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- LL RCC driver
  - Add LSI clock as RF system wakeup clock in RCC_CSR register for STM32WB15xx and STM32WB10xx
- LL TIM driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Update __LL_TIM_CALC_PSC() macro to round up the evaluate value when the fractional part of the division is greater than 0.5
- LL UART driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
  - Remove TXFECF reference in LL LPUART file
- LL USART driver
  - HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
- LL USB driver
  - Add new USB_EPStopXfer API to Stop transfer on an EP
  - Fix issue to do not set OUT EP to valid state during Init

## Backward Compatibility

This release is compatible with the previous versions.

V1.10.1 / 27-March-2022

## Main Changes

- Patch release of HAL and Low Layer drivers

## Contents

### HAL Drivers updates

- HAL COMP driver
  - Fix Code spell

### LL Drivers updates

- LL COMP driver
  - Fix Code spell

## Backward Compatibility

This release is compatible with the previous versions.

V1.10.0 / 12-November-2021

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- All source files: update disclaimer to add reference to the new license agreement
- Correct English spelling errors and typos

## Contents

### HAL Drivers updates

- HAL ADC driver
  - Enhance ADC calibration to reduce noise effect
- HAL GPIO driver
  - Reorder EXTI configuration sequence in order to avoid unexpected level detection
- HAL I2C driver
  - Update I2C_TransferConfig() function to avoid write to reserved bit 28 in I2C_CR2 register
  - Update header description of I2C_WaitOnFlagUntilTimeout() function
  - Update driver to handle errors in polling mode
  - Update I2C_IsAcknowledgeFailed() API to avoid I2C in busy state if NACK received after transmitting register address
  - Rename I2C_IsAcknowledgeFailed() to I2C_IsErrorOccurred() and correctly manage when error occurs
- HAL IRDA driver
  - Improve description of IRDA_WaitOnFlagUntilTimeout() function header
- HAL IWDG driver
  - Fix HAL_GetTick() timeout vulnerability
  - Update HAL_IWDG_DEFAULT_TIMEOUT value to take into account LSI startup time
- HAL LPTIM driver
  - Add check on PRIMASK register to prevent from enabling unwanted global interrupts within LPTIM_Disable() and LL_LPTIM_Disable() funstions
- HAL PKA driver
  - Fix Incorrect length for R and S in HAL_PKA_ECDSASign_GetResult() function
- HAL RCC driver
  - Enhance RCC_MCOx in order to support both MCO number and AF mapping
  - Add missing RCC_RNGCLKSOURCE_PLLSAI1 in RNG clock sources
- HAL SMARTCARD driver
  - Improve description of SMARTCARD_WaitOnFlagUntilTimeout() function header
- HAL SMBUS driver
  - Add new APIs:
    - HAL_SMBUSEx_EnableWakeUp()
    - HAL_SMBUSEx_DisableWakeUp()
- HAL TIM driver
  - Reorder function calls in HAL_TIM_IC_Start_DMA() and HAL_TIM_Encoder_Start_DMA() functions to enable the timer when configuration is done
- HAL UART driver
  - Improve description of UART_WaitOnFlagUntilTimeout() function header
- HAL USART driver
  - Improve description of USART_WaitOnFlagUntilTimeout() function header
- HAL WWDG driver
  - Remove non UTF-8 characters in comments

### LL Drivers updates

- LL ADC driver
  - Update LL_ADC driver to prevent unused argument compilation warning
- LL RCC driver
  - Add missing APIs LL_RCC_PLL_IsEnabledDomain_XXX for PLL domain outputs
  - Add check of PLL enable bit when a peripheral is using PPL P or PLL Q
  - Update driver to fix CodeSonar warnings

## Backward Compatibility

This release is compatible with the previous versions.

V1.9.0 / 24-June-2021

## Main Changes

- Maintenance release of HAL and Low Layer drivers to include latest corrections
- Update of HAL SMBUS driver to introduce fast mode and fast mode plus
  - Add extension files stm32wbxx_hal_smbus_ex.h/.c for new APIs:
    - HAL_SMBUSEx_EnableFastModePlus()
    - HAL_SMBUSEx_DisableFastModePlus()

## Contents

### HAL Drivers updates

- HAL CORTEX driver
  - Disable the smallest MPU region sizes (32B, 64B, 128B) within M0+ context
- HAL CRYP driver
  - Update HAL_CRYP_InCpltCallback() API to fix an incorrect condition call at resumption time
  - Update CRYP_AESCCM_Process_IT() to fix incorrect CCM header length management when data are fed to the peripheral under interrupt
- HAL EXTI driver
  - Update HAL_EXTI_GetConfigLine() to set default configuration value of Trigger and GPIOSel before checking each corresponding register
- HAL FLASH driver
  - Add new __HAL_FLASH_ECC_CPUID() macro to get the Bus-ID of the CPU access causing the ECC failure
- HAL GPIO driver
  - Update HAL_GPIO_Init() function to avoid the configuration of PUPDR register when Analog mode is selected
- HAL I2C driver
  - Updated I2C_IsAcknowledgeFailed() to avoid keeping I2C in busy state if NACK is received after transmitting register address
- HAL IWDG driver
  - Add LSI startup time in default IWDG timeout calculation (HAL_IWDG_DEFAULT_TIMEOUT)
  - Update HAL_IWDG_Init() API in order to fix HAL_GetTick() timeout vulnerability issue
- HAL RCC driver
  - Update definition of IS_RCC_OSCILLATORTYPE() macro
  - Update IS_RCC_PERIPHCLOCK() macro definition depending on targeted derivative
  - Add new API HAL_RCC_GetResetSource() to get all reset sources and clear flags for next reset
- HAL RTC driver
  - Add new API HAL_RTC_DST_Add1Hour() to add 1 hour without going through the initialization procedure
  - Add new API HAL_RTC_DST_Sub1Hour() to subtract 1 hour without going through the initialization procedure
  - Add new API HAL_RTC_DST_SetStoreOperation() to memorize the Daylight Saving Time status without going through the initialization procedure
  - Add new API HAL_RTC_DST_ClearStoreOperation() to clear the Daylight Saving Time status without going through the initialization procedure
  - Add new API HAL_RTC_DST_ReadStoreOperation() to read the Daylight Saving Time status
  - Fields DayLightSaving and StoreOperation in RTC_TimeTypeDef structure are deprecated
- HAL RNG driver
  - Update timeout mechanism to avoid false timeout detection in case of preemption
- HAL SMBUS driver
  - Add support for Fast Mode Plus to be SMBUS Rev3 compliant.
    - Add HAL_SMBUSEx_EnableFastModePlus() and HAL_SMBUSEx_DisableFastModePlus() APIs to manage Fm+.
- HAL SPI driver
  - Update in SPI_WaitFifoStateUntilTimeout() to fix code optimization issue
  - Update to fix MISRA-C 2012 Rule-13.2 issue
- HAL UART driver
  - Fix erroneous UART’s handle state in case of error returned after DMA reception start within UART_Start_Receive_DMA()
  - Update UART ReceptionType management in case of ReceptionToIdle API are called from RxEvent callback
  - Handling of UART concurrent register access in case of race condition between Tx and Rx transfers
- HAL USB driver
  - Add fix transfer complete for IN Interrupt transaction in single buffer mode

### LL Drivers updates

- LL DMA driver
  - Update LL_DMA_ClearFlag_GIx() functions description to inform use not to clear GIx when channel is ON
- LL RTC driver
  - Fix race condition in LL_RTC_WaitForSynchro() function
  - Fix wrong reference of RTC instance in LL_RTC_TIME_Init() and LL_RTC_DATE_Init() functions
- LL SPI driver
  - Update LL_SPI_TransmitData8() to avoid casting the result to 8 bits
  - Updated to set the FRXTH bit for 8bit data for LL_SPI_Init() API
- LL LPUART driver
  - Handling of UART concurrent register access in case of race condition between Tx and Rx transfers
- LL USART driver
  - Handling of UART concurrent register access in case of race condition between Tx and Rx transfers

## Backward Compatibility

This release is compatible with the previous versions.

v1.8.0 / 12-February-2021

## Main Changes

### Add support for STM32WB15xx and STM32WB10xx

Peripheral | Headline
--- | ---
generic | Prevent redefinition of UNUSED macro
generic | Add support of Keil V6
USB | Fix device ISO IN double buffer mode
USB | Remove duplication of PCD_GET_EP_RX_CNT define
USB | Fix PMA rx count descriptor update
USB | Fix HAL_PCD_EP_Open indentation
USB | Rework device start and stop
USB | Remove register keyword as no more supported by c++ compiler
USB | Fix double buffer mode
USB | Fix Enabling ULPI interface
UART | Arrays are now declared as static const
UART | Add a HAL UART service to enable RTO interrupt
UART | Implement HAL UART enhanced reception services (ReceptionToIdle)
UART | Fix typos introduced in UART State definition description
UART | Fix invalid CR1 init in UART_SetConfig() and SMARTCARD_SetConfig()
TIMER | Correct timeout vulnerability
TIMER | Correct counter value latch delay at high frequency
TIMER | Correct error: “LL_TIM_TS_ITR11” is undefined
TIMER | Correct LL_TIM_E_TestLL_TIM_SetRemap
TIMER | Correct HAL_TIM_OnePulse_Start ignoring OutputChannel parameter leading to unexpected behavior
TIMER | Correct ONEPULSEMODE defines. Descriptions were inverted
TIMER | Fix MISRA errors
TIMER | Correct the return value of LL_TIM_GetCounterMode
LPTIM | Correct MISRAC2012-Rule-8.3_b: Declaration/definition of HAL_LPTIM_RegisterCallback is inconsistent with previous declaration
LPTIM | Fix external clock configuration (was incomplete for some ClockSource/CounterSource combinations)
ADC | Correct timeout vulnerability
ADC | Increase internal regulator stabilization time from 10us to 20us
COMP | Correct timeout vulnerability
CRYP | Correct official NIST CCM test pattern enciphering failing when header length is null
CRYP | Correct HAL_CRYP_SetConfig not storing the content of KeyIVConfigSkip
CRYP | Correct the GCM decryption in interrupt mode

## Backward Compatibility

This release is compatible with the previous versions.

v1.7.0 / 30-October-2020

## Main Changes

### Maitenance release

All peripheral

Peripheral | Headline
--- | ---
CRYP | Add precision on data types
CRYP | AES GCM: handling of AUD with size not multiple of 4 bytes not properly handle in CRYP_AESGCM_Process_IT
CRYP | Fix CRYP HAL driver to manage GCM header lengths not multiple of 4 bytes in 8-bit, 16-bit and 32-bit data types.
CRYP | Update to be able to manage GCM/GMAC/CCM header feed in DMA mode
CRYP | Fix the enciphering issue and pass all the official NIST CCM test patterns.
EXTI | Replace reserved word __LINE__ by __EXTI_LINE__
EXTI | Add missing line 46 to LL_EXTI_LINE_ALL_32_63
I2C | Refactor documentation
PWR | Remove ‘register’ storage class specifier
RCC | HSE bypass related API must be removed from RCC LL/HAL drivers
RCC | LSI is no longer a source for RF WUP
RCC | SystemCoreClockUpdate shall not be called by the HAL
TIM | Add HAL_TIM_DMABurst_MultiWriteStart and HAL_TIM_DMABurst_MultiReadStart to support multiple DMA bursts.
TIM | Minor correction to fix warnings
WWDG | Correct driver description

## Backward Compatibility

This release is compatible with the previous versions.

v1.6.0 / 05-June-2020

## Main Changes

### Maitenance release

All peripheral

Peripheral | Headline
--- | ---
All | Remove ‘register’ storage class specifier
CRYP | AES GCM: Add support data encrypt/decrypt with length not multiple of 16 bytes
DMA | LOCK UNLOCK process to modify, as LOCK is done at Start and UNLOCK is done at Completion processus
DMA | Correct the computation for DMAMUX overrun IT mask
GPIO | Correct bug on HAL_GPIO_TogglePin and LL_GPIO_TogglePin to allow to toggle multiple pin
I2C | Sequential transfer MAX_NBYTE_SIZE correspond to no reload
SPI | problematic timeout management inside SPI DMA xfer complete handler (interrupt context)
SPI | Issue in 3wires communication (Need Disable / Enable SPI)
IWDG | Correct the IWDG start-up timeout (insufficiently low)
USB | Improve OUT EP re-enable with double buffering
USB | Add workaround for unexpected USB wakeup during stop mode
USB | Clear unexpected wakeup during suspend IT
USB | Adjust IO address access to be volatile
USB | Manage IN isoc IN transfer complete interrupt
RTC | Issue on macro when clearing or getting flag TAMP, TIMESTAMP in EXTI
SAI | Issue with ‘register’ storage class specifier, should be removed
SMARTCARD | No repetition after NACK is received in smartcard T=0
SMARTCARD | Improve doxygen visual result
UART | Rework BRR register value computation in HAL_UART_Init() for ROM size gain
Utils | Align package information to RM0434
Utils | Turn UTILS_SetFlashLatency() into LL_SetFlashLatency() public function
TIM | Order of disabling in HAL_TIM_IC_Stop_DMA function
TIM | COUNTERMODE defines are inverted for TIM_CR1_CMS in ll_tim.h

## Backward Compatibility

This release is compatible with the previous versions.

v1.5.0 / 12-February-2020

## Main Changes

### Introduction of STM32WB5M, STM32WB35xx and STM32WB30xx product

This release introduce the support of STM32WB5Mxx, STM32WB35xx product and its value line STM32WB30xx.

Added features:

- Introduction of STM32WB35xx.

Peripheral | Headline
--- | ---
HAL/LL | VREFBUF trimming calibration must be written by software
HAL | HAL_SetTickFreq() should update frequency on Systick_LOAD register and uwTickFreq correctly
GPIO | LL_GPIO_Init() generate undesired pulse
I2C | HardFault in I2C_DMAXferCplt
I2C | Incorrectly enable interrupts in I2C_Enable_IRQ routine when InterruptRequest = I2C_XFER_CPLT_IT
RCC | Cannot enable PLL if PLL OFF with identical PLL config
RCC | Clock reconfiguration issues once PLLSAI used

## Backward Compatibility

This release is compatible with the previous versions.

v1.4.0 / 15-December-2019

## Main Changes

### Maitenance release

Peripheral | Headline
--- | ---
CRYP | Correct suspend and resume operation with a different parameter size.
I2C | Correct MISRA error. The value assigned to variable tmpITFlags was never used.
I2C | Correct I2C slave interrupt handling issue.
IPCC | Add LL_IPCC_GetChannelNumber API which return the number of channel supported by the device.
LPTIM | Correct doxygen group names.
PKA | Use a macro __PKA_RAM_PARAM_END to clear the last word of any input parameters.
TSC | Correct MISRA error related to tag __TSC_HandleTypeDef which is unused.
ADC | Add two functions to ease configuration of internal channels.

## Backward Compatibility

This release is compatible with the previous versions.

## Dependencies

This software release is compatible with:

STM32CubeMX V6.0.0

v1.3.0 / 11-September-2019

## Main Changes

### Maitenance release

Peripheral | Headline
--- | ---
CRYP | Document a restriction regarding size field on HAL_CRYP_Encrypt_DMA, HAL_CRYP_Decrypt_DMA API.
CRYP | Correct several MISRA C:2012 and Code Sonar compliance improvements.
FLASH | Move FLASH_SIZE define from hal flash. h to cmsis device file
FLASH | Correct ECC management in HAL FLASH driver
FLASH | Correct #define in stm32wbxx_hal_flash.h - FLASH_PAGE_NB
RCC | Correct PLL characteristics
TIMER | Add assertion check inside HAL_TIMEx_MasterConfigSynchronization
TIMER | Make LL_TIM_SetETRSource in line with RM0434
WWDG | Correct typical frequency computation description inside the header file
IRDA | Improve the description of the APIs
SMARTCARD | Fix GCC compilation warning
UART | Correct possible overflow with wordlength = 9bits and NO parity in HAL_UART_Transmit() and HAL_IRDA_Transmit()
UART | Fix GCC compilation warning
USART | Correct possible overflow with wordlength = 9bits and NO parity in HAL_UART_Transmit() and HAL_IRDA_Transmit()
USART | Fix GCC compilation warning

## Backward Compatibility

This release is compatible with the previous versions.

## Dependencies

This software release is compatible with:

STM32CubeMX V5.4.0

V1.2.0 / 26-June-2019

## Main Changes

### STM32WB50xx introduction and maintenance release

First release for STM32WBxx HAL drivers introducing stm32wb50xx devices.

Peripheral | Headline
--- | ---
RCC | Add capability to configure RNG clock in one step.
| Before two steps were required: USB clock then RNG clock.
| Two step method is still supported and compatible.
IRDA | Avoid using macros with function calls as argument
LPTIM | Add polling mechanism to check xxOK flags
| Add new EXTI macros to manage LPTIM wakeup EXTI interrupts
USB | Improve ep OUT interrupt handler
| Ensure 16 bit access to USB PMA
| Enable BCD
RNG | Add new error definitions
SAI | Correct SAI frequency calculation in case of SPDIF output
SMARTCARD | Avoid using macros with function calls as argument
UART | Avoid using macros with function calls as argument
USART | Avoid using macros with function calls as argument

## Backward Compatibility

This release is compatible with the previous versions.

## Dependencies

This software release is compatible with:

STM32CubeMX V5.3.0

V1.1.0 / 05-April-2019

## Main Changes

### Maintenance release

Maintenance release of HAL and Low layers drivers supporting STM32WB55xx devices.

Fixed bugs list
Peripheral | Headline
--- | ---
COMP | Only cosmetic changes
CRYP | Only changes related to documentation
EXTI | Only changes related to documentation
FLASH | Improve code efficiency
GPIO | Improve HAL_GPIO_TogglePin efficiency
IWDG | Only changes related to documentation
RCC | Only changes related to documentation
RTC | LL_RTC_BAK_GetRegister generates warning on GCC 6.3.1 20170620
TIM | Only changes related to documentation
TSC | Correct __HAL_TSC_GET_GROUP_STATUS which was checking only TSC_GROUP1_IDX

## Backward Compatibility

This release is compatible with the previous versions.

## Dependencies

This software release is compatible with:

STM32CubeMX V5.2.0

V1.0.0 / 06-February-2019

## Main Changes

### First release

First official release of HAL (Hardware Abstraction Layer) and LL (Low layers) drivers to support STM32WB55xx.