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 compressed file from the official website, which contained the official examples. When using on-chip resources, we would refer to and consult these examples. 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 the official examples. In this case, 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 previously downloaded. 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 it, 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.