当前位置:网站首页>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 .

边栏推荐
- [CSDN]C1訓練題解析_第三部分_JS基礎
- Implementing distributed lock with redis
- Win10 install elk
- Flink learning notes (IX) status programming
- DSP data calculation error
- Jestson Nano 从tftp服务器下载更新kernel和dtb
- The number of weak characters in the game (1996)
- What do software test engineers do? Pass the technology to test whether there are loopholes in the software program
- Epollet lessons
- Leetcode daily question (1856. maximum subarray min product)
猜你喜欢

numpy. Reshape() and resize() functions

Solve editor MD uploads pictures and cannot get the picture address

LeetCode每日一题(2212. Maximum Points in an Archery Competition)

文件系统中的目录与切换操作
![Successful graduation [3]- blog system update...](/img/91/72cdea3eb3f61315595330d2c9016d.png)
Successful graduation [3]- blog system update...

Spark overview

Alibaba cloud notes for the first time

Directory and switching operation in file system

Leetcode daily question (2212. maximum points in an archery competition)

Hudi quick experience (including detailed operation steps and screenshots)
随机推荐
LeetCode每日一题(2305. Fair Distribution of Cookies)
PIP configuring domestic sources
Quickly use markdown to edit articles
Jestson nano custom root file system creation (supports the smallest root file system of NVIDIA Graphics Library)
LeetCode每日一题(1996. The Number of Weak Characters in the Game)
Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别
PIP references domestic sources
1922. Count Good Numbers
Patent inquiry website
Leetcode daily question (1024. video sticking)
MySQL Data Definition Language DDL common commands
LeetCode每日一题(968. Binary Tree Cameras)
unbuntu(debian)下TFTP服务器搭建及测试
Leetcode daily question (516. long palindromic subsequence)
The rise and fall of mobile phones in my perspective these 10 years
顺利毕业[3]-博客系统 更新中。。。
[CSDN] C1 training problem analysis_ Part II_ Web Foundation
1300. sum of varied array closed to target
顺利毕业[2]-学生健康管理系统 功能开发中。。。
Learn the contents of 5g toolbox supporting NR through the NR resources provided by MATLAB