Release Notes for STM32F4xx HAL Drivers (2023)

Update History

V1.5.2 / 22-September-2016

MainChanges

  • HAL I2C update
    • Fix wrongbehavior in consecutive transfers in case of single byte transmission (Master/Memory Receive
      interfaces)
    • Update HAL_I2C_Master_Transmit_DMA() / HAL_I2C_Master_Receive_DMA()/ HAL_I2C_Slave_Transmit_DMA()
      and HAL_I2C_Slave_Receive_DMA() to manage addressing phase through interruption instead of polling
    • Add acheck on I2C handle state at start of all I2C API's to ensure that I2C is ready
    • Update I2C API's (Polling, IT and DMA interfaces) to manage I2C XferSize andXferCount handle parameters instead of API size parameter to help user to get information of counter in case of error.

    • Update Abort functionality to manage DMA usecase

  • HAL FMPI2C update
    • Update to disable Own Address beforesetting the new Own Address configuration:
      • Update HAL_FMPI2C_Init() to disable FMPI2C_OARx_EN bit before any configuration in OARx registers
  • HAL CAN update
    • Update CAN receive processes to set CAN RxMsg FIFONumber parameter
  • HAL UART update
    • UpdateUART handle TxXferCount and RxXferCount parameters as volatile to avoid eventualissue with High Speed optimization

V1.5.1 / 01-July-2016

MainChanges

  • HAL GPIO update
    • HAL_GPIO_Init()/HAL_GPIO_DeInit() API's: updateGPIO_GET_INDEX() macro implementation to support all GPIO's
  • HAL SPI update
    • Fix regression issue: retoreHAL_SPI_DMAPause() and HAL_SPI_DMAResume()API's
  • HAL RCC update
    • Fix FSMC macros compilation warnings with STM32F412Rx devices
  • HAL DMA update
    • HAL_DMA_PollFortransfer() API clean up
  • HAL PPP update(PPP refers to IRDA, UART, USART and SMARTCARD)
    • Update HAL_PPP_IRQHandler() to add a check on interrupt source before managing the error
  • HAL QSPI update
    • Implementworkaround to fix the limitationpronounced in theErratasheet2.1.8 section: In some specific cases, DMA2 data corruptionoccurs when managing AHB and APB2 peripherals in a concurrent way

V1.5.0 / 06-May-2016

MainChanges

  • Addsupport ofSTM32F412cx, STM32F412rx, STM32F412vx and STM32F412zxdevices
  • General updates to fix known defects and enhancements implementation
  • Add new HAL driver for DFSDM peripheral
  • Enhance HAL delay and time base implementation:
    • Addnew drivers stm32f4xx_hal_timebase_rtc_alarm_template.c andstm32f4xx_hal_timebase_rtc_wakeup_template.c which override the nativeHAL time base functions (defined as weak) to either use the RTC as timebase tick source. For more details about the usage of these drivers,please refer to HAL\HAL_TimeBase_RTC examplesand FreeRTOS-based applications
  • The following changes done on the HAL drivers require an update on the application code based on HAL V1.4.4
    • HAL UART, USART, IRDA, SMARTCARD, SPI, I2C,FMPI2C, QSPI(referenced asPPPhere below)drivers
      • Add PPP error management during DMA process. This requires the following updates onuser application:
        • Configure and enable the PPP IRQ in HAL_PPP_MspInit() function
        • Instm32f4xx_it.c file,PPP_IRQHandler() function:add a call to HAL_PPP_IRQHandler() function
        • Add and customize the Error Callback API: HAL_PPP_ErrorCallback()
    • HAL I2C, FMPI2C (referenced asPPPhere below)drivers:
      • Update to avoid waiting onSTOPF/BTF/AF flag under DMA ISR by using thePPP end of transfer interrupt in the DMA transfer process.This requires the following updates onuser application:
        • Configure and enable the PPP IRQ in HAL_PPP_MspInit() function
        • Instm32f4xx_it.c file,PPP_IRQHandler() function:add a call to HAL_PPP_IRQHandler() function
    • HAL I2C driver:
      • I2Ctransfer processes IT update: NACK during addressing phase is managedthrough I2C Error interruptinstead of HALstate
    • HAL IWDGdriver: rework overall driver for better implementation
      • RemoveHAL_IWDG_Start(),HAL_IWDG_MspInit() andHAL_IWDG_GetState()APIs
    • HAL WWDGdriver: rework overall driver for better implementation
      • Remove HAL_WWDG_Start(),HAL_WWDG_Start_IT(),HAL_WWDG_MspDeInit() andHAL_WWDG_GetState() APIs
      • Update theHAL_WWDG_Refresh(WWDG_HandleTypeDef *hwwdg, uint32_t counter) function and API by removing the "counter" parameter
    • HAL QSPI driver:Enhance the DMA transmit process byusingPPP TC interrupt instead of waiting on TC flag under DMA ISR.This requires the following updates onuser application:
      • Configure and enable the QSPIIRQ in HAL_QSPI_MspInit() function
      • Instm32f4xx_it.c file,QSPI_IRQHandler() function:add a call to HAL_QSPI_IRQHandler() function
    • HAL CEC driver:Overall driver rework with compatibility break versus previous HAL version
      • Remove HAL CEC polling Process functions: HAL_CEC_Transmit() and HAL_CEC_Receive()
      • RemoveHAL CEC receive interrupt process functionHAL_CEC_Receive_IT()and enable the "receive" mode during the Init phase
      • RenameHAL_CEC_GetReceivedFrameSize() funtion toHAL_CEC_GetLastReceivedFrameSize()
      • Add new HAL APIs: HAL_CEC_SetDeviceAddress() and HAL_CEC_ChangeRxBuffer()
      • Remove the'InitiatorAddress'field from theCEC_InitTypeDef structureand manageitas a parameter in the HAL_CEC_Transmit_IT() function
      • Add new parameter 'RxFrameSize' in HAL_CEC_RxCpltCallback() function
      • Move CEC Rx buffer pointerfrom CEC_HandleTypeDef structure to CEC_InitTypeDef structure
  • HAL RCC update
    • Update HAL_RCC_ClockConfig() function to adjust the SystemCoreClock
    • Rename macros and Literals:
      • RCC_PERIPHCLK_CK48byRCC_PERIPHCLK_CLK48
      • IS_RCC_CK48CLKSOURCEby IS_RCC_CLK48CLKSOURCE
      • RCC_CK48CLKSOURCE_PLLSAIP by RCC_CLK48CLKSOURCE_PLLSAIP
      • RCC_SDIOCLKSOURCE_CK48 by RCC_SDIOCLKSOURCE_CLK48
      • RCC_CK48CLKSOURCE_PLLQ by RCC_CLK48CLKSOURCE_PLLQ
    • Update HAL_RCCEx_GetPeriphCLKConfig() and HAL_RCCEx_PeriphCLKConfig() functions to support TIM Prescaler for STM32F411xx devices
    • HAL_RCCEx_PeriphCLKConfig() API: update to fix the RTC clock configuration issue
  • HAL CEC update
    • Overall driver rework withbreak of compatibility with HAL V1.4.4
      • Remove the HAL CEC polling Process: HAL_CEC_Transmit() and HAL_CEC_Receive()
      • Remove the HAL CEC receive interrupt process (HAL_CEC_Receive_IT()) and manage the "Receive" mode enable within the Init phase
      • Rename HAL_CEC_GetReceivedFrameSize() function toHAL_CEC_GetLastReceivedFrameSize() function
      • Add new HAL APIs: HAL_CEC_SetDeviceAddress() and HAL_CEC_ChangeRxBuffer()
      • Remove the'InitiatorAddress'field from theCEC_InitTypeDef structureand manageitas a parameter in the HAL_CEC_Transmit_IT() function
      • Add new parameter 'RxFrameSize' in HAL_CEC_RxCpltCallback() function
      • Move CEC Rx buffer pointerfrom CEC_HandleTypeDef structure to CEC_InitTypeDef structure
    • Update driver to implement the new CEC state machine:
      • Add new"rxState"field in CEC_HandleTypeDef structure to provide theCECstate information related to Rx Operations
      • Rename "state" field in CEC_HandleTypeDef structure to "gstate": CECstate information related to global Handle management and Tx Operations
      • Update CEC process to manage the new CEC states.
      • Update __HAL_CEC_RESET_HANDLE_STATE() macro to handle the new CEC state parameters (gState, rxState)
  • HAL UART, USART, SMARTCARD and IRDA (referenced as PPP here below) update
    • Update Polling management:
      • The user Timeout valuemust be estimated for the overall process duration: the Timeout measurement is cumulative
    • Update DMA process:
      • Update the management of PPP peripheral errors during DMA process. This requires the following updates in user application:
        • Configure and enable the PPP IRQ in HAL_PPP_MspInit() function
        • In stm32f4xx_it.c file, PPP_IRQHandler() function: add a call to HAL_PPP_IRQHandler() function
        • Add and customize the Error Callback API: HAL_PPP_ErrorCallback()
  • HAL FMCupdate
    • Update FMC_NORSRAM_Init() to remove the Burst access mode configuration
    • Update FMC_SDRAM_Timing_Init() to fix initialization issue when configuring 2 SDRAM banks
  • HAL HCDupdate
    • Update HCD_Port_IRQHandler() to unmask disconnect IT only when the port is disabled
  • HAL I2C/FMPI2C update
    • UpdatePolling management:
      • The Timeout value must be estimated for the overall process duration: the Timeout measurement is cumulative
    • Add the management of Abort service:Abort DMA transfer through interrupt
      • In the case of Master Abort IT transfer usage:
        • Addnew user HAL_I2C_AbortCpltCallback() to inform user of the end of abort process
        • A new abort state is defined in theHAL_I2C_StateTypeDefstructure
    • Addthe management of I2C peripheral errors, ACK failure and STOP conditiondetection during DMA process. This requires the following updates onuser application:
      • Configure and enable the I2C IRQ in HAL_I2C_MspInit() function
      • In stm32f4xx_it.c file, I2C_IRQHandler() function: add a call to HAL_I2C_IRQHandler() function
      • Add and customize the Error Callback API: HAL_I2C_ErrorCallback()
      • Refer to the I2C_EEPROM or I2C_TwoBoards_ComDMA project examples usage of the API
    • NACK error during addressing phase is returned through interrupt instead of previously through I2C transfer API's
    • I2C addressing phase is updated to be managedusing interrupt instead ofpolling (Only for HAL I2C driver)
      • Add new static functions to manage I2C SB, ADDR and ADD10 flags
  • HAL SPIupdate
    • Overall driver optimization to improve performance in polling/interrupt mode to reach maximum peripheral frequency
      • Polling mode:
        • Replace the use of SPI_WaitOnFlagUnitTimeout() function by "if" statement to check on RXNE/TXE flage while transferring data
      • Interrupt mode:
        • Minimize access on SPI registers
      • All modes:
        • Add the USE_SPI_CRC switch to minimize the number of statements when CRC calculation is disabled
        • Updatetimeout management to check on global processes
        • Update error code management in all processes
    • Update DMA process:
      • Add the management of SPI peripheral errors during DMA process. This requires the following updates in the user application:
        • Configure and enable the SPI IRQ in HAL_SPI_MspInit() function
        • In stm32f4xx_it.c file, SPI_IRQHandler() function: add a call to HAL_SPI_IRQHandler() function
        • Add and customize the Error Callback API: HAL_SPI_ErrorCallback()
        • Refer to the following example which describe the changes: SPI_FullDuplex_ComDMA
    • Fix regression in polling mode:
      • Add preparing data to transmit in case of slave mode in HAL_SPI_TransmitReceive() andHAL_SPI_Transmit()
      • Add to manage properly the overrun flag at the end of a HAL_SPI_TransmitReceive()
    • Fix regression in interrupt mode:
      • Add a wait on TXE flag in SPI_CloseTx_ISR() and in SPI_CloseTxRx_ISR()
      • Add to manage properly theoverrun flag in SPI_CloseRxTx_ISR() and SPI_CloseRx_ISR()
  • HAL DMA2Dupdate
    • Update the HAL_DMA2D_DeInit() function to:
      • Abort transfer in case of ongoing DMA2D transfer
      • Reset DMA2D control registers
    • Update HAL_DMA2D_Abort() to disable DMA2D interrupts after stopping transfer
    • Optimize HAL_DMA2D_IRQHandler() by reading status registers only once
    • Update HAL_DMA2D_ProgramLineEvent() function to:
      • Return HAL error state in case of wrong line value
      • Enable line interrupt after setting the line watermark configuration
    • Add new HAL_DMA2D_CLUTLoad() andHAL_DMA2D_CLUTLoad_IT()functions to start DMA2D CLUT loading
      • HAL_DMA2D_CLUTLoading_Abort() function to abort the DMA2D CLUT loading
      • HAL_DMA2D_CLUTLoading_Suspend() function to suspend the DMA2D CLUT loading
      • HAL_DMA2D_CLUTLoading_Resume() function to resume the DMA2D CLUT loading
    • Add new DMA2D dead time management:
      • HAL_DMA2D_EnableDeadTime() function to enable DMA2D dead time feature
      • HAL_DMA2D_DisableDeadTime() function to disable DMA2D dead time feature
      • HAL_DMA2D_ConfigDeadTime() function to configure dead time
    • Updatethe name of DMA2D Input/Output color mode defines to be more clear foruser (DMA2D_INPUT_XXX for input layers Colors, DMA2D_OUTPUT_XXX foroutput framebuffer Colors)
  • HAL LTDCupdate
    • Update HAL_LTDC_IRQHandler() to manage the case of reload interrupt
    • Add new callback API HAL_LTDC_ReloadEventCallback()
    • Add HAL_LTDC_Reload() to configure LTDC reload feature
    • Add new No Reload LTDC variant APIs
      • HAL_LTDC_ConfigLayer_NoReload() to configure the LTDC Layer according to the specified without reloading
      • HAL_LTDC_SetWindowSize_NoReload() to set the LTDC window size without reloading
      • HAL_LTDC_SetWindowPosition_NoReload() to set the LTDC window position without reloading
      • HAL_LTDC_SetPixelFormat_NoReload() to reconfigure the pixel format without reloading
      • HAL_LTDC_SetAlpha_NoReload() to reconfigure the layer alpha value without reloading
      • HAL_LTDC_SetAddress_NoReload() to reconfigure the frame buffer Address without reloading
      • HAL_LTDC_SetPitch_NoReload() to reconfigure the pitch for specific cases
      • HAL_LTDC_ConfigColorKeying_NoReload() to configure the color keying without reloading
      • HAL_LTDC_EnableColorKeying_NoReload() to enable the color keying without reloading
      • HAL_LTDC_DisableColorKeying_NoReload() to disable the color keying without reloading
      • HAL_LTDC_EnableCLUT_NoReload() to enable the color lookup table without reloading
      • HAL_LTDC_DisableCLUT_NoReload() to disable the color lookup table without reloading
      • Note:Variantfunctions with “_NoReload” post fix allows to set the LTDCconfiguration/settings without immediate reload. This is useful in casewhen the program requires to modify several LTDC settings (on one orboth layers) then applying (reload) these settings in one shot bycalling the function “HAL_LTDC_Reload”
  • HAL RTCupdate
    • Add new timeout implementation based on cpu cycles forALRAWF,ALRBWF and WUTWF flags
  • HAL SAIupdate
    • Update SAI state in case of TIMEOUT error within theHAL_SAI_Transmit() / HAL_SAI_Receive()
    • Update HAL_SAI_IRQHandler:
      • Add error management in case DMA errors through XferAbortCallback() and HAL_DMA_Abort_IT()
      • Add error management in case of IT
    • MoveSAI_BlockSynchroConfig() and SAI_GetInputClock() functions tostm32f4xx_hal_sai.c/.h files (extension files are kept empty forprojects compatibility reason)
  • HAL DCMIupdate
    • Rename DCMI_DMAConvCplt to DCMI_DMAXferCplt
    • UpdateHAL_DCMI_Start_DMA() function toEnable the DCMI peripheral
    • Add new timeout implementation based on cpu cycles for DCMI stop
    • Add HAL_DCMI_Suspend() function to suspend DCMI capture
    • Add HAL_DCMI_Resume() function to resume capture after DCMI suspend
    • Update lock mechanism for DCMI process
    • Update HAL_DCMI_IRQHandler() function to:
      • Add error management in case DMA errors through XferAbortCallback() and HAL_DMA_Abort_IT()
      • Optimize code by using direct register read
  • HAL DMA update
    • Addnew APIs HAL_DMA_RegisterCallback() and HAL_DMA_UnRegisterCallback toregister/unregister the different callbacks identified by the enumtypedef HAL_DMA_CallbackIDTypeDef
    • Add new API HAL_DMA_Abort_IT() to abort DMA transfer under interrupt context
      • The new registered Abort callback is called when DMA transfer abortion is completed
    • Add the check of compatibility between FIFO threshold level and size of the memory burst in the HAL_DMA_Init() API
    • Add new Error Codes: HAL_DMA_ERROR_PARAM, HAL_DMA_ERROR_NO_XFER and HAL_DMA_ERROR_NOT_SUPPORTED
    • Remove all DMA states related to MEM0/MEM1 in HAL_DMA_StateTypeDef
  • HAL IWDG update
    • Overall rework of the driver for a more efficientimplementation
      • Remove the following APIs:
        • HAL_IWDG_Start()
        • HAL_IWDG_MspInit()
        • HAL_IWDG_GetState()
      • Update implementation:
        • HAL_IWDG_Init(): this function insures the configuration and the start of the IWDG counter
        • HAL_IWDG_Refresh(): this function insures the reload of the IWDG counter
      • Refer to the following example to identify the changes: IWDG_Example
  • HAL LPTIM update
    • Update HAL_LPTIM_TimeOut_Start_IT()and HAL_LPTIM_Counter_Start_IT( ) APIs to configure WakeUp Timer EXTIinterrupt to be able to wakeup MCU from low power mode by pressing the EXTI line.
    • Update HAL_LPTIM_TimeOut_Stop_IT()and HAL_LPTIM_Counter_Stop_IT( ) APIs to disable WakeUp Timer EXTIinterrupt.
  • HAL NORupdate
    • Update NOR_ADDR_SHIFT macro implementation
  • HAL PCDupdate
    • Update HAL_PCD_IRQHandler() to get HCLK frequency before setting TRDT value
  • HAL QSPI update
    • Update to manage QSPI error management during DMA process
    • Improve the DMA transmit process by using QSPI TC interrupt instead of waiting loop on TC flag under DMA ISR
    • These two improvements require the following updates on user application:
      • Configure and enable the QSPI IRQ in HAL_QSPI_MspInit() function
      • In stm32f4xx_it.c file, QSPI_IRQHandler() function: add a call to HAL_QSPI_IRQHandler() function
      • Add and customize the Error Callback API: HAL_QSPI_ErrorCallback()
    • Add the management of non-blocking transfer abort service:HAL_QSPI_Abort_IT(). In this case the user must:
      • Add new callback HAL_QSPI_AbortCpltCallback() to inform user at the end of abort process
      • A new value of State in the HAL_QSPI_StateTypeDef provides the current state during the abort phase
    • Polling management update:
      • The Timeout value user must be estimated for the overall process duration: the Timeout measurement is cumulative.
    • Refer to the following examples, which describe the changes:
      • QSPI_ReadWrite_DMA
      • QSPI_MemoryMapped
      • QSPI_ExecuteInPlace
    • Add two new APIs for the QSPI fifo threshold:
      • HAL_QSPI_SetFifoThreshold(): configure the FIFO threshold of the QSPI
      • HAL_QSPI_GetFifoThreshold(): give the current FIFO threshold
    • Fix wrong data size management in HAL_QSPI_Receive_DMA()
  • HAL ADC update
    • Add new __HAL_ADC_PATH_INTERNAL_VBAT_DISABLE() macrofor STM32F42x and STM32F43x devices to providethe possibility to convert VrefInt channel when both VrefInt and Vbat channels are selected.
  • HAL SPDIFRXupdate
    • Overall driver update for wait on flag management optimization
  • HAL WWDGupdate
    • Overall rework of the driver for more efficient implementation
      • Remove the following APIs:
        • HAL_WWDG_Start()
        • HAL_WWDG_Start_IT()
        • HAL_WWDG_MspDeInit()
        • HAL_WWDG_GetState()
      • Update implementation:
        • HAL_WWDG_Init()
          • Anew parameter in the Init Structure:EWIMode
        • HAL_WWDG_MspInit()
        • HAL_WWDG_Refresh()
          • This function insures the reload of the counter
          • The "counter" parameter has been removed
        • HAL_WWDG_IRQHandler()
        • HAL_WWDG_EarlyWakeupCallback() is the new prototype of HAL_WWDG_WakeUpCallback()
    • Refer to the following example to identify the changes: WWDG_Example

