当前位置:网站首页>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/
边栏推荐
- 大佬们,flink cdc table api , mysql to mysql,一个应用程序,可以
- tensorflow入门
- 一篇看懂:IDEA 使用scala 编写wordcount程序 并生成jar包 实测
- 机智云物联网平台 STM32 ESP8266-01S 简单无线控灯
- shell-第五章作业
- SQL语言(三)
- MySQL advanced statement (I) (there is always someone who will make your life no longer bad)
- 企业实践开源的动机
- [information system project manager] thought map series essence summary
- 【高并发】如何实现亿级流量下的分布式限流?这些理论你必须掌握!!
猜你喜欢

SQL语言(四)

企业实践开源的动机

A troubleshooting record of DirectShow playback problems
Learn NLP with Transformer (Chapter 2)

【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源

Nowcodertop1-6 - continuous updating

Review recitation finishing version

I, AI doctoral student, online crowdfunding research topic

Nowcodertop12-16 - continuous updating

Some usages of beautifulsoup
随机推荐
mysql事务是什么
MLX90640 红外热成像仪测温模块开发笔记(五)
BeautifulSoup的一些用法
Ue4.26 source code version black screen problem of client operation when learning Wan independent server
ESP8266 使用 DRV8833驱动板驱动N20电机
MySQL advanced statement (I) (there is always someone who will make your life no longer bad)
The University of Gottingen proposed clipseg: a model that can perform three segmentation tasks simultaneously using text and image prompts
MySQL | GROUP_CONCAT函数,将某一列的值用逗号拼接
让运动自然发生,FITURE打造全新生活方式
[flask advanced] deeply understand the application context and request context of flask from the source code
feign客户端请求之LoadBalancerLifecycle生命周期
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
Hcip experiment (03)
三万字速通Servlet
The most detailed MySQL index analysis (mind map is attached at the end of the article)
How can you use unity without several plug-ins? Unity various plug-ins and tutorial recommendations
Implementation of recommendation system collaborative filtering in spark
Learning Weekly - total issue 63 - an open source local code snippet management tool
BGP federal experiment
A troubleshooting record of DirectShow playback problems