当前位置:网站首页>Stm32-hal library learning, using cubemx to generate program framework
Stm32-hal library learning, using cubemx to generate program framework
2022-07-03 09:42:00 【two thousand and twenty-one point zero nine】
Knowledge comes from teacher Wei Dongshan 7 Internet of things course .
Before using the standard library development STM32 Many files need to be configured separately when the program , Now use HAL library , Direct use cubeMX This step can be omitted .
One 、cubeMX Build a new project
Click Select MCU Model

Search for STM32F103C8

Here you can download the reference materials of the chip

Click on the top right corner START Start the operation , Click on PA1, choice GPIO_OUT And select output mode .( because stm32mini Development board LED The lamp interface is PA1 So choose PA1)


Click the production button in the upper right corner (GENERATE CODE)

Name the project 、 Select the project save directory 、 choice IDE by MDK-ARM(KEIL by Keil Software The company's IDE, After being ARM Acquisition .)
Choose to produce .c/.h file .

Finally, click on the top right corner ,GENERATE CODE Production engineering . Next, you can choose to open the folder , Or open the project directly .

use keil After opening the project , Be sure to follow cubeMX Standard writing procedures , Write the program between the beginning and the end .

边栏推荐
- Raspberry pie installation SciPy
- Flink learning notes (IX) status programming
- [CSDN]C1訓練題解析_第三部分_JS基礎
- Arduino handles JSON data, arduinojson assistant
- Development of fire power monitoring system
- [CSDN] C1 training problem analysis_ Part II_ Web Foundation
- Getting started with shell programming
- C language enumeration type
- Nr-prach:prach format and time-frequency domain
- The number of weak characters in the game (1996)
猜你喜欢

Directory and switching operation in file system

【男保姆式】教你打开第一个微信小程序

Apply for domain name binding IP to open port 80 record

CATIA automation object architecture - detailed explanation of application objects (III) systemservice
![Uncle Wang's blog directory [constantly updating]](/img/91/72cdea3eb3f61315595330d2c9016d.png)
Uncle Wang's blog directory [constantly updating]

UCI and data multiplexing are transmitted on Pusch (Part VI) -- LDPC coding

全球KYC服务商ADVANCE.AI 活体检测产品通过ISO国际安全认证 产品能力再上一新台阶

PolyWorks script development learning notes (4) - data import and alignment using file import

文件系统中的目录与切换操作

The rise and fall of mobile phones in my perspective these 10 years
随机推荐
UCI and data multiplexing are transmitted on Pusch (Part VI) -- LDPC coding
解决Editor.md上传图片获取不到图片地址问题
数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展
JMX、MBean、MXBean、MBeanServer 入门
Process communication - semaphore
Leetcode daily question (931. minimum falling path sum)
Uncle Wang's blog directory [constantly updating]
1300. sum of varied array closed to target
端午节快乐!—— canvas写的粽子~~~~~
基于opencv实现桌面图标识别
Jestson Nano 从tftp服务器下载更新kernel和dtb
[CSDN]C1训练题解析_第四部分_Web进阶
Leetcode daily question (1362. closest divisors)
Development of fire evacuation system
Hudi quick experience (including detailed operation steps and screenshots)
用Redis实现分布式锁
Leetcode daily question (745. prefix and suffix search)
[CSDN]C1训练题解析_第三部分_JS基础
LeetCode每日一题(968. Binary Tree Cameras)
LeetCode每日一题(516. Longest Palindromic Subsequence)