当前位置:网站首页>STM32 small bug summary
STM32 small bug summary
2022-07-27 08:14:00 【Cimswxy】
This blog will be updated continuously from time to time , The main purpose is to summarize my daily use STM32 Some strange things encountered in SCM bug, Or more unique precautions , So as not to forget later , It's been adjusted for a long time bug, It turns out that there are some special cases .
Here is the table of contents
Timer
Input capture
HAL The library modifies the polarity of the input capture
HAL libraryWhen adjusting the polarity of input capture with library function , First reset the last setting , To modify it successfully :
TIM_RESET_CAPTUREPOLARITY(&htim1,TIM_CHANNEL_1);
TIM_SET_CAPTUREPOLARITY(&htim1,TIM_CHANNEL_1,TIM_INPUTCHANNELPOLARITY_RISING);
- As shown in the above code , In use
TIM_SET_CAPTUREPOLARITY()Function before modifying the polarity of input capture , Use... FirstTIM_RESET_CAPTUREPOLARITY()Function to reset the settings , To modify it successfully , Otherwise, it cannot be modified .( This one is only in STM32F407 Used on a series of single chip computers , I'm not sure whether other series of microcontrollers have this requirement , Of course, it's possible HAL After the library is updated to a certain version, there is no such requirement )
PWM Output
Standard library initialization configuration TIM1、TIM8 Advanced timer
Standard libraryInitializing the advanced timer TIM1、TIM8 when , Different from initializing a normal timer , You need to call one more function to output normally PWM The signal :
TIM_CtrlPWMOutputs(TIM8,ENABLE);
- This one is only in STM32F407 Used on a series of single chip computers , I'm not sure whether other series of microcontrollers have this requirement , Of course, it's possible HAL After the library is updated to a certain version, there is no such requirement
边栏推荐
- C language: random number + Hill sort
- Plato farm is expected to further expand its ecosystem through elephant swap
- Leetcode54. Spiral matrix
- opengauss从库停掉,发现主库无法写入数据
- DEMO:ST05 找文本ID 信息
- [netding cup 2020 Qinglong group]areuserialz (buuctf)
- Dasctf2022.07 enabling game password WP
- 虚拟机克隆
- 数据提取1
- Containerd failed to pull private database image (kubelet)
猜你喜欢

Apache SSI remote command execution vulnerability

Solve the problem of slow batch insertion of MySQL JDBC data

Things come to conform, the future is not welcome, at that time is not miscellaneous, neither love

一文速览EMNLP 2020中的Transformer量化论文

Graph node deployment and testing

Digital transformation driven by enterprise architecture!

2020国际机器翻译大赛:火山翻译力夺五项冠军

Teach you to build a nail warning robot hand in hand

Day111. Shangyitong: integrate nuxt framework, front page data, hospital details page

redis配置文件下载
随机推荐
想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation
idea远程调试
redis配置文件下载
如何在 60 秒内去分析和定位问题?
1176 questions of Olympiad in informatics -- who ranked K in the exam
二零二零年终总结
Lua stateful iterator
The response of the database interface is very slow
"Basic knowledge of PHP" implement mathematical operations in PHP
1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward
Record a PG master-slave setup and data synchronization performance test process
Leetcode54. Spiral matrix
Happy holidays, everyone
阿里云国际版回执消息简介与配置流程
What is the real HTAP? (1) Background article
Data extraction 1
Attack and defense world MFW
Stored procedures and functions
On data security