V1.4.4 / 22-January-2016

MainChanges

  • HAL Generic update
    • stm32f4xx_hal_conf_template.h
      • Optimize HSE Startup Timeout value from 5000ms to 100 ms
      • Add new define LSE_STARTUP_TIMEOUT
      • Add new define USE_SPI_CRC for code cleanup when the CRC calculation is disabled.
    • Update HAL drivers to support MISRA C 2004 rule 10.6
    • Add new templatedriver to configure timebase using TIMER :
      • stm32f4xx_hal_timebase_tim_template.c
  • HAL CAN update
    • UpdateHAL_CAN_Transmit() and HAL_CAN_Transmit_IT() functions tounlock process when all Mailboxes are busy
  • HAL DSI update
    • UpdateHAL_DSI_SetPHYTimings() functions to use the correct mask
  • HAL UART update
    • Several update on HAL UART driver to implement the new UART state machine:
      • Add new field in UART_HandleTypeDef structure: "rxState", UART state information related to Rx Operations
      • Rename "state" field in UART_HandleTypeDef structure by "gstate": UART state information related to global Handle management and Tx Operations
      • Update UART process to manage the new UART states.
      • Update __HAL_UART_RESET_HANDLE_STATE() macroto handle the new UART state parameters (gState, rxState)
    • UpdateUART_BRR_SAMPLING16() and UART_BRR_SAMPLING8() Macros to fix wrong baudratecalculation.
  • HAL IRDA update
    • Several update on HAL IRDA driver to implement the new UART state machine:
      • Add new field in IRDA_HandleTypeDef structure: "rxState", IRDA state information related to Rx Operations
      • Rename "state" field in UART_HandleTypeDef structure by "gstate": IRDA state information related to global Handle management and Tx Operations
      • Update IRDA process to manage the new UART states.
      • Update __HAL_IRDA_RESET_HANDLE_STATE() macroto handle the new IRDA state parameters (gState, rxState)
    • Removal of IRDA_TIMEOUT_VALUE define
    • Update IRDA_BRR() Macro to fix wrong baudrate calculation
  • HAL SMARTCARD update
    • Several update on HAL SMARTCARD driver to implement the new UART state machine:
      • Add new field inSMARTCARD_HandleTypeDef structure: "rxState", SMARTCARDstate information related to Rx Operations
      • Rename "state" field in UART_HandleTypeDef structure by "gstate": SMARTCARDstate information related to global Handle management and Tx Operations
      • UpdateSMARTCARD process to manage the new UART states.
      • Update __HAL_SMARTCARD_RESET_HANDLE_STATE() macroto handle the newSMARTCARD state parameters (gState, rxState)
    • Update SMARTCARD_BRR() macro to fix wrong baudratecalculation
  • HAL RCC update
    • Add new default define value for HSI calibration "RCC_HSICALIBRATION_DEFAULT"
    • Optimize Internal oscillators and PLL startup timeout
    • Updateto avoid the disable for HSE/LSE oscillators before setting the new RCCHSE/LSE configuration and add the following notes inHAL_RCC_OscConfig() API description:
