Skip to main content
Associate II
June 15, 2024
Solved

Where are the HAL libraries documented?

  • June 15, 2024
  • 3 replies
  • 1381 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

Andrew Neil
Andrew NeilBest answer
Super User
June 15, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
AScha.3
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.

If you feel a post has answered your question, please click on " Best Answer ".
mleo2Author
Associate II
June 15, 2024

Thank you. This helpful.