Skip to main content
GGODA
Associate II
June 12, 2019
Solved

How to start learning HAL library (beside the datasheet)

  • June 12, 2019
  • 2 replies
  • 1222 views

Hello,

I learned to blink a led as well as using the user's button to make interrupt using HAL library and CubeMX

However I learnt that through tutorials.

I tried to learn more thanks to the datasheet but it doesn't really help. For instance, the ReadPin function part doesn't give many instructions since it's just written"HAL_GPIO_ReadPin()". Therefore, I wouldn't have known what to put in the parenthesis without youtube.

So is there any (fan made) in deep guide about HAL library? (or something else)

Thanks :)

    This topic has been closed for replies.
    Best answer by Imen.D

    Hello,

    You can refer to the User Manual relevent to your device " Description of STM32XXxx HAL and Low-layer drivers"

    The user manual provides an overview of the HAL drivers and detailed each peripheral driver: configuration structures, functions, and how to use the given API to build your application.

    Regards,

    Imen

    2 replies

    Imen.DBest answer
    ST Technical Moderator
    June 12, 2019

    Hello,

    You can refer to the User Manual relevent to your device " Description of STM32XXxx HAL and Low-layer drivers"

    The user manual provides an overview of the HAL drivers and detailed each peripheral driver: configuration structures, functions, and how to use the given API to build your application.

    Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Tesla DeLorean
    Guru
    June 12, 2019

    Not a Fan here, but all the source is provided and internally documented, and there is a heap of examples under the HAL trees of the cube repository.

    #UseTheSourceLuke

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..