当前位置:网站首页>Installation and use of stm32cubemx (5.3.0)
Installation and use of stm32cubemx (5.3.0)
2022-07-29 04:13:00 【Zhili】
One 、 Download and install :
https://blog.csdn.net/ybhuangfugui/article/details/52225736
Two 、 Official download latest CubeMX And library files
http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html
Trampled pit
1. appear Cube Cannot be opened , It cannot be unloaded . as a result of java There is a problem , Remove the heavy safety
2. Encounter can generate MDK engineering , But there is an error opening the compilation . The reason is the Chinese path , actually , So Nothing can be Chinese path , Including installation path , The library path ,MDK Project generation path , It's numb
3、 ... and 、 Use :
https://blog.csdn.net/u013229188/article/details/88257866
Four 、CubeMx Shortcut key
https://blog.csdn.net/baidu_39603247/article/details/105614438
5、 ... and 、 The Blue Bridge Cup begins
EEPROM IIC
IIC Explain :https://blog.csdn.net/qq_45689790/article/details/114177991?
LED and LCD The question of conflict
https://blog.csdn.net/qq_45689790/article/details/114645049?
summary :
First step engineering +Rcc
First step engineering +Rcc
The second step LCD, Pull file , test
sprintf(buf,“”,val);
The third step cube Various initializations
PWM: Timer frequency calculation and duty cycle calculation formula
Step four Add the necessary startup code
LED KEY
PWM: Start the function +CCR2
ADC: Start the function + Acquisition function
Step five The main function tests each module
It's written in : /LED/ /KEY/ … form , Convenient for later operation
Step six Start to work on the questions , First adjust the graphic display interface
What variables are used to define what variables , Zero first
Review before competition :
1 Timer interrupt configuration :
cube To configure : Clock source - cycle - Interrupt check
Code changes : Add interrupt start function , Add callback function
ADC:
cube To configure : Configure pins
Code changes : Add start function , Add a value acquisition function , And sprintf Show
PWM
cube To configure : The clock - Pin - cycle
Code changes : Add start function , Set up CCR2C initial value
Input capture
cube To configure : The clock - Pin - cycle - Interrupt check
Code changes : Add interrupt function , Add callback function , Read value and reset value .
IIC
边栏推荐
- Three tier architecture of enterprise network
- Safari's compatibility with Z-index
- SQL time fuzzy query datediff() function
- Database SQL statement realizes function query of data decomposition
- pat A1041 Be Unique
- HCIP BGP
- Whole house WiFi solution: mesh router networking and ac+ap
- Openfeign asynchronous call problem
- When defining an array, the size must be constant
- %s. %c, character constant, string constant, const char*, pointer array, string array summary
猜你喜欢
全屋WiFi方案:Mesh路由器组网和AC+AP
不会就坚持68天吧 狒狒吃香蕉
Design of environment detection system based on STM32 and Alibaba cloud
Whole house WiFi solution: mesh router networking and ac+ap
通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
Const char* and char*, string constants
信号处理中的反傅里叶变换(IFFT)原理
Basic configuration of BGP - establish peers and route announcements
Data mining -- Introduction to the basis of association analysis (Part 1)
从淘宝,天猫,1688,微店,京东,苏宁,淘特等其他平台一键复制商品到拼多多平台(批量上传宝贝详情接口教程)
随机推荐
MySQL Part 3
不会就坚持70天吧 数组中第k大的数
C语言实现三子棋游戏(详解)
Press the missing number of interview question 17.04 | | 260. the number that appears only once (including bit operation knowledge points)
有一种密码学专用语言叫做ASN.1
安装ros的laser_scan_matche库所遇到的问题(一)
伏英娜:元宇宙就是新一代互联网!
flink-sql 如何设置 sql执行超时时间
Mmdetection preliminary use
How to solve the problem of store ranking?
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
Differences and principles of bio, NiO and AIO
[untitled]
The data source is SQL server. I want to configure the incremental data of the last two days of the date field updatedate to add
一个公司的面试笔记
Function pointer and callback function
Fu Yingna: Yuan universe is the new generation of Internet!
Note: restframe work records many to one tables, how to serialize in that table (reverse query)
Database SQL statement realizes function query of data decomposition
Const read only variable constant