当前位置:网站首页>The confusion I encountered when learning stm32
The confusion I encountered when learning stm32
2022-07-02 03:59:00 【Huawei MCU programming】
The year is almost over , Take the last free time to talk about what I used to study STM32 Some puzzles encountered in the process of , Experience gained by solving puzzles 、 Share your experience . I hope to provide some help to some friends who want to learn SCM .

Study STM32 The most important point is that we should make it clear that we learn SMT32 What functions should be realized through it , That is, you need to determine a development project .
If you don't have a goal , Then make a minimum system ; Since we want to establish this project , Then we need to know what components are needed for the smallest system . Minimum system by STM32、 Simulation part 、 There are also control parts . The simulation part includes 、 Analog to digital converter 、 sensor ; The control part includes motor 、 Relays, etc . First understand these things .

The first problem I encountered when I was studying was how I should study . Follow books or watch videos . I think this place is the first place where I stepped on the pit , This is also personal .
I chose to study by reading , Most people who read textbooks have a feeling , Book knowledge is the authority. We should watch it very carefully , Don't miss every knowledge point , With a high degree of concentration and no one to explain, it is easy to get sleepy . That's why I realize that video learning is more suitable for me . Because the video is explained by learned practitioners , They will pick the point and say , Let us know what is the key to learn , It is convenient for us to study .
The second problem is to choose the development method . Just beginning to learn SMT32 We should choose to develop by register 、 Is it developed in the form of standard library or through HAL In the form of Library . I chose the standard library to develop , Because the video I watch is developed with this . At that time, there were more standard libraries written on the forum, and it was easier to find such materials .
For beginners HAL Development is not very suitable , After all, knowledge is still in the reserve stage , Many development principles 、 The workflow may be relatively unfamiliar to beginners ,HAL Library is convenient , But it can't help us understand the internal structure of MCU 、 Build our development thinking , It will let us miss a lot of valuable experience .
Register development requires us to spend a lot of time to be familiar with the function of registers , Which part does it control correspondingly ,32 The register of belongs to the more one , So I don't recommend you to use this method .
Some friends might say HAL Better than standard library , It's true . Let's take a simple example , The standard library is equivalent to a car with manual transmission ,HAL Equivalent to an automatic car , Friends who have driven cars know that cars with automatic transmission are usually easy to drive , But if we learn automatic gear at the beginning instead of manual gear , If you have to drive a car with manual transmission, you may not be able to drive . This is the simplest truth .
Finally, let's talk about my little advice for beginners , It is impossible to learn SCM at once , All knowledge is unlikely to be learned at once . We should learn while doing , If you have any idea, go to the MCU to practice immediately , Never do it after reading or learning , This is not applicable to single chip computers . SCM is more hands-on ability , Learning and doing more is the best way to understand SCM .
The first problem I encountered when I was studying was how I should study . Follow books or watch videos . I think this place is the first place where I stepped on the pit , This is also personal .
I chose to study by reading , Most people who read textbooks have a feeling , Book knowledge is the authority. We should watch it very carefully , Don't miss every knowledge point , With a high degree of concentration and no one to explain, it is easy to get sleepy . That's why I realize that video learning is more suitable for me . Because the video is explained by learned practitioners , They will pick the point and say , Let us know what is the key to learn , It is convenient for us to study .
The second problem is to choose the development method . Just beginning to learn SMT32 We should choose to develop by register 、 Is it developed in the form of standard library or through HAL In the form of Library . I chose the standard library to develop , Because the video I watch is developed with this . At that time, there were more standard libraries written on the forum, and it was easier to find such materials .
For beginners HAL Development is not very suitable , After all, knowledge is still in the reserve stage , Many development principles 、 The workflow may be relatively unfamiliar to beginners ,HAL Library is convenient , But it can't help us understand the internal structure of MCU 、 Build our development thinking , It will let us miss a lot of valuable experience .
Register development requires us to spend a lot of time to be familiar with the function of registers , Which part does it control correspondingly ,32 The register of belongs to the more one , So I don't recommend you to use this method .
Some friends might say HAL Better than standard library , It's true . Let's take a simple example , The standard library is equivalent to a car with manual transmission ,HAL Equivalent to an automatic car , Friends who have driven cars know that cars with automatic transmission are usually easy to drive , But if we learn automatic gear at the beginning instead of manual gear , If you have to drive a car with manual transmission, you may not be able to drive . This is the simplest truth .
Finally, let's talk about my little advice for beginners , It is impossible to learn SCM at once , All knowledge is unlikely to be learned at once . We should learn while doing , If you have any idea, go to the MCU to practice immediately , Never do it after reading or learning , This is not applicable to single chip computers . SCM is more hands-on ability , Learning and doing more is the best way to understand SCM .
The first problem I encountered when I was studying was how I should study . Follow books or watch videos . I think this place is the first place where I stepped on the pit , This is also personal .
I chose to study by reading , Most people who read textbooks have a feeling , Book knowledge is the authority. We should watch it very carefully , Don't miss every knowledge point , With a high degree of concentration and no one to explain, it is easy to get sleepy . That's why I realize that video learning is more suitable for me . Because the video is explained by learned practitioners , They will pick the point and say , Let us know what is the key to learn , It is convenient for us to study .
The second problem is to choose the development method . Just beginning to learn SMT32 We should choose to develop by register 、 Is it developed in the form of standard library or through HAL In the form of Library . I chose the standard library to develop , Because the video I watch is developed with this . At that time, there were more standard libraries written on the forum, and it was easier to find such materials .
For beginners HAL Development is not very suitable , After all, knowledge is still in the reserve stage , Many development principles 、 The workflow may be relatively unfamiliar to beginners ,HAL Library is convenient , But it can't help us understand the internal structure of MCU 、 Build our development thinking , It will let us miss a lot of valuable experience .
Register development requires us to spend a lot of time to be familiar with the function of registers , Which part does it control correspondingly ,32 The register of belongs to the more one , So I don't recommend you to use this method .
Some friends might say HAL Better than standard library , It's true . Let's take a simple example , The standard library is equivalent to a car with manual transmission ,HAL Equivalent to an automatic car , Friends who have driven cars know that cars with automatic transmission are usually easy to drive , But if we learn automatic gear at the beginning instead of manual gear , If you have to drive a car with manual transmission, you may not be able to drive . This is the simplest truth .
Finally, let's talk about my little advice for beginners , It is impossible to learn SCM at once , All knowledge is unlikely to be learned at once . We should learn while doing , If you have any idea, go to the MCU to practice immediately , Never do it after reading or learning , This is not applicable to single chip computers . SCM is more hands-on ability , Learning and doing more is the best way to understand SCM .
Friends who want to learn SCM together , Comment on ” I want to get started “, Have a pleasant surprise , Join us , You can interact with your mentor one-on-one , The rapid growth

