当前位置:网站首页>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/
边栏推荐
- The B2B2C multi merchant system has rich functions and is very easy to open!!!
- BGP federal experiment
- Learn PHP -- phpstudy tips mysqld Exe: Error While Setting Value ‘NO_ ENGINE_ Solution of substitution error
- HDD Hangzhou station full experience
- Learn NLP with Transformer (Chapter 6)
- syncronized锁升级的过程
- Learn NLP with Transformer (Chapter 4)
- Esp32c3 based on the example tutorial of esp32 Rainmaker development under Arduino framework
- [flask advanced] combined with the source code, explain the operation mechanism of flask (in and out of the stack)
- MLX90640 红外热成像仪测温模块开发笔记(五)
猜你喜欢

Esp32c3 based on the example tutorial of esp32 Rainmaker development under Arduino framework

从宏观到微观 零基础 详解bert

Shell 脚本参数传递时有 \r 换行符问题

HCIA experiment (10) nat

AI系统前沿动态第43期:OneFlow v0.8.0正式发布;GPU发现人脑连接;AI博士生在线众筹研究主题

用Unity不会几个插件怎么能行?Unity各类插件及教程推荐

学习路之PHP--TP5.0使用中文当别名,报“不支持的数据表达式”

UE4.26源码版学习广域网独立服务器时遇到的客户端运行黑屏问题

Learn NLP with Transformer (Chapter 6)

B2B2C多商户系统功能丰富,极易二开!!!
随机推荐
feign客户端请求之LoadBalancerLifecycle生命周期
Learn NLP with Transformer (Chapter 6)
三万字速通Servlet
Esp8266 uses drv8833 drive board to drive N20 motor
Tree dynamic programming
微信小程序版本更新如何通知用户?
JS 将伪数组转换成数组
NowCoderTOP7-11——持续更新ing
为什么重写equals()方法必须要重写hashCode()方法
redis 哨兵,高可用的执行者
[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context
HDD杭州站全程体验有感
I, AI doctoral student, online crowdfunding research topic
Learn NLP with Transformer (Chapter 6)
HCIP(12)
[high concurrency] how to realize distributed flow restriction under 100 million level traffic? You must master these theories!!
Flask framework - session and cookies
Learn NLP with Transformer (Chapter 3)
The integration of two in one has a long way to go
mysql事务是什么