Skip to main content
Explorer
June 15, 2024
Solved

Where are the HAL libraries documented?

  • June 15, 2024
  • 3 replies
  • 1335 views

I've just spent hours trying to get a DMA to trigger and interrupt when transfer is complete. I was using HAL_DMA_Start() instead of HAL_DMA_Start_IT(). I found HAL_DMA_Start_IT() by looking through the source code.

Where are the HAL libraries documented?

    This topic has been closed for replies.
    Best answer by Andrew Neil

    There should be an User Manual for each family; eg,

    AndrewNeil_0-1718472907912.png

    https://www.st.com/resource/en/user_manual/um1785-description-of-stm32f0-hal-and-lowlayer-drivers-stmicroelectronics.pdf

    See the Product Page for the appropriate Cube package; eg,

    https://www.st.com/en/embedded-software/stm32cubef0.html#documentation

     

    3 replies

    Super User
    June 15, 2024
    Super User
    June 15, 2024

    Right, Andrew, and just what i do:

    most times you know, what you want : maybe you have set an UART in Cube, to receive something with INT mode,

    then (after : generate code ! ) just open the (your project name): drivers->xxHAL..->Src-> xxhal_uart.c

    and look at the possible functions :

    AScha3_0-1718475261902.png

    So if you want receive with INT, see there short description:

    AScha3_1-1718475344187.png

    So you see: how to write, parameters , etc.

    mleo2Author
    Explorer
    June 15, 2024

    Thank you. This helpful.