边栏推荐
- [personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network
- VS2010 plug-in nuget
- The 8th Blue Bridge Cup single chip microcomputer provincial competition
- Go language naming specification
- A thorough understanding of the development of scorecards - the determination of Y (Vintage analysis, rolling rate analysis, etc.)
- Document declaration and character encoding
- 【leetcode】74. Search 2D matrix
- 【小技巧】使用matlab GUI以对话框模式读取文件
- Recently, the weather has been extremely hot, so collect the weather data of Beijing, Shanghai, Guangzhou and Shenzhen last year, and make a visual map
- 蓝桥杯单片机省赛第十二届第一场
猜你喜欢

Influence of air resistance on the trajectory of table tennis

Déchirure à la main - tri

Jetpack's livedata extension mediatorlivedata

MD5 of Oracle

初识P4语言

The first game of the 12th Blue Bridge Cup single chip microcomputer provincial competition

The original author is out! Faker. JS has been controlled by the community..

Demonstration description of integrated base scheme

Realizing deep learning framework from zero -- Introduction to neural network

接口调试工具模拟Post上传文件——ApiPost
随机推荐
潘多拉 IOT 开发板学习(HAL 库)—— 实验2 蜂鸣器实验(学习笔记)
Sorted out an ECS summer money saving secret, this time @ old users come and take it away
[designmode] Prototype Pattern
毕设-基于SSM电影院购票系统
软件测试人的第一个实战项目:web端(视频教程+文档+用例库)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
初识string+简单用法(二)
初识P4语言
Qt插件之Qt Designer插件实现
Account management of MySQL
蓝桥杯单片机省赛第六届
Analysis of the overall design principle of Nacos configuration center (persistence, clustering, information synchronization)
The 5th Blue Bridge Cup single chip microcomputer provincial competition
5g era is coming in an all-round way, talking about the past and present life of mobile communication
Document declaration and character encoding
【IBDFE】基于IBDFE的频域均衡matlab仿真
The first practical project of software tester: web side (video tutorial + document + use case library)
【leetcode】81. Search rotation sort array II
Monkey测试
蓝桥杯单片机省赛第八届