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

边栏推荐
- NR technology -- MIMO
- Make the most basic root file system of Jetson nano and mount NFS file system on the server
- Leetcode daily question (1362. closest divisors)
- Nr--- Pusch I: sorting out the agreement process
- Leetcode daily question (745. prefix and suffix search)
- Chromium Embedded Framework (CEF) 介绍
- Leetcode daily question (1856. maximum subarray min product)
- [combinatorics] Introduction to Combinatorics (context of combinatorics | skills of combinatorics | thought of combinatorics 1: one-to-one correspondence)
- Successful graduation [3]- blog system update...
- Jestson nano downloads updated kernel and DTB from TFTP server
猜你喜欢

Code word in NR

The cyclic shift of PUCCH in NR channel is generated by MATLAB
![[male nanny style] teach you to open the first wechat applet](/img/a1/a571609ee846adf75506a88a629906.png)
[male nanny style] teach you to open the first wechat applet

Development of electrical fire system

Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别

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

Difference of EOF

Flink learning notes (VIII) multi stream conversion

UCI and data multiplexing are transmitted on Pusch (Part 4) --small block lengths

Hudi data management and storage overview
随机推荐
Hudi data management and storage overview
UCI and data multiplexing are transmitted on Pusch (Part 4) --small block lengths
LeetCode每日一题(968. Binary Tree Cameras)
Electronic product design, MCU development, circuit cloning
PolyWorks script development learning notes (4) - data import and alignment using file import
顺利毕业[3]-博客系统 更新中。。。
LeetCode每日一题(2115. Find All Possible Recipes from Given Supplies)
Jetson nano custom boot icon kernel logo CBOOT logo
1922. Count Good Numbers
Win10安装ELK
Nr-prach: access scenario and access process
Intelligent home design and development
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 5 --blinker_ MIOT_ MULTI_ Outside (lighting technology app + Xiaoai classmate control socket multiple jacks)
Flink learning notes (10) Flink fault tolerance mechanism
IDEA远程断点调试jar包项目
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
[successful graduation] [1] - visit [student management information system]
Learning C language from scratch -- installation and configuration of 01 MinGW
LeetCode每日一题(931. Minimum Falling Path Sum)
Nr--- Pusch I: sorting out the agreement process