3171 views|6 replies

530

Posts

4

Resources
The OP
 

Speed up the development process with STM32CubeMX software [Copy link]

This post was last edited by a media student on 2019-1-3 21:18
Use STM32CubeMX software to speed up the development process
A few days ago, I received a task to evaluate the feasibility of using arm for JTAG cards. Although I usually come into contact with many arm processors, they are rarely used in actual project development.
Looking at the ST development board at hand, I was confused. I didn't know how to build the software. If I used registers to write, it was too complicated and not conducive to subsequent expansion; if I used library files to write, I didn't know which library was easy to use.
So I went to the ST official website and searched for a lot of documents.
Suddenly I saw the familiar Cube software, and remembered that this software can be used to directly generate projects and graphically configure, eliminating the trouble of forgetting to configure registers.
So I downloaded SetupSTM32CubeMX-5.0.0.exe (there is also a Linux version), and then began my surprising journey.
Here I will share my experience of using STM32 to achieve rapid development, taking the example of using the stm32F4discovery development board to achieve serial communication.
After downloading the program, install it. After installation, download the device package of the STM32 series (including boards or FXX series arm processors).
Open the software as shown below:
Then, enter the device selection, you can choose the development board (the development boards here are generally boards developed by st company itself) or select the corresponding arm processor model, and then double-click to enter the next interface.
In the next interface, we will see the schematic diagram shown below.
The left side consists of System Core\ Analog\ Connectivity…, keep the default, which can meet the needs of ordinary users.
By default, we can see the following figure:
The default clock has been configured. If you need to change it, you can modify it directly on the top. Here we choose the default and do not modify it.
Then I want to use the function of UART2, so click UART2 to configure it. The usual asynchronous UART communication configuration is shown in the figure below. After the configuration is completed, you can click GENERATE CODE, select the corresponding project directory, and generate a specific project file.
The project file contains all the library files developed, and on this basis, you can carry out the corresponding development work, as shown in the figure below.
It only takes 5 minutes to complete the basic initialization and other library development environment construction, and the HAL library developed by STM is also very easy to use. You can also use this software to directly use RTOS, etc. It is very convenient. You can explore it yourself.
This content is originally created by EEWORLD forum netizen Media Student. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from stm32/stm8

Latest reply

I just downloaded and installed this software today and am still in the process of learning and trying it out.  Details Published on 2019-1-8 20:26
 

1903

Posts

0

Resources
2
 
Really low, I haven't been cheated enough by ST
This post is from stm32/stm8

Comments

What do you mean? I used it recently and it feels OK.  Details Published on 2019-1-6 14:13
 
 

530

Posts

4

Resources
3
 
star_66666 posted on 2019-1-3 22:28 Really low, haven’t been cheated enough by ST
What do you mean? I used it recently and it feels okay. . .
This post is from stm32/stm8

Comments

The st library is just a bunch of garbage. One of the projects I took over was the hal library, which caused me a lot of trouble. I worked overtime for a month and a half without weekends and got off work after 10 o'clock at night before I got it done because I changed many drivers to register configuration.  Details Published on 2019-1-6 19:43
 
 

1903

Posts

0

Resources
4
 
Journalism student published on 2019-1-6 14:13 What do you mean? I used it recently and it seems ok. . .
The st library is just a bunch of garbage. One of the projects I took over was the hal library, which caused me a lot of trouble. I worked overtime for a month and a half without weekends and got off work after 10 o'clock at night before I got it done because I changed many drivers to register configuration.
This post is from stm32/stm8

Comments

Maybe it's because I've just started using it. I'll probably get better as I get more familiar with it. I've seen people say online that this library isn't very easy to use. I've looked it up and it's still a matter of familiarity. If you're very familiar with registers or the previous libraries, there's no need to learn this. This software is for beginners, so you can try it out.  Details Published on 2019-1-6 22:54
 
 
 

530

Posts

4

Resources
5
 
star_66666 posted on 2019-1-6 19:43 The library of st is a pile of garbage. One of the projects I took over was the hal library, which made me suffer. There were a lot of problems. I worked overtime for a month and a half without weekends...
Maybe it's because I just got started. I think it will get better as I get familiar with it. I saw some people on the Internet saying that this library is not very easy to use. I looked at it and it's still a matter of familiarity. If you are very familiar with registers or the previous libraries, there is no need to learn this. This software is for beginners, so you can try it.
This post is from stm32/stm8
 
 
 

1903

Posts

0

Resources
6
 
Yes, this is my first time using it too. I've always used registers. I got stuck at the first try and wasted a lot of time.
This post is from stm32/stm8
 
 
 

931

Posts

3

Resources
7
 
I just downloaded and installed this software today and am still in the process of learning and trying it out.
This post is from stm32/stm8
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list