当前位置:网站首页>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/
边栏推荐
- SQL语言(五)
- [递归] 938. 二叉搜索树的范围和
- HCIA experiment (06)
- JDBC的APi补充
- Hcip experiment (02)
- C3d model pytorch source code sentence by sentence analysis (III)
- [high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
- 一篇看懂:IDEA 使用scala 编写wordcount程序 并生成jar包 实测
- 【flask高级】结合源码解决flask经典报错:Working outside of application context
- 新能源销冠宏光MINIEV,有着怎样的产品力?
猜你喜欢

Nowcodertop12-16 - continuous updating

redis 哨兵,高可用的执行者

学习路之PHP--Phpstudy 提示 Mysqld.Exe: Error While Setting Value ‘NO_ENGINE_SUBSTITUTION 错误的解决办法

Esp8266 uses drv8833 drive board to drive N20 motor

HCIA experiment (06)

Learn NLP with Transformer (Chapter 7)

复习背诵整理版
![[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context](/img/3e/2cc3ff7e6e45ba4fcf3a0f5c2bf478.png)
[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context

Hcip experiment (04)

Hcip experiment (02)
随机推荐
30000 word express Servlet
MLX90640 红外热成像仪测温模块开发笔记(五)
软件测试技术之跨平台的移动端UI自动化测试(上)
我,AI博士生,在线众筹研究主题
[high concurrency] how to realize distributed flow restriction under 100 million level traffic? You must master these theories!!
哥廷根大学提出CLIPSeg:一个使用文本和图像prompt能同时作三个分割任务的模型
AI系统前沿动态第43期:OneFlow v0.8.0正式发布;GPU发现人脑连接;AI博士生在线众筹研究主题
[flask advanced] deeply understand the application context and request context of flask from the source code
100W!
游戏背包系统,“Inventory Pro插件”,研究学习-----妈妈再也不用担心我不会做背包了(Unity3D)
ArcMap无法启动解决方法
Nowcodertop7-11 - continuous updating
syncronized锁升级的过程
I, AI doctoral student, online crowdfunding research topic
txt转csv文件,隔行出现空行
mysql高级语句(一)(总有一个人的出现,让你的生活不再继续糟糕)
【云享新鲜】社区周刊·Vol.72- 2022华为开发者大赛中国区首场开幕式启动;华为云KooMessage火热公测中…
[cloud enjoys freshness] community weekly · Vol 72 - the first opening ceremony of the 2022 Huawei developer competition in China was launched; Huawei cloud koomessage is in hot public beta
HCIA experiment (06)
SQL语言(三)