当前位置:网站首页>Stm32cubemx learning record -- installation, configuration and use
Stm32cubemx learning record -- installation, configuration and use
2022-07-25 11:18:00 【CoderEnd】
One 、STM32CubeMX brief introduction
1、STM32CubeMX yes ST It is highly recommended by STMicroelectronics in recent years STM32 Chip graphic configuration tool , The purpose is to facilitate developers , Allow users to use graphical wizard to generate C Initialization code , Can greatly reduce the development work , Time and cost , Improve development efficiency .STM32CubeMX It's almost covered STM32 Full range of chips .
stay CubeMX On , The relevant configuration can be realized through the operation of fool , Finally, it can generate C The language code , Support a variety of tool chains , such as MDK、IAR For ARM、TrueStudio etc. It saves us the time to configure all kinds of peripherals , It saves a lot of time

install CubeMx A total of three
- JRE (Java Runtime Environment) Java Running environment function JAVA A collection of environments necessary for a program
- STM32CubeMX
- HAL library STM32 HAL Firmware library ST Another set of official Libraries
1 install JRE
because STM32CubeMX Software is based on JAVA The environment is running , So you need to install JRE (Java Runtime Environment) Can be used ,
Official website : https://www.java.com/en/download/manual.jsp
Baidu cloud :https://pan.baidu.com/s/1WD5E4enEZ_mw0-NGBl_bUw Extraction code : e8gs ( Update the latest version regularly )
1 Click on the install

2 Modify the path Next step

3 Wait for installation to complete , Closing interface

2 install STM32CubeMX
Official website :www.st.com/stm32cubemx
Baidu cloud :https://pan.baidu.com/s/1dm83PbIsq7Vk9bAyFNinag Extraction code : wjmd
Download from the official website :

You need to register to download on the official website ST Official account , The latest is 5.3.0 edition , I don't want to download it on Baidu cloud disk under the official website ,
1 Open installation package

2 Agree to the agreement , next step

3 Check the first one , The second option is whether to agree ST The company collects your personal use information, etc .

4 spot YES The installation of this software may conflict with the files before the folder , File loss before folder Whether or not to continue
Click continue

5 Direct point NEXT, No other settings Then start installing

6 installation is complete , spot Done sign out

3 install HAL library
What is? HAL Firmware library ?
STM32 HAL The firmware library is Hardware Abstraction Layer Abbreviation , The Chinese name is : Hardware abstraction layer .HAL Kuo is ST Company as STM32 Of MCU The latest abstract layer embedded software , For more convenient implementation of cross STM32 Maximum portability of the product .HAL Library launch , so to speak ST Also slowly abandoned the original standard firmware library , This also makes many old users dissatisfied . however HAL When the library is launched , It also adds a lot of third-party middleware , Yes RTOS,USB,TCP / IP And graphics and so on .
Compared with the standard library ,STM32 Of HAL Libraries are more abstract ,ST The ultimate goal is to achieve in STM32 series MCU Seamless migration between , Even in other MCU It can also realize rapid transplantation .
And from 16 Year begins ,ST The company gradually stopped updating the standard firmware library , Turn to HAL Firmware library and Low-layer Update of the underlying Library , Stop standard library updates , This means that it will be used in the future STM32CubeMX To configure HAL/LL Library is the mainstream configuration environment ;
HAL library , Yes Online installation 、 Offline installation Two ways .
Online installation
Open the installed STM32CubeMX Software Click on the top Help -> Manage embedded software packages

A model selection interface will pop up Check the... You want to install HAL library , Click on “Install Now” Until the installation is successful . Here's the picture :

Offline installation
For offline installation, you need to download the installation package , Here we offer Baidu Yunhe ST Official download method PS: It is recommended to install online Fast , And stable
Official website :www.st.com/stm32cubemx
The column next to software download is HAL Library Download Download the installation package of the corresponding chip


Baidu cloud :https://pan.baidu.com/s/1dm83PbIsq7Vk9bAyFNinag Extraction code : wjmd
1 Import the installation package directly Help -> Manage embedded software packages ->From Local Select the offline package

2 Direct decompression
Help->Updater Settings... You can choose HAL Library installation package path , Default in C disc Can be modified by yourself

Unzip it to the corresponding path

Reference material
- Reprint Z Xiaoxuan blog https://blog.csdn.net/as480133937/article/details/98885316
- STM32CubeMX Official website https://www.st.com/zh/development-tools/stm32cubemx.html
- STM32Cube The Chinese community http://www.stm32cube.com/
- Micro classroom http://www.waveshare.net/study/portal.php
- Z Xiaoxuan blog STM32https://blog.csdn.net/as480133937/category_9188655.html
- bosses Mculover666 Of STM32CubeMX Series of tutorials http://www.mculover666.cn/posts/578764034/
边栏推荐
- Esp8266 uses drv8833 drive board to drive N20 motor
- AI system frontier dynamics issue 43: ONEFLOW V0.8.0 officially released; GPU finds human brain connections; AI doctoral online crowdfunding research topic
- What is MySQL transaction
- How to optimize the performance when the interface traffic increases suddenly?
- 复习背诵整理版
- Hcip experiment (03)
- 同事看了我的代码惊呼:居然是这么在Unity中用单例的
- Last week's hot review (7.18-7.24)
- tensorflow 调用多块GPU的一些错误
- 史上最全的立创元器件封装库导入AD详细教程(一直白嫖一直爽)
猜你喜欢

Hcip experiment (01)

复习背诵整理版

我,AI博士生,在线众筹研究主题

推荐系统-协同过滤在Spark中的实现
Learning Weekly - total issue 63 - an open source local code snippet management tool
学习周刊 - 总第 63 期 - 一款开源的本地代码片段管理工具

From the perspective of open source, analyze the architecture design of SAP classic ERP that will not change in 30 years

玩游戏想记录一下自己超神的瞬间?那么就来看一下如何使用Unity截图吧

游戏背包系统,“Inventory Pro插件”,研究学习-----妈妈再也不用担心我不会做背包了(Unity3D)
Learn NLP with Transformer (Chapter 4)
随机推荐
I, AI doctoral student, online crowdfunding research topic
Nowcodertop1-6 - continuous updating
Learn NLP with Transformer (Chapter 3)
How to notify users of wechat applet version update?
上周热点回顾(7.18-7.24)
Implementation of recommendation system collaborative filtering in spark
HCIP(12)
SQL语言(三)
学习路之PHP--TP5.0使用中文当别名,报“不支持的数据表达式”
The B2B2C multi merchant system has rich functions and is very easy to open!!!
HCIA experiment (09)
Why should the hashcode () method be rewritten when rewriting the equals () method
Shell 脚本参数传递时有 \r 换行符问题
C# Newtonsoft.Json 高级用法
100W了!
机智云物联网平台 STM32 ESP8266-01S 简单无线控灯
tensorflow 调用多块GPU的一些错误
信息熵的定义
学习周刊 - 总第 63 期 - 一款开源的本地代码片段管理工具
A troubleshooting record of DirectShow playback problems