at the moment, I think the biggest convenience of Stm32cube is that you can use STM32CUBEMX software to graphically configure peripherals. First posted on the official website of the PDF,Getting started with the STM32CUBEF4 firmware package for STM32F4 Series "UM1730 User Manual".
From the document of a picture, clear introduction of the cube firmware level, I think for our efficient and rapid development, the temptation is quite big, but the introduction of the official website and online resources are relatively small, I can only slowly groping forward.
To use it we need to install CUBEMX software, website search. The interface is as follows
Left column we can tick the peripheral resources we want to use and then highlight the corresponding green color in the pin graph on the right.
Expand the Clock Configuration tab below to configure the related clocks. Very simple interface.
Then, in the Configuration tab, look at configuring the peripheral parameters we are using ... At low power requirements, we can also calculate its power consumption.
Once configured, Project-generate code generates the C code we need.
[Stm32f429-disco-hal] 1. Let's talk about some things about stm32cube. Then, Start with it ...