Skip to main content
Associate II
Jun 15, 2024 5:33 PM UTC
Solved

Where are the HAL libraries documented?

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.
Andrew Neil
Andrew NeilBest answer
Super User
Jun 15, 2024 5:38 PM UTC

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

 

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.

3 replies

Andrew Neil
Andrew NeilBest answer
Super User
Jun 15, 2024 5:38 PM UTC
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
Jun 15, 2024 6:17 PM UTC

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
Jun 15, 2024 6:20 PM UTC

Thank you. This helpful.