stm32f1xx HAL library download introduction

1. Download

Friends who want to download the HAL library of STM32F1 can go to the official website to download, but they need to register an account, of course, they can also go to the STM32 forum to download.

2. Introduction to the directory structure

Unzip the downloaded en.stm32cubef1.zip , and the unzipped directory structure is shown in the following figure:
Figure 2-1

2.1 Introduction to the main directory

directory name Features
Documentation STM32CubeF1 User Guide (English Version)
Drivers hardware layer program
Middlewares library
Projects routine
Utilities other programs

2.2 Drivers folder introduction

The directory structure of the Drivers folder is shown in the figure below:
Figure 2-2
It is mainly composed of BSP, CMSIS, and HAL Driver folders.
1. BSP is a board-level support package, which contains the program of the official STM32 development board. If users can't use it, they can use it or develop it by themselves.
2. CMSIS is the software abstraction layer of the ARM Cortex-M processor. It contains the STM32 startup file and link file in the device folder.
3. HAL Driver is a MCU driver, which can drive the ADC, DAC, DMA, TIMER, USART, CAN and other peripheral units of the MCU.

2.3 Introduction to Middlewares folder

The directory structure of the Middlewares folder is shown in the figure below:
Figure 2-3
mainly by STemWin, STM32 USB driver library, STM32 USB host library, FatFs file system, FreeRTOS, Lwip.

2.4 Introduction to the Projects folder

The directory structure of the Projects folder is shown in the following figure:
Figure 2-4
It contains the routines of the development board officially launched by STM32.

2.5 Utilities folder introduction

The directory structure of the Utilities folder is shown in
Figure 2-5
the figure below: Other useful function libraries.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325579890&siteId=291194637