当前位置:网站首页>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
边栏推荐
- pytorch_demo1
- 一文速览EMNLP 2020中的Transformer量化论文
- [target detection] yolov6 theoretical interpretation + practical test visdrone data set
- 阿里云国际版回执消息简介与配置流程
- 虚拟机克隆
- Plato farm is expected to further expand its ecosystem through elephant swap
- Methods of server network testing
- 如何获取广告服务流量变现数据,助力广告效果分析?
- [MRCTF2020]PYWebsite 1
- 1176 questions of Olympiad in informatics -- who ranked K in the exam
猜你喜欢

我用字符画出了一个谷爱凌!

Qt Creator代码风格插件Beautifier

How to update PIP3? And running PIP as the 'root' user can result in broken permissions and conflicting behavior

Record a PG master-slave setup and data synchronization performance test process

How to play with the purchase of SAP variant materials? Look at this article and you will understand

Lua iterator

How to obtain the cash flow data of advertising services to help analyze the advertising effect?

QT creator code style plug-in beautifier

SSTI template injection

Happy holidays, everyone
随机推荐
我用字符画出了一个谷爱凌!
How to play with the purchase of SAP variant materials? Look at this article and you will understand
Graph node deployment and testing
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
Redis configuration file download
好吃难吃饱七分为宜;好喝难喝醉三分为佳
QingChuang technology joined dragon lizard community to build a new ecosystem of intelligent operation and maintenance platform
Qt Creator代码风格插件Beautifier
My senior
数据提取2
如何获取广告服务流量变现数据,助力广告效果分析?
Local Oracle reported ora-12514: tns: the listener cannot recognize the requested service at present
All in one 1251 - Fairy Island for medicine (breadth first search)
1178 questions of Olympiad in informatics -- ranking of grades
You may need an additional loader to handle the result of these loaders.
Luogu super Mary game
Plato farm is expected to further expand its ecosystem through elephant swap
Five day travels to Beijing
Demo:st05 find text ID information
Dasctf2022.07 enabling game password WP