Tangwx

Tangwx

博客网站

View ST official HAL library examples.

Viewing ST Official HAL Library Examples#

Previously, when we used the standard library, we would download a library file compressed package from the official website. The compressed package contained official examples that we would refer to when using on-chip resources. However, after ST introduced the HAL library, we can now use the STM32CubeMX software to automatically generate programs. We still have the need to refer to official examples, so we need to find the official examples for the HAL library.

Method:#

1. Open STM32CubeMX and click on Help, then Updater Settings#

image-20231103095250240

2. In the file manager, go to the path of the Repository Folder#

image-20231103095346541

3. After entering, you can see the folder corresponding to the chip package we downloaded before. In my case, it is the F1 series V1.8.5 version package.#

image-20231103095723487

4. After entering the folder corresponding to the required chip package, click on the project folder#

image-20231103095845780

5. After opening, you will find many folders. Each folder corresponds to an official development board.#

image-20231103095947567

6. Taking the STM32F103RB-Nucleo folder as an example, enter its Examples folder, and you will see the examples corresponding to the peripherals. Enter the folder corresponding to the peripheral you need to view.#

image-20231103100054445

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.