* @noteTransitions LSE Bypass toLSE On and LSE On to LSE Bypass are not
* supported by this API. User should request a transition to LSE Off
* first and then LSE On or LSE Bypass.
* @note Transition HSE Bypass to HSE Onand HSE On to HSE Bypass are not
* supported by this API. User should request a transition to HSE Off
* first and then HSE On or HSEBypass.
    • Optimize theHAL_RCC_ClockConfig() API implementation.
  • HAL DMA2D update
    • UpdateHAL_DMA2D_Abort() Function to end current DMA2D transfer properly
    • UpdateHAL_DMA2D_PollForTransfer() function to add poll for background CLUT loading(layer 0 and layer 1).
    • UpdateHAL_DMA2D_PollForTransfer() to set the corresponding ErrorCode in case of erroroccurrence
    • Update HAL_DMA2D_ConfigCLUT()function to fix wrong CLUT size and color mode settings
    • Removal of uselessmacro __HAL_DMA2D_DISABLE()
    • UpdateHAL_DMA2D_Suspend() to manage correctly the case where no transfer is on going
    • UpdateHAL_DMA2D_Resume()to manage correctly the case where no transfer is ongoing
    • UpdateHAL_DMA2D_Start_IT() to enable all required interrupts before enabling thetransfer.
    • AddHAL_DMA2D_CLUTLoad_IT() Function to allow loading a CLUT with interruptionmodel.
    • UpdateHAL_DMA2D_IRQHandler() to manage the following cases:
      • CLUT transfer complete
      • CLUT access error
      • Transfer watermark reached
    • Add new Callback APIs:
      • HAL_DMA2D_LineEventCallback() to signal a transfer watermark reached event
      • HAL_DMA2D_CLUTLoadingCpltCallback() to signal a CLUT loading completeevent
    • MiscellaneousImprovement:
      • Add "HAL_DMA2D_ERROR_CAE" new define for CLUT Access error management.
      • Add “assert_param” used for parameters check is now done on the top of theexported functions : before locking the process using __HAL_LOCK
  • HAL I2Cupdate
    • Add support of I2C repeated start feature:
      • With the following new API's
        • HAL_I2C_Master_Sequential_Transmit_IT()
        • HAL_I2C_Master_Sequential_Receive_IT()
        • HAL_I2C_Master_Abort_IT()
        • HAL_I2C_Slave_Sequential_Transmit_IT()
        • HAL_I2C_Slave_Sequential_Receive_IT()
        • HAL_I2C_EnableListen_IT()
        • HAL_I2C_DisableListen_IT()
      • Add new user callbacks:
        • HAL_I2C_ListenCpltCallback()
        • HAL_I2C_AddrCallback()
    • Update to generate STOP condition when a acknowledge failure error is detected
    • Several update on HAL I2C driver to implement the new I2C state machine:
      • Add new API to get the I2C mode:HAL_I2C_GetMode()
      • Update I2C process to manage the new I2C states.
    • Fix wrongbehaviour in single byte transmission
    • Update I2C_WaitOnFlagUntilTimeout()to manage the NACK feature.
    • UpdateI2Ctransmission process to support the case data size equal 0
  • HAL FMPI2C update
    • Add support of FMPI2C repeated start feature:
      • With the following new API's
        • HAL_FMPI2C_Master_Sequential_Transmit_IT()
        • HAL_FMPI2C_Master_Sequential_Receive_IT()
        • HAL_FMPI2C_Master_Abort_IT()
        • HAL_FMPI2C_Slave_Sequential_Transmit_IT()
        • HAL_FMPI2C_Slave_Sequential_Receive_IT()
        • HAL_FMPI2C_EnableListen_IT()
        • HAL_FMPI2C_DisableListen_IT()
      • Add new user callbacks:
        • HAL_FMPI2C_ListenCpltCallback()
        • HAL_FMPI2C_AddrCallback()
    • Several update on HAL I2C driver to implement the new I2C state machine:
      • Add new API to get the FMPI2C mode:HAL_FMPI2C_GetMode()
      • Update FMPI2C process to manage the new FMPI2C states.
  • HAL SPI update
    • Major Update to improve performance inpolling/interrupt mode to reach max frequency:
      • Polling mode :
        • Replace use of SPI_WaitOnFlagUnitTimeout() funnction by "if" statement to check on RXNE/TXE flage while transferring data.
        • Use API data pointer instead of SPI handle data pointer.
        • Use a Goto implementation instead of "if..else" statements.
      • Interrupt mode
        • Minimize access on SPI registers.
        • Split the SPI modes into dedicated static functions to minimize checking statements under HAL_IRQHandler():
          • 1lines/2lines modes
          • 8 bit/ 16 bits data formats
          • CRC calculation enabled/disabled.
        • Remove waiting loop under ISR when closing the communication.
      • All modes:
        • Adding switch USE_SPI_CRC to minimize number of statements when CRC calculation is disabled.
        • Update Timeout management to check on global process.
        • Update Error code management in all processes.
    • Add note to the max frequencies reached in all modes.
    • Add note about Master Receive mode restrictions :
      • Master Receive mode restriction:
        (#) In Master unidirectional receive-only mode(MSTR =1, BIDIMODE=0, RXONLY=0) or
        bidirectional receivemode (MSTR=1, BIDIMODE=1, BIDIOE=0), to ensure that the SPI
        does not initiate a newtransfer the following procedure has to be respected:
        (##) HAL_SPI_DeInit()
        (##) HAL_SPI_Init()
  • HAL SAIupdate
    • Update for proper management of the external synchronization input selection
      • update ofHAL_SAI_Init () funciton
      • update definition of SAI_Block_SyncExt and SAI_Block_Synchronization groups
    • Update SAI_SLOTACTIVE_X defines values
    • UpdateHAL_SAI_Init() function for proper companding mode management
    • Update SAI_Transmit_ITxxBit() functions to add the check on transfer counter before writing new data to SAIx_DR registers
    • Update SAI_FillFifo() function to avoid issue when the number of data to transmit is smaller than the FIFO size
    • Update HAL_SAI_EnableRxMuteMode() function for proper mute management
    • Update SAI_InitPCM() function to support 24bits configuration
  • HAL ETH update
    • Removal of ETH MAC debug register defines
  • HAL FLASH update
    • Update FLASH_MassErase() function to apply correctlyvoltage range parameter
  • HAL I2S update
    • Update I2S_DMATxCplt() and I2S_DMARxCplt() to manageproperly FullDuplex mode without any risk of missing data.
  • LL FMC update
    • Update the FMC_NORSRAM_Init() function to useBurstAccessMode field properly
  • LL FSMC update
    • Update the FSMC_NORSRAM_Init() function to useBurstAccessMode field properly

V1.4.4 / 11-December-2015

MainChanges
  • HAL Generic update
    • Update HAL weak empty callbacks to prevent unused argument compilation warnings with some compilers by calling the following line:
      • UNUSED(hppp);
    • STM32Fxxx_User_Manual.chm files regenerated for HAL V1.4.3
  • HAL ETH update
    • Update HAL_ETH_Init() function to add timeout on the Software reset management

V1.4.2 / 10-November-2015

Main Changes

  • General updates to fix known defects and enhancements implementation
  • One change done on the HAL CRYP requires an update on the application code based on HAL V1.4.1
    • Update HAL_CRYP_DESECB_Decrypt() API toinvert pPlainData and pCypherData parameters
  • HAL generic update
    • UpdateHAL weak empty callbacks to prevent unused argument compilationwarnings with some compilers by calling the following line:
      • UNUSED(hppp);
  • HAL CORTEX update
    • Remove duplication for __HAL_CORTEX_SYSTICKCLK_CONFIG() macro
  • HAL HASH update
    • Rename HAL_HASH_STATETypeDef to HAL_HASH_StateTypeDef
    • Rename HAL_HASH_PhaseTypeDef to HAL_HASH_PhaseTypeDef
  • HAL RCC update
    • Add new macros __HAL_RCC_PPP_IS_CLK_ENABLED() to check on Clock enable/disable status
    • Update __HAL_RCC_USB_OTG_FS_CLK_DISABLE() macro to remove the disable for the SYSCFG
    • Update HAL_RCC_MCOConfig() API to use new defines for the GPIO Speed
    • Generic update to improve the PLLVCO min value(100MHz): PLLN, PLLI2S and PLLSAI min value is 50 instead of 192
  • HAL FLASH update
    • __HAL_FLASH_INSTRUCTION_CACHE_RESET() macro: update toreset ICRST bit in the ACR register after setting it.
    • Update to support until 15 FLASH wait state (FLASH_LATENCY_15) for STM32F446xx devices
  • HAL CRYPupdate

    • Update HAL_CRYP_DESECB_Decrypt() API to fix the inverted pPlainData and pCypherData parameters issue
  • HAL I2S update
    • Update HAL_I2S_Init() APIto call __HAL_RCC_I2S_CONFIG() macro when external I2S clock is selected
  • HAL LTDC update
    • Update HAL_LTDC_SetWindowPosition() APIto configure Immediatereloadregister instead of vertical blanking reload register.
  • HAL TIM update
    • Update HAL_TIM_ConfigClockSource() API tocheck only the required parameters
  • HAL NAND update
    • Update HAL_NAND_Read_Page()/HAL_NAND_Write_Page()/HAL_NAND_Read_SpareArea() APIs to manage correctly the NAND Page access
  • HAL CAN update
    • Update to use "=" instead of "|=" to clear flags in the MSR, TSR, RF0R and RF1R registers
  • HAL HCD update
    • Fix typo in __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE() macro implementation
  • HAL PCD update
    • Update HAL_PCD_IRQHandler() API to avoid issue whenDMA mode enabled for Status Phase IN stage
  • LL FMC update
    • Update the FMC_NORSRAM_Extended_Timing_Init() API to remove the check onCLKDIvison and DataLatency parameters
    • Update the FMC_NORSRAM_Init() API to add a check on the PageSize parameter for STM32F42/43xx devices
  • LL FSMC update
    • Update the FSMC_NORSRAM_Extended_Timing_Init() API to remove the check onCLKDIvison and DataLatency parameters

V1.4.1 / 09-October-2015

Main Changes

  • HAL DSI update
    • Update TCCR registerassigned value inHAL_DSI_ConfigHostTimeouts() function
    • Update WPCR registerassigned valuein HAL_DSI_Init(), HAL_DSI_SetSlewRateAndDelayTuning(),HAL_DSI_SetSlewRateAndDelayTuning(), HAL_DSI_SetLowPowerRXFilter() /HAL_DSI_SetSDD(), HAL_DSI_SetLanePinsConfiguration(),HAL_DSI_SetPHYTimings(), HAL_DSI_ForceTXStopMode(),HAL_DSI_ForceRXLowPower(), HAL_DSI_ForceDataLanesInRX(),HAL_DSI_SetPullDown() and HAL_DSI_SetContentionDetectionOff() functions
    • Update DSI_HS_PM_ENABLE define value
    • Implementworkaround for the hardware limitation: “The time to activate the clockbetween HS transmissions is not calculated correctly”

V1.4.0 / 14-August-2015

Main Changes

  • Add support ofSTM32F469xx, STM32F479xx, STM32F410Cx, STM32F410Rx and STM32F410Tx devices
  • General updates to fix known defects and enhancements implementation
  • Add new HAL drivers for DSIandLPTIM peripherals
  • HAL ADC update
    • Rename ADC_CLOCKPRESCALER_PCLK_DIV2 define to ADC_CLOCK_SYNC_PCLK_DIV2
    • Rename ADC_CLOCKPRESCALER_PCLK_DIV4 define to ADC_CLOCK_SYNC_PCLK_DIV4
    • Rename ADC_CLOCKPRESCALER_PCLK_DIV6 define to ADC_CLOCK_SYNC_PCLK_DIV6
    • Rename ADC_CLOCKPRESCALER_PCLK_DIV8 define to ADC_CLOCK_SYNC_PCLK_DIV8
  • HAL CORTEX update
    • Add specific API for MPU management
      • add MPU_Region_InitTypeDef structure
      • add new function HAL_MPU_ConfigRegion()
  • HAL DMA update
    • Overall driver update for code optimization
      • add StreamBaseAddress and StreamIndex new fields in the DMA_HandleTypeDef structure
      • add DMA_Base_Registers private structure
      • add static function DMA_CalcBaseAndBitshift()
      • update HAL_DMA_Init() function to use the new added static function
      • update HAL_DMA_DeInit() function to optimize clear flag operations
      • update HAL_DMA_Start_IT() function to optimize interrupts enable
      • update HAL_DMA_PollForTransfer() function to optimize check on flags
      • update HAL_DMA_IRQHandler() function to optimize interrupt flag management
  • HAL FLASH update
    • update HAL_FLASH_Program_IT() function by removing the pending flag clear
    • update HAL_FLASH_IRQHandler() function to improve erase operation procedure
    • update FLASH_WaitForLastOperation() function by checking on end of operation flag
  • HAL GPIO update
    • Rename GPIO_SPEED_LOW define to GPIO_SPEED_FREQ_LOW
    • Rename GPIO_SPEED_MEDIUM define to GPIO_SPEED_FREQ_MEDIUM
    • Rename GPIO_SPEED_FAST define to GPIO_SPEED_FREQ_HIGH
    • Rename GPIO_SPEED_HIGH define to GPIO_SPEED_FREQ_VERY_HIGH
  • HAL I2S update
    • Move I2S_Clock_Source defines to extension file to properly add the support of STM32F410xx devices
  • HAL LTDC update
    • rename HAL_LTDC_LineEvenCallback() function to HAL_LTDC_LineEventCallback()
    • add new function HAL_LTDC_SetPitch()
    • addnew functions HAL_LTDC_StructInitFromVideoConfig() andHAL_LTDC_StructInitFromAdaptedCommandConfig() applicable only toSTM32F469xx and STM32F479xx devices
  • HAL PWR update
    • move __HAL_PWR_VOLTAGESCALING_CONFIG() macro to extension file
    • move PWR_WAKEUP_PIN2 define to extension file
    • add PWR_WAKEUP_PIN3 define, applicable only to STM32F10xx devices
    • addnew functions HAL_PWREx_EnableWakeUpPinPolarityRisingEdge() andHAL_PWREx_EnableWakeUpPinPolarityFallingEdge(), applicable only to STM32F469xx and STM32F479xx devices
  • HAL RTC update
    • Update HAL_RTCEx_SetWakeUpTimer() and HAL_RTCEx_SetWakeUpTimer_IT() functions to properly check on the WUTWF flag
  • HAL TIM update
    • addnew defines TIM_SYSTEMBREAKINPUT_HARDFAULT,TIM_SYSTEMBREAKINPUT_PVD and TIM_SYSTEMBREAKINPUT_HARDFAULT_PVD,applicable only to STM32F410xx devices

V1.3.2 / 26-June-2015

Main Changes

  • General updates to fix known defects and enhancements implementation
  • One changes done on the HAL may require an update on the application code based on HAL V1.3.1
    • HASH IT process: update to call the HAL_HASH_InCpltCallback() at the end of the complete buffer instead of every each 512 bits
  • HAL RCC update
    • HAL_RCCEx_PeriphCLKConfig() updates:
      • Updatethe LSE check condition after backup domain reset: update tocheckLSE ready flag when LSE oscillator is already enabledinstead of check on LSE oscillator only when LSE is used as RTC clocksource
      • Use the right macro to check the PLLI2SQ parameters
  • HAL RTC update
    • __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG() macro: fix implementation issue
    • __HAL_RTC_ALARM_GET_IT(),__HAL_RTC_ALARM_CLEAR_FLAG(), __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(),__HAL_RTC_TIMESTAMP_CLEAR_FLAG() and __HAL_RTC_TAMPER_CLEAR_FLAG()macros implementation changed: remove unused cast
    • IS_RTC_TAMPER() macro: update to use literal instead of hardcoded value
    • Add new parameter SecondFraction in RTC_TimeTypeDef structure
    • HAL_RTC_GetTime() API update to support the new parameterSecondFraction
  • HAL ADC update
    • Addnew literal: ADC_INJECTED_SOFTWARE_START to be used as possible valuefor the ExternalTrigInjecConvEdge parameter in the ADC_InitTypeDefstructure to select the ADC software trigger mode.
  • HAL FLASH update
    • FLASH_OB_GetRDP() API update to return uint8_t instead of FlagStatus
    • __HAL_FLASH_GET_LATENCY() new macro add to get the flash latency
  • HAL SPI update
    • Fix the wrong definition of HAL_SPI_ERROR_FLAG literal
  • HAL I2S update
    • HAL_I2S_Transmit() API update to check on busy flag only for I2S slave mode
  • HAL CRC update
    • __HAL_CRC_SET_IDR() macro implementation change to use WRITE_REG() instead of MODIFY_REG()
  • HAL DMA2D update
    • HAL_DMA2D_ConfigLayer() API update to use "=" instead of "|=" to erase BGCOLR and FGCOLR registers before setting the new configuration
  • HAL HASH update
    • HAL_HASH_MODE_Start_IT()(MODE stands for MD5, SHA1, SHA224 and SHA36) updates:
      • Fixprocessing fail for small input buffers
      • Updateto unlock the process and callreturn HAL_OKat the end of HASHprocessing to avoid incorrectly repeating software
      • Update to properly manage the HashITCounter
      • Update to call the HAL_HASH_InCpltCallback() at the end of the complete buffer instead of every each 512 bits
    • __HAL_HASH_GET_FLAG() update to check the right register when the DINNE flag is selected
    • HAL_HASH_SHA1_Accumulate() updates:
      • Add acall to the new IS_HASH_SHA1_BUFFER_SIZE() macro to check the size parameter.
      • Add the following note in API description

* @note Input buffer size in bytes must be a multiple of 4 otherwise the digest computation is corrupted.

  • HAL RTC update
    • Update to definehardware independent literals names:
      • Rename RTC_TAMPERPIN_PC13 by RTC_TAMPERPIN_DEFAULT
      • Rename RTC_TAMPERPIN_PA0 by RTC_TAMPERPIN_POS1
      • Rename RTC_TAMPERPIN_PI8 by RTC_TAMPERPIN_POS1
      • Rename RTC_TIMESTAMPPIN_PC13 by RTC_TIMESTAMPPIN_DEFAULT
      • Rename RTC_TIMESTAMPPIN_PA0 by RTC_TIMESTAMPPIN_POS1
      • Rename RTC_TIMESTAMPPIN_PI8 by RTC_TIMESTAMPPIN_POS1
  • HAL ETH update
    • Remove duplicatedIS_ETH_DUPLEX_MODE() and IS_ETH_RX_MODE() macros
    • Remove illegal space ETH_MAC_READCONTROLLER_FLUSHING macro
    • Update ETH_MAC_READCONTROLLER_XXX defined values (XXX can be IDLE, READING_DATA and READING_STATUS)
  • HAL PCD update
    • HAL_PCD_IRQHandler API: fix the bad Configuration of Turnaround Time
  • HAL HCD update
    • Update to use local variablein USB Host channel re-activation
  • LL FMC update
    • FMC_SDRAM_SendCommand() API: remove the following line: return HAL_ERROR;
  • LL USB update
    • USB_FlushTxFifoAPI: update to flush all Tx FIFO
    • Update to use local variablein USB Host channel re-activation

V1.3.1 / 25-Mars-2015

Main Changes

  • HAL PWR update
    • Fix compilation issue with STM32F417xx product: updateSTM32F17xx by STM32F417xx
  • HAL SPI update
    • Remove unused variable to avoid warning with TrueSTUDIO
  • HAL I2C update
    • I2C Polling/IT/DMA processes: move thewait loop on busy flag at the top of the processes, to ensure that software not perform any write access to I2C_CR1 register before hardware clearingSTOP bit and to avoid also the waiting loop on BUSY flag under I2C/DMA ISR.
    • Update busy flagTimeout value
    • I2C Master Receive Processes update to disable ACK before generate the STOP
  • HAL DAC update
    • FixV1.3.0 regression issue with DAC software trigger configuration

V1.3.0 / 09-Mars-2015

Main Changes

(Video) Tutorial 1: LED Blinking STM32F4 Discovery Board - GPIO Pins with HAL Drivers

  • Add support ofSTM32F446xx devices
  • General updates to fix known defects and enhancements implementation
  • Add new HAL drivers for CEC, QSPI, FMPI2C and SPDIFRX peripherals
  • Two changes done on the HAL requires an update on the application code based on HAL V1.2.0
    • Overall SAI driver rework to have exhaustive support of the peripheral features: details are provided in HAL SAI update section below --> Compatibility with previous version is impacted
    • CRYP driver updated to support multi instance,so user mustensure that the new parameterInstance is initalized in his application(CRYPHandle.Instance = CRYP)
  • HAL Generic update
    • stm32f4xx_hal_def.h
      • Remove NULL definitionand add include for stdio.h
    • stm32_hal_legacy.h
      • Updatemethod to managedeference in alias implementation between all STM32 families
    • stm32f4xx_hal_ppp.c
      • HAL_PPP_Init(): update to force the HAL_PPP_STATE_RESET before calling the HAL_PPP_MspInit()
  • HAL RCC update
    • Add new function HAL_RCCEx_GetPeriphCLKFreq()
    • Move RCC_PLLInitTypeDef structure to extension file and add the new PLLR field specific to STM32F446xx devices
    • Move the following functions to extension file and add a __weak attribute in generic driver : this update is related to new system clock source (PLL/PLLR) added and only available for STM32F44xx devices
      • HAL_RCC_OscConfig()
      • HAL_RCC_GetSysClockFreq()
      • HAL_RCC_GetOscConfig()
    • Move the following macro to extension file as they have device dependent implementation
      • __HAL_RCC_PLL_CONFIG()
      • __HAL_RCC_PLLI2S_CONFIG()
      • __HAL_RCC_I2S_CONFIG()
    • Add new structure RCC_PLLI2SInitTypeDef containing new PLLI2S division factors used only w/ STM32F446xx devices
    • Add new structure RCC_PLLSAIInitTypeDef containing new PLLSAI division factors used only w/ STM32F446xx devices
    • Add new RCC_PeriphCLKInitTypeDef to support the peripheral source clock selection for (I2S, SAI, SDIO, FMPI2C, CEC, SPDIFRX and CLK48)
    • Update the HAL_RCCEx_PeriphCLKConfig() and HAL_RCCEx_GetPeriphCLKConfig() functions to support the new peripherals Clock source selection
    • Add __HAL_RCC_PLL_CONFIG() macro (the number of parameter and the implementation depend on the device part number)
    • Add __HAL_RCC_PLLI2S_CONFIG() macro(the number of parameter and the implementation depend on device part number)
    • Update __HAL_RCC_PLLSAI_CONFIG() macro to support new PLLSAI factors (PLLSAIM and PLLSAIP)
    • Add new macros for clock enable/Disable for the following peripherals (CEC, SPDIFRX, SAI2, QUADSPI)
    • Add the following new macros for clock source selection :
      • __HAL_RCC_SAI1_CONFIG() / __HAL_RCC_GET_SAI1_SOURCE()
      • __HAL_RCC_SAI2_CONFIG() / __HAL_RCC_GET_SAI2_SOURCE()
      • __HAL_RCC_I2S1_CONFIG() / __HAL_RCC_GET_I2S1_SOURCE()
      • __HAL_RCC_I2S2_CONFIG() / __HAL_RCC_GET_I2S2_SOURCE()
      • __HAL_RCC_CEC_CONFIG() / __HAL_RCC__GET_CEC_SOURCE()
      • __HAL_RCC_FMPI2C1_CONFIG() / __HAL_RCC_GET_FMPI2C1_SOURCE()
      • __HAL_RCC_SDIO_CONFIG() / __HAL_RCC_GET_SDIO_SOURCE()
      • __HAL_RCC_CLK48_CONFIG() / __HAL_RCC_GET_CLK48_SOURCE()
      • __HAL_RCC_SPDIFRXCLK_CONFIG() / __HAL_RCC_GET_SPDIFRX_SOURCE()
    • __HAL_RCC_PPP_CLK_ENABLE(): Implement workaround to cover RCC limitation regarding peripheral enable delay
    • HAL_RCC_OscConfig() fix issues:
      • Add a check on LSERDY flag when LSE_BYPASS is selected as new state for LSE oscillator.
    • Add newpossible valueRCC_PERIPHCLK_PLLI2S to be selected as PeriphClockSelection parameterin the RCC_PeriphCLKInitTypeDef structure to allow thepossibility to output the PLLI2S on MCO without activating the I2S orthe SAI.
    • __HAL_RCC_HSE_CONFIG() macro: add the comment below:

* @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not supported by this macro.
* User should request atransition to HSE Off first and then HSE On or HSE Bypass.

    • __HAL_RCC_LSE_CONFIG() macro: add the comment below:

* @note Transition LSE Bypass to LSE On and LSE On to LSE Bypass are not supported by this macro.
* User should request atransition to LSE Off first and then LSE On or LSE Bypass.

    • Add the following new macros for PLLsource and PLLMselection :
      • __HAL_RCC_PLL_PLLSOURCE_CONFIG()
      • __HAL_RCC_PLL_PLLM_CONFIG()
    • Macros rename:
      • HAL_RCC_OTGHS_FORCE_RESET() byHAL_RCC_USB_OTG_HS_FORCE_RESET()
      • HAL_RCC_OTGHS_RELEASE_RESET() byHAL_RCC_USB_OTG_HS_RELEASE_RESET()
      • HAL_RCC_OTGHS_CLK_SLEEP_ENABLE() byHAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE()
      • HAL_RCC_OTGHS_CLK_SLEEP_DISABLE() byHAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE()
      • HAL_RCC_OTGHSULPI_CLK_SLEEP_ENABLE() byHAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE()
      • HAL_RCC_OTGHSULPI_CLK_SLEEP_DISABLE() byHAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE()
    • Add__HAL_RCC_SYSCLK_CONFIG() new macro to configure the system clock source (SYSCLK)
    • __HAL_RCC_GET_SYSCLK_SOURCE() updates:
      • Add new RCC Literals:
        • RCC_SYSCLKSOURCE_STATUS_HSI
        • RCC_SYSCLKSOURCE_STATUS_HSE
        • RCC_SYSCLKSOURCE_STATUS_PLLCLK
        • RCC_SYSCLKSOURCE_STATUS_PLLRCLK
      • Update macro description to refer to the literals above
  • HAL PWR update
    • Add new define PWR_WAKEUP_PIN2
    • Add new API to Control/Get VOSbits of CR register
      • HAL_PWR_HAL_PWREx_ControlVoltageScaling()
      • HAL_PWREx_GetVoltageRange()
    • __HAL_PWR_ VOLTAGESCALING_CONFIG(): Implement workaround to cover VOS limitation delay when PLL is enabled after setting the VOS configuration
  • HAL GPIO update
    • Add the new Alternate functions literals related to remap for SPI, USART, I2C, SPDIFRX, CEC and QSPI
    • HAL_GPIO_DeInit():Updateto check if GPIO Pin x is already used in EXTI mode onanother GPIO Port before De-Initialize the EXTI registers
  • HAL FLASH update
    • __HAL_FLASH_INSTRUCTION_CACHE_RESET() macro: update toreset ICRST bit in the ACR register after setting it.
    • __HAL_FLASH_DATA_CACHE_RESET()macro: update toreset DCRST bit in the ACR register after setting it.
  • HAL ADC update
    • Add new literal: ADC_SOFTWARE_START to be used as possible value for the ExternalTrigConv parameter in the ADC_InitTypeDef structure to select the ADC software trigger mode.
    • IS_ADC_CHANNEL() macro update to don't assert stop the ADC_CHANNEL_TEMPSENSOR value
    • HAL_ADC_PollForConversion():update to manage particular case when ADC configured in DMA mode andADC sequencer with several ranks and polling for end of each conversion
    • HAL_ADC_Start()/HAL_ADC_Start_IT() /HAL_ADC_Start_DMA() update:
      • unlock the process before starting the ADC software conversion.
      • Optimize the ADC stabilization delays
    • __HAL_ADC_GET_IT_SOURCE() update macro implementation
    • Add more details in 'How to use this driver' section
  • HAL DAC update
  • HAL CAN update
    • CanTxMsgTypeDef structure: updateto use uint8_tData[8] instead of uint32_tData[8]
    • CanRxMsgTypeDef structure: updateto use uint8_tData[8] instead of uint32_tData[8]
  • HAL RTC update
    • Update to useCMSIS mask definition instead of hardcoded values (EXTI_IMR_IM17, EXTI_IMR_IM19..)
  • HAL LTDC update
    • LTDC_SetConfig() update to allow the drawing ofpartial bitmap in active layer.
  • HAL USART update
    • HAL_USART_Init() fix USART baud rateconfiguration issue: USART baud rate is twice Higher than expected
  • HAL SMARTCARD update
    • HAL_SMARTCARD_Transmit_IT() update to force the disable for the ERR interrupt to avoid the OVR interrupt
    • HAL_SMARTCARD_IRQHandler() updatecheck condition fortransmission end
    • Clean up: remove thefollowing literals that aren't used in smartcard mode
      • SMARTCARD_PARITY_NONE
      • SMARTCARD_WORDLENGTH_8B
      • SMARTCARD_STOPBITS_1
      • SMARTCADR_STOPBITS_2
  • HAL SPI update
    • HAL_SPI_Transmit_DMA()/HAL_SPI_Receive_DMA()/HAL_SPI_TarnsmitReceive_DMA() update to unlock theprocess before enabling the SPI peripheral
    • HAL_SPI_Transmit_DMA() update to manage correctly the DMA RX stream in SPI Full duplex mode
    • Section SPI_Exported_Functions_Group2update to remove duplication in *.chm UM
  • HAL CRYP update
    • Update to manage multi instance:
      • Add new parameter Instance in the CRYP_HandleTypeDef Handle structure.
      • Add new parameter in all HAL CRYP macros
        • example:__HAL_CRYP_ENABLE() updated by __HAL_CRYP_ENABLE(__HANDLE__)
  • HAL DCMI update
    • Add an extension driverstm32f4xx_hal_dcmi_ex.c/h to manage the support of new Black and White feature
    • Add __weak attribute for HAL_DCMI_Init() function and add a new implementation in the extension driver to manage the black and white configuration only available in the STM32F446xx devices.
    • MoveDCMI_InitTypeDef structure to extension driver and addthefollowingnew fields related to black and white feature:ByteSelectMode,ByteSelectStart,LineSelectMode and LineSelectStart
  • HAL PCD update
    • Add the support of LPM feature
      • add PCD_LPM_StateTypeDef enum
      • update PCD_HandleTypeDef structure to support the LPM feature
      • addnew functions HAL_PCDEx_ActivateLPM(), HAL_PCDEx_DeActivateLPM() andHAL_PCDEx_LPM_Callback() in the stm32f4xx_hal_pcd_ex.h/.c files
  • HAL TIM update
    • Add TIM_TIM11_SPDIFRX define
  • HAL SAI update
    • Add stm32f4xx_hal_sai_ex.h/.c files for the SAI_BlockSynchroConfig() and the SAI_GetInputClock() management
    • Add new defines HAL_SAI_ERROR_AFSDET, HAL_SAI_ERROR_LFSDET, HAL_SAI_ERROR_CNREADY, HAL_SAI_ERROR_WCKCFG, HAL_SAI_ERROR_TIMEOUT in the SAI_Error_Code group
    • Add new defines SAI_SYNCEXT_DISABLE, SAI_SYNCEXT_IN_ENABLE, SAI_SYNCEXT_OUTBLOCKA_ENABLE, SAI_SYNCEXT_OUTBLOCKB_ENABLE for the SAI External synchronization
    • Add new defines SAI_I2S_STANDARD, SAI_I2S_MSBJUSTIFIED, SAI_I2S_LSBJUSTIFIED, SAI_PCM_LONG and SAI_PCM_SHORT for the SAI Supported protocol
    • Add new defines SAI_PROTOCOL_DATASIZE_16BIT, SAI_PROTOCOL_DATASIZE_16BITEXTENDED, SAI_PROTOCOL_DATASIZE_24BIT and SAI_PROTOCOL_DATASIZE_32BIT for SAI protocol data size
    • Add SAI Callback prototype definition
    • UpdateSAI_InitTypeDef structure by adding new fields: SynchroExt, Mckdiv, MonoStereoMode, CompandingMode, TriState
    • Update SAI_HandleTypeDef structure:
      • removeuint16_t *pTxBuffPtr, *pRxBuffPtr, TxXferSize, RxXferSize, TxXferCountand RxXferCount and replace them respectively by uint8_t *pBuffPtr,uint16_t XferSizeand uint16_t XferCount
      • add mutecallback field
      • add struct __SAI_HandleTypeDef *hsai field
    • Remove SAI_CLKSOURCE_PLLR and SAI_CLOCK_PLLSRC defines
    • Add SAI_CLKSOURCE_NA define
    • Add SAI_AUDIO_FREQUENCY_MCKDIV define
    • Add SAI_SPDIF_PROTOCOL define
    • Add SAI_SYNCHRONOUS_EXT define
    • Addnew functions HAL_SAI_InitProtocol(), HAL_SAI_Abort(),HAL_SAI_EnableTxMuteMode(), HAL_SAI_DisableTxMuteMode(),HAL_SAI_EnableRxMuteMode(), HAL_SAI_DisableRxMuteMode()
    • UpdateHAL_SAI_Transmit(), HAL_SAI_Receive(), HAL_SAI_Transmit_IT(),HAL_SAI_Receive_IT(), HAL_SAI_Transmit_DMA(), HAL_SAI_Receive_DMA()functions to use uint8_t *pData instead of uint16_t *pData --> This update is mainly impacting the compatibility with previous driver version.
  • HAL I2S update
    • Split the following functionsbetween Generic and Extended API based on full duplex management and add the attribute __weak in the Generic API
      • HAL_I2S_Init(), HAL_I2S_DMAPause(),HAL_I2S_DMAStop(),HAL_I2S_DMAResume(),HAL_I2S_IRQHandle()
    • Move the following static functions from generic to extension driver
      • I2S_DMARxCplt() and I2S_DMATxCplt()
    • Remove static attribute from I2S_Transmit_IT() and I2S_Receive_IT() functions
    • Move I2SxEXT() macro to extension file
    • Add I2S_CLOCK_PLLR and I2S_CLOCK_PLLSRC defines for I2S clock source
    • Add new function I2S_GetInputClock()
  • HAL LL FMC update
    • Add WriteFifo and PageSize fields in the FMC_NORSRAM_InitTypeDef structure
    • AddFMC_PAGE_SIZE_NONE, FMC_PAGE_SIZE_128, FMC_PAGE_SIZE_256,FMC_PAGE_SIZE_1024, FMC_WRITE_FIFO_DISABLE, FMC_WRITE_FIFO_ENABLEdefines
    • Update FMC_NORSRAM_Init(), FMC_NORSRAM_DeInit() andFMC_NORSRAM_Extended_Timing_Init()functions
  • HAL LL USB update
    • Update USB_OTG_CfgTypeDef structure to support LPM, lpm_enable field added
    • Update USB_HostInit() and USB_DevInit() functions to support the VBUS Sensing B activation

V1.2.0 / 26-December-2014

Main Changes

  • Maintenance release to fix known defects and enhancements implementation
  • Macros and literals renaming to ensure compatibles across STM32 series, backward compatibility maintained thanks to new added file stm32_hal_legacy.h under /Inc/Legacy
  • Add *.chm UM for all drivers, a UM is provided for each superset RPN
  • Update drivers to be C++ compliant
  • Several update on source code formatting, for better UM generation (i.e. Doxygen tags updated)
  • Two changes done on the HAL requires an update on the application code based on HAL V1.1.0
    • LSI_VALUE constant has been corrected in stm32f4xx_hal_conf.h file, its value changed from 40 KHz to 32 KHz
    • UART, USART, IRDA and SMARTCARD (referenced as PPP here below) drivers: in DMA transmit process, the code has been updated to avoid waiting on TC flag under DMA ISR, PPP TC interrupt is used instead. Below the update to be done on user application:
      • Configure and enable the USART IRQ in HAL_PPP_MspInit() function
      • In stm32f4xx_it.c file, PPP_IRQHandler() function: add a call to HAL_PPP_IRQHandler() function
  • HAL generic update
    • stm32f4xx_hal_def.h
      • Update NULL definition to fix C++ compilation issue
      • AddUNUSED() macro
      • Add a new define __NOINLINE to be used for theno inlinecode independent from tool chain

    • stm32f4xx_hal_conf_template.h
      • LSI_VALUE constant has been corrected, its value changed from 40 KHz to 32 KHz
    • Update all macros and literals naming to be uper case
    • ErrorCode parameter in PPP_HandleTypeDef structure updated touint32_t instead ofenum HAL_PPP_ErrorTypeDef
    • Removethe unused FLAG and IT assert macros
  • HAL ADCupdate
    • Fixtemperature sensor channel configuration issue for STM32F427/437xx andSTM32F429/439xx devices

  • HAL DAC update
    • HAL_DAC_ConfigChannel():update the access to the DAC peripheral registers via the hdac handle instance

    • HAL_DAC_IRQHandler(): update to check on both DAC_FLAG_DMAUDR1 and DAC_FLAG_DMAUDR2
    • HAL_DACEx_NoiseWaveGenerate(): update to reset DAC CR register before setting the new DAC configuration
    • HAL_DACEx_TriangleWaveGenerate(): update to reset DAC CR register before setting the new DAC configuration
  • HAL CANupdate
    • Unlock the CAN process when communication erroroccurred

  • HAL CORTEXupdate
    • Add new macro IS_NVIC_DEVICE_IRQ() to check on negative values of IRQn parameter
  • HAL CRYPupdate

    • HAL_CRYP_DESECB_Decrypt_DMA(): fix the inverted pPlainData and pCypherData parameters issue
    • CRYPEx_GCMCCM_SetInitVector(): remove theIVSize parameter as the key length 192bits and 256bits are not supported by this version
    • Addrestrictionfor the CCM Encrypt/Decrypt API's that only DataType equal to 8bits is supported
    • HAL_CRYPEx_AESGCM_Finish():
      • Addrestriction that theimplementation is limited to 32bits inputs data length (Plain/Cyphertext, Header) compared with GCM stadardsspecifications (800-38D)
      • Update Size parameter on 32bits instead of 16bits
      • Fix issue with 16-bit Data Type: update to use intrinsic __ROR() instead of __REV16()
  • HAL DCMI update

    • HAL_DCMI_ConfigCROP(): Invertassert macros to check Y0 and Ysize parameters

  • HAL DMA update

    • HAL_DMA_Init():Updateto clearthe DBM bit in the SxCR register before setting the new configuration

    • DMA_SetConfig(): addto clearthe DBM bit in the SxCR register
  • HAL FLASH update

    (Video) Getting started with HAL: STM32F4 Discovery Blink LEDs

    • Add "HAL_" prefix in the defined values for the FLASH error code
      • Example:FLASH_ERROR_PGP renamed byHAL_FLASH_ERROR_PGP
    • Clearthe Flash ErrorCode in the FLASH_WaitForLastOperation() function
    • Update FLASH_SetErrorCode() function to use"|=" operant to update the Flash ErrorCode parameter in the FLASH handle
    • IS_FLASH_ADDRESS(): Update the macro check using'<=' condition instead of '<'
    • IS_OPTIONBYTE(): Update the macro check using'<=' condition instead of '<'
    • Add"FLASH_" prefix in the defined values of FLASH Type Program parameter
      • Example:TYPEPROGRAM_BYTE renamed by FLASH_TYPEPROGRAM_BYTE
    • Add"FLASH_" prefix in the defined values of FLASH Type Erase parameter
      • Example:TYPEERASE_SECTORS renamed by FLASH_TYPEERASE_SECTORS
    • Add"FLASH_" prefix in the defined values of FLASH Voltage Range parameter
      • Example: VOLTAGE_RANGE_1 renamed by FLASH_VOLTAGE_RANGE_1
    • Add"OB_" prefix in the defined values of FLASH WRP State parameter
      • Example: WRPSTATE_ENABLE renamed by OB_WRPSTATE_ENABLE
    • Add"OB_" prefix in the defined values of the FLASH PCROP State parameter
      • PCROPSTATE_DISABLE updated by OB_PCROP_STATE_DISABLE
      • PCROPSTATE_ENABLE updatedby OB_PCROP_STATE_ENABLE
    • Change "OBEX" prefix by "OPTIONBYTE" prefix in these defines:
      • OBEX_PCROP by OPTIONBYTE_PCROP
      • OBEX_BOOTCONFIG by OPTIONBYTE_BOOTCONFIG
  • HAL ETH update

    • Fix macros naming typo
      • Update __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER() by __HAL_ETH_EXTI_SET_RISING_EDGE_TRIGGER()
      • Update __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER() by__HAL_ETH_EXTI_SET_FALLING_EDGE_TRIGGER()
  • HAL PWRupdate

    • Add new API to manage SLEEPONEXIT and SEVONPEND bits of SCR register
      • HAL_PWR_DisableSleepOnExit()
      • HAL_PWR_EnableSleepOnExit()
      • HAL_PWR_EnableSEVOnPend()
      • HAL_PWR_DisableSEVOnPend()
    • HAL_PWR_EnterSTOPMode()
      • Updateto clear the CORTEX SLEEPDEEP bit ofSCR register before entering in sleep mode
      • Updateusage of __WFE() in low power entry function: if there is a pendingevent, calling __WFE() will not enter the CortexM4 core to sleep mode.The solution is to made the call below; the first __WFE() is alwaysignored and clears the event if one was already pending, the second isalways applied

__SEV()
__WFE()
__WFE()

    • Add newPVD configurationmodes

      • PWR_PVD_MODE_NORMAL
      • PWR_PVD_MODE_EVENT_RISING
      • PWR_PVD_MODE_EVENT_FALLING
      • PWR_PVD_MODE_EVENT_RISING_FALLING
    • Add new macros to manage PVDTrigger

      • __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
      • __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(
      • __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE()
      • __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()
      • __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE()
      • __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE()
    • PVD macros:

      • Remove the __EXTILINE__ parameter
      • Update to use prefix "__HAL_PWR_PVD_" instead of prefix "__HAL_PVD"
    • Rename HAL_PWR_PVDConfig() byHAL_PWR_ConfigPVD()
    • Rename HAL_PWREx_ActivateOverDrive() by HAL_PWREx_EnableOverDrive()
    • Rename HAL_PWREx_DeactivateOverDrive() by HAL_PWREx_DisableOverDrive()
  • HAL GPIO update
    • HAL_GPIO_Init()/HAL_GPIO_DeInit(): add a call to the CMSISassert macro to check GPIO instance: IS_GPIO_ALL_INSTANCE()

    • HAL_GPIO_WritePin(): update to writein BSRR register
    • Rename GPIO_GET_SOURCE() by GET_GPIO_INDEX() and move this later to file stm32f4xx_hal_gpio_ex.h
    • Add new define for alternate function GPIO_AF5_SPI3 for STM32F429xx/439xx and STM32F427xx/437xx devices
  • HAL HASH update
    • HAL_HASH_MD5_Start_IT(): fix input address management issue
  • HAL RCC update
    • Rename the following Macros
      • __PPP_CLK_ENABLE() by __HAL_RCC_PPP_CLK_ENABLE()
      • __PPP_CLK_DISABLE() by __HAL_RCC_PPP_CLK_DISABLE()
      • __PPP_FORCE_RESET() by __HAL_RCC_PPP_FORCE_RESET()
      • __PPP_RELEASE_RESET() by __HAL_RCC_PPP_RELEASE_RESET()
      • __PPP_CLK_SLEEP_ENABLE() by __HAL_RCC_PPP_CLK_SLEEP_ENABLE()
      • __PPP_CLK_SLEEP_DISABLE() by __HAL_RCC_PPP_CLK_SLEEP_DISABLE()
    • IS_RCC_PLLSAIN_VALUE() macro: update the check condition
    • Add description of RCC known Limitations
    • Rename HAL_RCC_CCSCallback() by HAL_RCC_CSSCallback()
    • HAL_RCC_OscConfig() fix issues:
      • Remove the disable of HSE oscillatorwhen HSE_BYPASS isused as system clock source or as PPL clock source
      • Add a check on HSERDY flag whenHSE_BYPASS is selected as new state forHSE oscillator.
    • Rename __HAL_RCC_I2SCLK() by __HAL_RCC_I2S_Config()
  • HAL I2Supdate

    • HAL_I2S_Init(): add check on I2S instance usingCMSIS macro IS_I2S_ALL_INSTANCE()
    • HAL_I2S_IRQHandler() update for compliancy w/ C++
    • Add use oftmpreg variable in __HAL_I2S_CLEAR_OVRFLAG() and __HAL_I2S_CLEAR_UDRFLAG() macro for compliancy with C++
    • HAL_I2S_GetError(): update to return uint32_t instead of HAL_I2S_ErrorTypeDef enumeration
  • HAL I2Cupdate

    • Updateto clearthe POS bit in the CR1 register at the end ofHAL_I2C_Master_Read_IT() and HAL_I2C_Mem_Read_IT() process
    • Rename HAL_I2CEx_DigitalFilter_Config() by HAL_I2CEx_ConfigDigitalFilter()
    • Rename HAL_I2CEx_AnalogFilter_Config() by HAL_I2CEx_ConfigAnalogFilter()
    • Add use oftmpreg variable in __HAL_I2C_CLEAR_ADDRFLAG() and __HAL_I2C_CLEAR_STOPFLAG() macro forcompliancy with C++
  • HAL IrDA update
    • DMA transmit process; the code has been updated to avoid waiting on TC flag under DMA ISR, IrDA TC interrupt is used instead. Below the update to be done on user application:
      • Configure and enable the USART IRQ in HAL_IRDA_MspInit() function
      • In stm32f4xx_it.c file, UASRTx_IRQHandler() function: add a call to HAL_IRDA_IRQHandler() function
    • IT transmit process; the code has been updated to avoid waiting on TC flag under IRDA ISR, IrDA TC interrupt is used instead. No impact on user application
    • Rename Macros: add prefix "__HAL"
      • __IRDA_ENABLE() by __HAL_IRDA_ENABLE()
      • __IRDA_DISABLE() by __HAL_IRDA_DISABLE()
    • Add new user macros to manage the sample method feature
      • __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE()
      • __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE()
    • HAL_IRDA_Transmit_IT(): update to remove the enable of the parity error interrupt
    • Add use oftmpreg variable in __HAL_IRDA_CLEAR_PEFLAG() macro forcompliancy with C++
    • HAL_IRDA_Transmit_DMA() update to follow the rightprocedure "Transmission using DMA" in the reference manual
      • Add clear the TC flag in the SR register before enabling the DMAtransmit request
  • HAL IWDG update
    • Rename the defined IWDG keys:
      • KR_KEY_RELOAD by IWDG_KEY_RELOAD
      • KR_KEY_ENABLE by IWDG_KEY_ENABLE
      • KR_KEY_EWA by IWDG_KEY_WRITE_ACCESS_ENABLE
      • KR_KEY_DWA by IWDG_KEY_WRITE_ACCESS_DISABLE
    • Add new macros __HAL_IWDG_RESET_HANDLE_STATE() and __HAL_IWDG_CLEAR_FLAG()
    • Update __HAL_IWDG_ENABLE_WRITE_ACCESS() and __HAL_IWDG_DISABLE_WRITE_ACCESS() as private macro
  • HAL SPIupdate

    • HAL_SPI_TransmitReceive_DMA() update to remove the DMA Tx Error Callback initialization when SPI RxOnly mode is selected
    • Add use of UNUSED(tmpreg) in __HAL_SPI_CLEAR_MODFFLAG(), __HAL_SPI_CLEAR_OVRFLAG(), __HAL_SPI_CLEAR_FREFLAG() to fix "Unused variable" warning with TrueSTUDIO.
    • Rename Literals: remove "D" from "DISABLED" and "ENABLED"
      • SPI_TIMODE_DISABLEDby SPI_TIMODE_DISABLE
      • SPI_TIMODE_ENABLEDbySPI_TIMODE_ENABLE
      • SPI_CRCCALCULATION_DISABLED by SPI_CRCCALCULATION_DISABLE
      • SPI_CRCCALCULATION_ENABLED by SPI_CRCCALCULATION_ENABLE
    • Adduse oftmpreg variable in __HAL_SPI_CLEAR_MODFFLAG(),__HAL_SPI_CLEAR_FREFLAG() and __HAL_SPI_CLEAR_OVRFLAG() macros forcompliancy with C++
  • HAL SDMMC update

    • IS_SDIO_ALL_INSTANCE()macro moved to CMSIS files

  • HAL LTDC update
    • HAL_LTDC_ConfigCLUT: optimize the function whenpixel format isLTDC_PIXEL_FORMAT_AL44

      • Update the size of color look up table to 16 instead of 256 whenthepixel format isLTDC_PIXEL_FORMAT_AL44
  • HAL NAND update
    • Rename NAND Address structure to NAND_AddressTypeDef instead of NAND_AddressTypedef
    • Updatethe used algorithm of these functions
      • HAL_NAND_Read_Page()
      • HAL_NAND_Write_Page()
      • HAL_NAND_Read_SpareArea()
      • HAL_NAND_Write_SpareArea()
    • HAL_NAND_Write_Page(): moveinitialization of tickstart before while loop

      (Video) How to set up a Keil IDE 5 Project - Program the STM32F4 Discovery Board

    • HAL_NAND_Erase_Block(): add whait until NAND status is ready before exiting this function
  • HAL NOR update
    • Rename NOR Address structure to NOR_AddressTypeDef instead of NOR_AddressTypedef

    • NOR Status literals renamed
      • NOR_SUCCESS by HAL_NOR_STATUS_SUCCESS
      • NOR_ONGOING by HAL_NOR_STATUS_ONGOING
      • NOR_ERROR by HAL_NOR_STATUS_ERROR
      • NOR_TIMEOUT by HAL_NOR_STATUS_TIMEOUT
    • HAL_NOR_GetStatus() update to fix Timeout issue andexit from waiting loop when timeout occurred

  • HAL PCCARD update
    • Rename PCCARD Address structure to HAL_PCCARD_StatusTypeDef instead ofCF_StatusTypedef
    • PCCARD Status literals renamed
      • CF_SUCCESS by HAL_PCCARD_STATUS_SUCCESS
      • CF_ONGOING by HAL_PCCARD_STATUS_ONGOING
      • CF_ERROR byHAL_PCCARD_STATUS_ERROR
      • CF_TIMEOUT by HAL_PCCARD_STATUS_TIMEOUT
    • Update "CF" by "PCCARD" infunctions, literals and macros
  • HAL PCD update
    • Rename functions
      • HAL_PCD_ActiveRemoteWakeup() by HAL_PCD_ActivateRemoteWakeup()
      • HAL_PCD_DeActiveRemoteWakeup() by HAL_PCD_DeActivateRemoteWakeup()
    • Rename literals
      • USB_FS_EXTI_TRIGGER_RISING_EDGE by USB_OTG_FS_WAKEUP_EXTI_RISING_EDGE
      • USB_FS_EXTI_TRIGGER_FALLING_EDGE by USB_OTG_FS_WAKEUP_EXTI_FALLING_EDGE
      • USB_FS_EXTI_TRIGGER_BOTH_EDGE() by USB_OTG_FS_WAKEUP_EXTI_RISING_FALLING_EDGE
      • USB_HS_EXTI_TRIGGER_RISING_EDGE by USB_OTG_HS_WAKEUP_EXTI_RISING_EDGE
      • USB_HS_EXTI_TRIGGER_FALLING_EDGE by USB_OTG_HS_WAKEUP_EXTI_FALLING_EDGE
      • USB_HS_EXTI_TRIGGER_BOTH_EDGE by USB_OTG_HS_WAKEUP_EXTI_RISING_FALLING_EDGE
      • USB_HS_EXTI_LINE_WAKEUP by USB_OTG_HS_EXTI_LINE_WAKEUP
      • USB_FS_EXTI_LINE_WAKEUP by USB_OTG_FS_EXTI_LINE_WAKEUP
    • Rename USB EXTI macros (FS, HS referenced as SUBBLOCK here below)
      • __HAL_USB_SUBBLOCK_EXTI_ENABLE_IT() by __HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_ENABLE_IT()
      • __HAL_USB_SUBBLOCK_EXTI_DISABLE_IT() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_DISABLE_IT()
      • __HAL_USB_SUBBLOCK_EXTI_GET_FLAG() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_GET_FLAG()
      • __HAL_USB_SUBBLOCK_EXTI_CLEAR_FLAG() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_CLEAR_FLAG()
      • __HAL_USB_SUBBLOCK_EXTI_SET_RISING_EGDE_TRIGGER() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_ENABLE_RISING_EDGE()
      • __HAL_USB_SUBBLOCK_EXTI_SET_FALLING_EGDE_TRIGGER() by __HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_ENABLE_FALLING_EDGE()
      • __HAL_USB_SUBBLOCK_EXTI_SET_FALLINGRISING_TRIGGER() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE()
      • __HAL_USB_SUBBLOCK_EXTI_GENERATE_SWIT() by__HAL_USB_OTG_SUBBLOCK_WAKEUP_EXTI_GENERATE_SWIT()
  • HAL RNG update
    • Add new functions
      • HAL_RNG_GenerateRandomNumber(): to generate a 32-bits random number, return random value in argument and return HALstatus.

      • HAL_RNG_GenerateRandomNumber_IT(): to start generation of the32-bits random number, user should call theHAL_RNG_ReadLastRandomNumber() function under the HAL_RNG_ReadyCallback() to get the generated random value.

      • HAL_RNG_ReadLastRandomNumber():to return the last random value stored in the RNG handle

    • HAL_RNG_GetRandomNumber(): return value update(obsolete), replaced by HAL_RNG_GenerateRandomNumber()
    • HAL_RNG_GetRandomNumber_IT(): wrong implementation (obsolete), replaced byHAL_RNG_GenerateRandomNumber_IT()

    • __HAL_RNG_CLEAR_FLAG() macro (obsolete), replaced by new __HAL_RNG_CLEAR_IT() macro

    • Add new define forRNG ready interrupt: RNG_IT_DRDY
  • HAL RTC update
    • HAL_RTC_GetTime() and HAL_RTC_GetDate(): add the comment below

* @note You must call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values
* in the higher-order calendar shadow registers to ensure consistency between the time and date values.
* Reading RTC current time locks the values in calendar shadow registers until Current date is read.

    • Rename literals: add prefix "__HAL"
      • FORMAT_BINbyHAL_FORMAT_BIN
      • FORMAT_BCD byHAL_FORMAT_BCD
    • Rename macros (ALARM, WAKEUPTIMER and TIMESTAMP referenced as SUBBLOCK here below)
      • __HAL_RTC_EXTI_ENABLE_IT() by __HAL_RTC_SUBBLOCK_EXTI_ENABLE_IT()
      • __HAL_RTC_EXTI_DISABLE_IT() by __HAL_RTC_SUBBLOCK_EXTI_DISABLE_IT()
      • __HAL_RTC_EXTI_CLEAR_FLAG() by __HAL_RTC_SUBBLOCK_EXTI_CLEAR_FLAG()

      • __HAL_RTC_EXTI_GENERATE_SWIT() by __HAL_RTC_SUBBLOCK_EXTI_GENERATE_SWIT()
    • Add new macros (ALARM, WAKEUPTIMER and TAMPER_TIMESTAMP referenced as SUBBLOCK here below)
      • __HAL_RTC_SUBBLOCK_GET_IT_SOURCE()
      • __HAL_RTC_SUBBLOCK_EXTI_ENABLE_EVENT()
      • __HAL_RTC_SUBBLOCK_EXTI_DISABLE_EVENT()
      • __HAL_RTC_SUBBLOCK_EXTI_ENABLE_FALLING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_DISABLE_FALLING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_ENABLE_RISING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_DISABLE_RISING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_ENABLE_RISING_FALLING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_DISABLE_RISING_FALLING_EDGE()
      • __HAL_RTC_SUBBLOCK_EXTI_GET_FLAG()
  • HAL SAI update
    • Update SAI_STREOMODE bySAI_STEREOMODE
    • Update FIFO status Level defines in upper case
    • Rename literals: remove "D" from "DISABLED" and "ENABLED"
      • SAI_OUTPUTDRIVE_DISABLED by SAI_OUTPUTDRIVE_DISABLE
      • SAI_OUTPUTDRIVE_ENABLED by SAI_OUTPUTDRIVE_ENABLE
      • SAI_MASTERDIVIDER_ENABLEDby SAI_MASTERDIVIDER_ENABLE
      • SAI_MASTERDIVIDER_DISABLEDby SAI_MASTERDIVIDER_DISABLE
  • HAL SD update
    • Rename SD_CMD_SD_APP_STAUSbySD_CMD_SD_APP_STATUS
    • SD_PowerON() updated to add 1ms required power up waiting time before starting the SD initialization sequence
    • SD_DMA_RxCplt()/SD_DMA_TxCplt(): add a call to HAL_DMA_Abort()
    • HAL_SD_ReadBlocks() update to setthedefined DATA_BLOCK_SIZE as SDIO DataBlockSize parameter
    • HAL_SD_ReadBlocks_DMA()/HAL_SD_WriteBlocks_DMA() update to call the HAL_DMA_Start_IT() function with DMADatalength set to BlockSize/4 as the DMAis configuredin word
  • HAL SMARTCARD update
    • DMA transmit process; the code has been updated to avoid waiting on TC flag under DMA ISR, SMARTCARD TC interrupt is used instead. Below the update to be done on user application:
      • Configure and enable the USART IRQ in HAL_SAMRTCARD_MspInit() function
      • In stm32f4xx_it.c file, UASRTx_IRQHandler() function: add a call to HAL_SMARTCARD_IRQHandler() function
    • IT transmit process; the code has been updated to avoid waiting on TC flag under SMARTCARD ISR,SMARTCARD TC interrupt is used instead. No impact on user application
    • Rename macros: add prefix "__HAL"
      • __SMARTCARD_ENABLE() by __HAL_SMARTCARD_ENABLE()
      • __SMARTCARD_DISABLE() by __HAL_SMARTCARD_DISABLE()
      • __SMARTCARD_ENABLE_IT() by __HAL_SMARTCARD_ENABLE_IT()
      • __SMARTCARD_DISABLE_IT() by __HAL_SMARTCARD_DISABLE_IT()
      • __SMARTCARD_DMA_REQUEST_ENABLE() by __HAL_SMARTCARD_DMA_REQUEST_ENABLE()
      • __SMARTCARD_DMA_REQUEST_DISABLE() by __HAL_SMARTCARD_DMA_REQUEST_DISABLE()
    • Rename literals: remove "D" from "DISABLED" and "ENABLED"
      • SMARTCARD_NACK_ENABLEDby SMARTCARD_NACK_ENABLE
      • SMARTCARD_NACK_DISABLEDbySMARTCARD_NACK_DISABLE
    • Add new user macros to manage the sample method feature
      • __HAL_SMARTCARD_ONE_BIT_SAMPLE_ENABLE()
      • __HAL_SMARTCARD_ONE_BIT_SAMPLE_DISABLE()
    • Add use oftmpreg variable in __HAL_SMARTCARD_CLEAR_PEFLAG() macro forcompliancy with C++
    • HAL_SMARTCARD_Transmit_DMA() update to follow the rightprocedure "Transmission using DMA" in the reference manual
      • Add clear the TC flag in the SR register before enabling the DMAtransmit request
  • HAL TIM update
    • Add TIM_CHANNEL_ALL as possible value for all Encoder Start/Stop APIs Description
    • HAL_TIM_OC_ConfigChannel() remove call to IS_TIM_FAST_STATE() assert macro
    • HAL_TIM_PWM_ConfigChannel() add a call to IS_TIM_FAST_STATE() assert macro to check the OCFastMode parameter
    • HAL_TIM_DMADelayPulseCplt() Update to set the TIM Channel before to call HAL_TIM_PWM_PulseFinishedCallback()
    • HAL_TIM_DMACaptureCplt() update to set the TIM Channel before to call HAL_TIM_IC_CaptureCallback()
    • TIM_ICx_ConfigChannel()update to fix Timer CCMR1 register corruption when setting ICFilter parameter
    • HAL_TIM_DMABurst_WriteStop()/HAL_TIM_DMABurst_ReadStop() update to abort the DMA transfer for the specifc TIM channel
    • Add new function for TIM Slave configurationin IT mode: HAL_TIM_SlaveConfigSynchronization_IT()
    • HAL_TIMEx_ConfigBreakDeadTime() add an assert check on Break & DeadTime parameters values
    • HAL_TIMEx_OCN_Start_IT() add the enable of Break Interrupt for all output modes
    • Add new macros to ENABLE/DISABLE URS bit in TIM CR1 register:
      • __HAL_TIM_URS_ENABLE()
      • __HAL_TIM_URS_DISABLE()
    • Add new macro for TIM Edge modification: __HAL_TIM_SET_CAPTUREPOLARITY()
  • HAL UART update
    • AddIS_LIN_WORD_LENGTH() and IS_LIN_OVERSAMPLING() macros: tocheck respectively WordLength and OverSampling parameters in LIN mode

    • DMA transmit process; the code has been updated to avoid waiting on TC flag under DMA ISR, UART TC interrupt is used instead. Below the update to be done on user application:

      • Configure and enable the USART IRQ in HAL_UART_MspInit() function
      • In stm32f4xx_it.c file, USARTx_IRQHandler() function: add a call to HAL_UART_IRQHandler() function
    • IT transmit process; the code has been updated to avoid waiting on TC flag under UARTISR, UART TC interrupt is used instead. No impact on user application
    • Rename macros:
      • __HAL_UART_ONEBIT_ENABLE() by __HAL_UART_ONE_BIT_SAMPLE_ENABLE()
      • __HAL_UART_ONEBIT_DISABLE() by __HAL_UART_ONE_BIT_SAMPLE_DISABLE()
    • Rename literals:
      • UART_WAKEUPMETHODE_IDLELINEby UART_WAKEUPMETHOD_IDLELINE
      • UART_WAKEUPMETHODE_ADDRESSMARKby UART_WAKEUPMETHOD_ADDRESSMARK
    • Add use oftmpreg variable in __HAL_UART_CLEAR_PEFLAG() macro forcompliancy with C++
    • HAL_UART_Transmit_DMA() update to follow the right procedure "Transmission using DMA" in the reference manual
      • Add clear the TC flag in the SR register before enabling the DMAtransmit request
  • HAL USART update
    • DMA transmit process; the code has been updated to avoid waiting on TC flag under DMA ISR, USART TC interrupt is used instead. Below the update to be done on user application:

      • Configure and enable the USART IRQ in HAL_USART_MspInit() function
      • In stm32f4xx_it.c file, USARTx_IRQHandler() function: add a call to HAL_USART_IRQHandler() function
    • IT transmit process; the code has been updated to avoid waiting on TC flag under USARTISR, USART TC interrupt is used instead. No impact on user application
    • HAL_USART_Init() update toenable the USART oversampling by 8 by default in order to reach max USART frequencies
    • USART_DMAReceiveCplt()update to set the new USART state after checking on the oldstate
    • HAL_USART_Transmit_DMA()/HAL_USART_TransmitReceive_DMA() update to follow the rightprocedure "Transmission using DMA" in the reference manual
      • Add clear the TC flag in the SR register before enabling the DMAtransmit request
    • Rename macros:
      • __USART_ENABLE() by __HAL_USART_ENABLE()
      • __USART_DISABLE() by __HAL_USART_DISABLE()
      • __USART_ENABLE_IT() by __HAL_USART_ENABLE_IT()
      • __USART_DISABLE_IT() by __HAL_USART_DISABLE_IT()
    • Rename literals: remove "D" from "DISABLED" and "ENABLED"
      • USART_CLOCK_DISABLEDby USART_CLOCK_DISABLE
      • USART_CLOCK_ENABLEDby USART_CLOCK_ENABLE
      • USARTNACK_ENABLED by USART_NACK_ENABLE
      • USARTNACK_DISABLED by USART_NACK_DISABLE
    • Add new user macros to manage the sample method feature
      • __HAL_USART_ONE_BIT_SAMPLE_ENABLE()
      • __HAL_USART_ONE_BIT_SAMPLE_DISABLE()
    • Add use oftmpreg variable in __HAL_USART_CLEAR_PEFLAG() macro forcompliancy with C++
  • HAL WWDG update
    • Add new parameter in __HAL_WWDG_ENABLE_IT() macro
    • Add new macros to manage WWDG IT & correction:
      • __HAL_WWDG_DISABLE()
      • __HAL_WWDG_DISABLE_IT()
      • __HAL_WWDG_GET_IT()
      • __HAL_WWDG_GET_IT_SOURCE()

    V1.1.0 / 19-June-2014

    Main Changes

    (Video) #4. STM32F4 I2C Using Registers || Master mode || NO HAL ||

    • Add support ofSTM32F411xE devices
    • HAL generic update
      • Enhance HAL delay and time base implementation
        • Systicktimer is used by default as source of time base, but user caneventually implement his proper time base source (a general purposetimer for example or other time source)
        • Functionsaffecting time base configurations are declared as __Weak to makeoverride possible in case of other implementations in user file, formore details please refer to HAL_TimeBase example
      • Fix flag clear procedure: use atomic write operation "=" instead of ready-modify-write operation "|=" or "&="
      • Fixon Timeout management, Timeout value set to 0 passed to APIautomatically exits the function after checking the flag without anywait
      • Common update for the following communication peripherals: SPI, UART, USART and IRDA
        • Add DMA circular mode support
        • Remove lock from recursive process
      • Add new macro __HAL_RESET_HANDLE_STATE to reset a given handle state
      • Add a new attribute for functions executed from internal SRAM and depending from Compiler implementation
      • When USE_RTOS == 1 (in stm32l0xx_hal_conf.h), the __HAL_LOCK() is not defined instead of being defined empty
      • Miscellaneous comments and formatting update
      • stm32f4xx_hal_conf_template.h
        • Add a new define for LSI default value LSI_VALUE
        • Add a new define for LSE default value LSE_VALUE
        • Add a new define for Tick interrupt priority TICK_INT_PRIORITY (needed for the enhanced time base implementation)
      • Important Note: aliases has been added for any API naming change, to keep compatibility with previous version
    • HAL GPIO update
      • Add a new macro __HAL_GPIO_EXTI_GENERATE_SWIT() to manage the generation of software interrupt on selected EXTI line
      • HAL_GPIO_Init():use temporary variable when modifying the registers, to avoidunexpected transition in the GPIO pin configuration
      • Remove IS_GET_GPIO_PIN macro
      • Add a new function HAL_GPIO_LockPin()
      • Private Macro __HAL_GET_GPIO_SOURCE renamed into GET_GPIO_SOURCE
      • Add the support of STM32F411xx devices : add the new Alternate functions values related to new remap added for SPI, USART, I2C
      • Update the following HAL GPIO macros description: rename EXTI_Linex by GPIO_PIN_x
        • __HAL_GPIO_EXTI_CLEAR_IT()
        • __HAL_GPIO_EXTI_GET_IT()
        • __HAL_GPIO_EXTI_CLEAR_FLAG()
        • __HAL_GPIO_EXTI_GET_FLAG()
    • HAL DMA update

      • Fix in HAL_DMA_PollForTransfer() to:
        • set DMA error code in case of HAL_ERROR status
        • set HAL Unlock before DMA state update
    • HAL DMA2D update

      • Add configuration of source address in case of A8 or A4 M2M_PFC DMA2D mode
    • HAL FLASH update
      • Functions reorganization update, depending on the features supported by each STM32F4 device
      • Add new driver (stm32f4xx_hal_flash_ramfunc.h/.c) to manage function executed from RAM, these functions are available only for STM32F411xx Devices
        • FLASH_StopFlashInterfaceClk() : Stop the flash interface while System Run
        • FLASH_StartFlashInterfaceClk() : Stop the flash interface while System Run
        • FLASH_EnableFlashSleepMode() : Enable the flash sleep while System Run
        • FLASH_DisableFlashSleepMode() : Disable the flash sleep while System Run
    • HAL PWR update
      • HAL_PWR_PVDConfig(): add clear of the EXTI trigger before new configuration
      • Fixin HAL_PWR_EnterSTANDBYMode() to not clear Wakeup flag (WUF), whichneed to be cleared at application level before to call this function
      • HAL_PWR_EnterSLEEPMode()
        • Remove disable and enable of SysTick Timer
        • Updateusage of __WFE() in low power entry function: if there is a pendingevent, calling __WFE() will not enter the CortexM4 core to sleep mode.The solution is to made the call below; the first __WFE() is alwaysignored and clears the event if one was already pending, the second isalways applied

    __SEV()
    __WFE()
    __WFE()

      • Add new macro for software event generation __HAL_PVD_EXTI_GENERATE_SWIT()
      • Removethe following defines form Generic driver and add them under extensiondriver because they are only used within extension functions.
        • CR_FPDS_BB: used within HAL_PWREx_EnableFlashPowerDown() function
        • CSR_BRE_BB: used within HAL_PWREx_EnableBkUpReg() function
      • Add the support of STM32F411xx devices add the define STM32F411xE
        • For STM32F401xC, STM32F401xE and STM32F411xE devices add the following functions used to enable or disable the low voltage mode for regulators
          • HAL_PWREx_EnableMainRegulatorLowVoltage()
          • HAL_PWREx_DisableMainRegulatorLowVoltage()
          • HAL_PWREx_EnableLowRegulatorLowVoltage()
          • HAL_PWREx_DisableLowRegulatorLowVoltage()
      • For STM32F42xxx/43xxx devices, add a new function for Under Driver management as the macro already added for this mode is not sufficient: HAL_PWREx_EnterUnderDriveSTOPMode()
    • HAL RCC update
      • In HAL_RCC_ClockConfig() function: update the AHB clock divider before clock switch to new source
      • Allow to calibrate the HSI when it is used as system clock source
      • Rename the following macros
        • __OTGFS_FORCE_RESET () by __USB_OTG_FS_FORCE_RESET()
        • __OTGFS_RELEASE_RESET () by __USB_OTG_FS_RELEASE_RESET()
        • __OTGFS_CLK_SLEEP_ENABLE () by __USB_OTG_FS_CLK_SLEEP_ENABLE()
        • __OTGFS_CLK_SLEEP_DISABLE () by __USB_OTG_FS_CLK_SLEEP_DISABLE()
      • Add new field PLLI2SM in RCC_PLLI2SInitTypeDef structure, this division factor is added for PLLI2S VCO input clock only STM32F411xE devices => the FW compatibility is broken vs. STM32F401xx devices
      • Update HAL_RCCEx_PeriphCLKConfig() and HAL_RCCEx_GetPeriphCLKConfig() functions to support the new PLLI2SM
      • Add new function to manage the new LSE mode : HAL_RCCEx_SelectLSEMode()
      • Reorganize the macros depending from Part number used and make them more clear
    • HAL UART update

      • Add new macros to control CTS and RTS
      • Add specific macros to manage the flags cleared only by a software sequence
        • __HAL_UART_CLEAR_PEFLAG()
        • __HAL_UART_CLEAR_FEFLAG()
        • __HAL_UART_CLEAR_NEFLAG()
        • __HAL_UART_CLEAR_OREFLAG()
        • __HAL_UART_CLEAR_IDLEFLAG()
      • Add several enhancements without affecting the driver functionalities
        • Remove the check on RXNE set after reading the Data in the DR register
        • Update the transmit processes to use TXE instead of TC
        • Update HAL_UART_Transmit_IT() to enable UART_IT_TXE instead of UART_IT_TC
    • HAL USART update

      • Add specific macros to manage the flags cleared only by a software sequence
        • __HAL_USART_CLEAR_PEFLAG()
        • __HAL_USART_CLEAR_FEFLAG()
        • __HAL_USART_CLEAR_NEFLAG()
        • __HAL_USART_CLEAR_OREFLAG()
        • __HAL_USART_CLEAR_IDLEFLAG()
      • Update HAL_USART_Transmit_IT() to enable USART_IT_TXE instead of USART_IT_TC
    • HAL IRDA update

      • Add specific macros to manage the flags cleared only by a software sequence
        • __HAL_IRDA_CLEAR_PEFLAG()
        • __HAL_ IRDA _CLEAR_FEFLAG()
        • __HAL_ IRDA _CLEAR_NEFLAG()
        • __HAL_ IRDA _CLEAR_OREFLAG()
        • __HAL_ IRDA _CLEAR_IDLEFLAG()
      • Add several enhancements without affecting the driver functionalities
        • Remove the check on RXNE set after reading the Data in the DR register
        • Update HAL_IRDA_Transmit_IT() to enable IRDA_IT_TXE instead of IRDA_IT_TC
      • Add the following APIs used within DMA process
        • HAL_StatusTypeDef HAL_IRDA_DMAPause(IRDA_HandleTypeDef *hirda);
        • HAL_StatusTypeDef HAL_IRDA_DMAResume(IRDA_HandleTypeDef *hirda);
        • HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda);
        • void HAL_IRDA_TxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
        • void HAL_IRDA_RxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
    • HAL SMARTCARD update

      • Add specific macros to manage the flags cleared only by a software sequence
        • __HAL_SMARTCARD_CLEAR_PEFLAG()
        • __HAL_SMARTCARD_CLEAR_FEFLAG()
        • __HAL_SMARTCARD_CLEAR_NEFLAG()
        • __HAL_SMARTCARD_CLEAR_OREFLAG()
        • __HAL_SMARTCARD_CLEAR_IDLEFLAG()
      • Add several enhancements without affecting the driver functionalities
        • Add a new state HAL_SMARTCARD_STATE_BUSY_TX_RX and all processes has been updated accordingly
        • Update HAL_SMARTCARD_Transmit_IT() to enable SMARTCARD_IT_TXE instead of SMARTCARD_IT_TC
    • HAL SPI update
      • Bugs fix
        • SPI interface is used in synchronous polling mode: at high clock rates like SPI prescaler 2 and 4, calling
          HAL_SPI_TransmitReceive() returns with error HAL_TIMEOUT
        • HAL_SPI_TransmitReceive_DMA() does not clean up the TX DMA, so any subsequent SPI calls return the DMA error
        • HAL_SPI_Transmit_DMA() is failing when data size is equal to 1 byte
      • Add the following APIs used within the DMA process
        • HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi);
        • HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi);
        • HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi);
        • void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi);
        • void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi);
        • void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi);
    • HAL RNG update
        • Add a conditional define to make this driver visible for all STM32F4xx devices except STM32F401xx and STM32F411xx Devices.
    • HAL CRC update
        • These macros are added to read/write the CRC IDR register: __HAL_CRC_SET_IDR() and __HAL_CRC_GET_IDR()
    • HAL DAC update
      • Enhance the DMA channel configuration when used with DAC
    • HAL TIM update
      • HAL_TIM_IRQHandler(): update to check the input capture channel 3 and 4 in CCMR2 instead of CCMR1
      • __HAL_TIM_PRESCALER() updated to use '=' instead of '|='
      • Add the following macro in TIM HAL driver
        • __HAL_TIM_GetCompare()
        • __HAL_TIM_GetCounter()
        • __HAL_TIM_GetAutoreload()
        • __HAL_TIM_GetClockDivision()
        • __HAL_TIM_GetICPrescaler()
    • HAL SDMMC update
      • Use of CMSIS constants instead of magic values
      • Miscellaneous update in functions internal coding
    • HAL NAND update
      • Fix issue of macros returning wrong address for NAND blocks
      • Fix issue for read/write NAND page/spare area
    • HAL NOR update
      • Add the NOR address bank macro used within the API
      • Update NOR API implementation to avoid the use of NOR address bank hard coded
    • HAL HCD update
      • HCD_StateTypeDef structure members renamed
      • These macro are renamed
        • __HAL_GET_FLAG(__HANDLE__, __INTERRUPT__) by __HAL_HCD_GET_FLAG(__HANDLE__, __INTERRUPT__)
        • __HAL_CLEAR_FLAG(__HANDLE__, __INTERRUPT__) by __HAL_HCD_CLEAR_FLAG(__HANDLE__, __INTERRUPT__)
        • __HAL_IS_INVALID_INTERRUPT(__HANDLE__) by __HAL_HCD_IS_INVALID_INTERRUPT(__HANDLE__)
    • HAL PCD update
      • HAL_PCD_SetTxFiFo() and HAL_PCD_SetRxFiFo() renamed into HAL_PCDEx_SetTxFiFo() and HAL_PCDEx_SetRxFiFo() and moved to the extension files stm32f4xx_hal_pcd_ex.h/.c
      • PCD_StateTypeDef structure members renamed
      • Fix incorrect masking of TxFIFOEmpty
      • stm32f4xx_ll_usb.c: fix issue in HS mode
      • New macros added
        • __HAL_PCD_IS_PHY_SUSPENDED()
        • __HAL_USB_HS_EXTI_GENERATE_SWIT()
        • __HAL_USB_FS_EXTI_GENERATE_SWIT()
      • These macro are renamed
        • __HAL_GET_FLAG(__HANDLE__, __INTERRUPT__) by __HAL_PCD_GET_FLAG(__HANDLE__, __INTERRUPT__)
        • __HAL_CLEAR_FLAG(__HANDLE__, __INTERRUPT__) by __HAL_PCD_CLEAR_FLAG(__HANDLE__, __INTERRUPT__)
        • __HAL_IS_INVALID_INTERRUPT(__HANDLE__) by __HAL_PCD_IS_INVALID_INTERRUPT(__HANDLE__)
        • __HAL_PCD_UNGATE_CLOCK(__HANDLE__) by __HAL_PCD_UNGATE_PHYCLOCK(__HANDLE__)
        • __HAL_PCD_GATE_CLOCK(__HANDLE__) by __HAL_PCD_GATE_PHYCLOCK(__HANDLE__)
    • HAL ETH update
      • Update HAL_ETH_GetReceivedFrame_IT() function to return HAL_ERROR if the received packet is not complete
      • Use HAL_Delay() instead of counting loop
      • __HAL_ETH_MAC_CLEAR_FLAG() macro is removed: the MACSR register is read only
      • Add the following macros used to Wake up the device from STOP mode by Ethernet event :
        • __HAL_ETH_EXTI_ENABLE_IT()
        • __HAL_ETH_EXTI_DISABLE_IT()
        • __HAL_ETH_EXTI_GET_FLAG()
        • __HAL_ETH_EXTI_CLEAR_FLAG()
        • __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER()
        • __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER()
        • __HAL_ETH_EXTI_SET_FALLINGRISING_TRIGGER()
    • HAL WWDG update
      • Update macro parameters to use underscore: __XXX__
      • Use of CMSIS constants instead of magic values
      • Use MODIFY_REG macro in HAL_WWDG_Init()
      • Add IS_WWDG_ALL_INSTANCE in HAL_WWDG_Init() and HAL_WWDG_DeInit()
    • HAL IWDG update
      • Use WRITE_REG instead of SET_BIT for all IWDG macros
      • __HAL_IWDG_CLEAR_FLAG removed: no IWDG flag cleared by access to SR register
      • Use MODIFY_REG macro in HAL_IWDG_Init()
      • Add IS_IWDG_ALL_INSTANCE in HAL_IWDG_Init()Add the following macros used to Wake

    V1.0.0 / 18-February-2014

    Main Changes

    • First official release

    License

    Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:

    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    2. Redistributionsin binary form must reproduce the above copyright notice, this list ofconditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived

    from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    For complete documentation on STM32 Microcontrollers visit www.st.com/STM32

    Videos

    1. #1. Intro to STM32F4 Register Based Programming || Clock Setup || LED Blinking || NO HAL
    (Controllers Tech)
    2. How To Write A Driver (STM32, I2C, Datasheet) - Phil's Lab #30
    (Phil’s Lab)
    3. #5. STM32F4 ADC using Registers || Multi Channel Polling
    (Controllers Tech)
    4. STM32F4 Tutorial : Setting up your first project for STM32F4 using IAR Embedded workbench
    (TizanaMenYo)
    5. Tutorial STM32F4 Discovery CAN using New HAL_CAN API functions.
    (Sever Spanulescu)
    6. Getting started with the STM32F4 Discovery - Blink LEDs
    (Learn Embedded Systems)
    Top Articles
    Latest Posts
    Article information

    Author: Pres. Lawanda Wiegand

    Last Updated: 02/26/2023

    Views: 6153

    Rating: 4 / 5 (51 voted)

    Reviews: 90% of readers found this page helpful

    Author information

    Name: Pres. Lawanda Wiegand

    Birthday: 1993-01-10

    Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

    Phone: +6806610432415

    Job: Dynamic Manufacturing Assistant

    Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

    Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.