当前位置:网站首页>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
边栏推荐
猜你喜欢

MPU6050

Nacos registry

伏英娜:元宇宙就是新一代互联网!
![[kvm] create virtual machine from kickstart file](/img/0e/292ccb6862e29d948ad6ece86b7945.png)
[kvm] create virtual machine from kickstart file

力扣面试题17.04 消失的数字||260.只出现一次的数字(内含位运算知识点)

店铺排名问题,如何解决?

Class starts! See how smardaten decomposes complex business scenarios

【深度学习CPU(番外篇)——虚拟内存】

rman不标记过期备份

Design of environment detection system based on STM32 and Alibaba cloud
随机推荐
How to write SQL statements about field conversion
“蔚来杯“2022牛客暑期多校训练营1 J Serval and Essay(启发式合并)
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)
MPU6050
安装postgis时报找不到“POSTGIS_VERSION”这个函数
SVG--loading动画
C语言:枚举知识点总结
Pointer variables -printf%d and%p meaning
C语言:typedef知识点总结
淘宝商品详情接口(商品详情页面数据接口)
First knowledge of C language (3)
C语言:联合体知识点总结
通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
Whole house WiFi solution: mesh router networking and ac+ap
Nacos registry
C语言力扣第61题之旋转链表。双端队列与构造循环链表
【深度学习CPU(番外篇)——虚拟内存】
Do you have a boss to help me check whether the parameter configuration of the Flink SQL connection Kafka authentication Kerberos is wrong
Press the missing number of interview question 17.04 | | 260. the number that appears only once (including bit operation knowledge points)
After I get the winfrom specific control ID from the database, I need to find the corresponding control through this ID and assign a value to the text text of the control. What should I do