Skip to main content
Graduate
February 18, 2024
Solved

Can't find HAL_UARTEx_GetRxEventType() in STM32L4xx HAL code

  • February 18, 2024
  • 1 reply
  • 1153 views

Hi folks,

I use CubeMx to generate UART∕DMA code for STM32L4xx MCU.

CubeMx uses currently latest STM32Cube_FW_L4_V1.18.0 package, but HAL_UARTEx_GetRxEventType() is not included in it, neither HAL_UART_RXEVENT_* events.

I found it is included in the latest STM32L4 git. Could I somehow use latest STM32L4 git to generate a code by CubeMx with required fix automatically or would it always require manual work to replace HAL_Driver files?

 

Cheers

    This topic has been closed for replies.
    Best answer by Pavel A.

    You can clone the STM32L4 HAL drivers repo, or the whole MCU package, and use that as the library location for CubeMX/IDE. When you generate a project, select "add library files as reference" rather than copy. So when you pull a new update from the repo your library files get updated. Of course you can update manually.

     

    1 reply

    Pavel A.Answer
    Super User
    February 18, 2024

    You can clone the STM32L4 HAL drivers repo, or the whole MCU package, and use that as the library location for CubeMX/IDE. When you generate a project, select "add library files as reference" rather than copy. So when you pull a new update from the repo your library files get updated. Of course you can update manually.