当前位置:网站首页>Stm32subemx create semaphore exception analysis
Stm32subemx create semaphore exception analysis
2022-06-09 16:56:00 【Running race rabbit】
One 、 Encountered a strange problem , Without releasing the semaphore , But it can get the semaphore once and then enter the blocking state


Two 、 solve the problem
1、 Abnormal semaphore appears Create semaphores The function of is vSemaphoreCreateBinary(); ( Note that v), This is an old version Free RTOS Semaphore creation function , When using it to create semaphores UBaseType_t uxMessagesWaiting The default value of is 1,
This means creating semaphore defaults count The value is 1, Therefore, it is possible to obtain a semaphore and enter the blocking state without releasing the semaphore .
2、 The change semaphore creation function is xSemaphoreCreateBinary(); UBaseType_t uxMessagesWaiting The default value of is 0, This is the right situation .
3、 The problem is coming. , I use rtos The version is V10.3 , It's a new version , use stm32cubeide Why is it that semaphores are created vSemaphoreCreateBinary();
3、 ... and 、 Suggest
STM32CUBEMX The configuration of peripherals is very convenient , Is worth to recommend , But yes. Free RTOS Add another layer of packaging , Not very comfortable to use , It is recommended that peripherals can be configured with software ,Free RTOS It is better to add the original version .
边栏推荐
- With so many universities, the number of people taking the postgraduate entrance examination has risen sharply! Up to 70%!
- 【经验分享】Django开发中常用到的数据库操作总结
- Easyexcel merge cells
- 使用PrimeCache加速你的电脑!
- pyepics数组 -- 4
- 面试题—华为机试之知识点补充
- pyepics --Auto-saving: simple save/restore PVs
- leetcode:189. Rotation array
- 问题 D: 马走日
- R 安装/更新 package 报错:failed to lock directory ‘/home/anaconda3/envs/R4.1.2/lib/R/library’
猜你喜欢

如何查找和删除Endnote中重复的文献

Swagger login address (error may be reported when logging in for the first time)

After reading it, I will analyze the whole process from packet capturing to interface testing

STM32CUBEMX创建信号量异常分析
![[East China Normal University] information sharing for the first and second examinations](/img/f9/68b5b5ce21f4f851439fa061b477c9.jpg)
[East China Normal University] information sharing for the first and second examinations

Error occurred when pychart installs the scratch Library‘
How to use cloud notes to record and sort out the graduation notes given by teachers to students

DZ插件-免费DZ插件大全汇集所有插件功能

How to find and delete duplicate documents in endnote

中原银行统一日志平台
随机推荐
杭州期货开户,上哪里开户安全可靠?
【華東師範大學】初試複試考研資料分享
Top level templates (including contract, tender, graduation defense and other templates in all aspects of work)
ArcGIS Pro优化方法
记一次找因redis使用不当导致应用卡死bug的过程
使用tesseract识别图片中的文字
干货|移动端App自动化之触屏操作自动化
Pyepics array -- 4
企业级服务端防重点思路
Huawei cloud | enterprise digital transformation, security first
关于在C#中因没有添加:mysql.data.dll 而报错这件事
pyepics --Auto-saving: simple save/restore PVs
【计组期末复习四】输入输出系统
Using kubekey to build kubernetes/kubesphere environment
vulnstack系列靶场一
Interview questions - Supplement of Huawei computer test knowledge points
Girl, why are you programming
Error occurred when pychart installs the scratch Library‘
Installing redis and PHP redis extensions under Windows
构建绵羊(非常见物种)BSgenome参考基因组