当前位置:网站首页>【USB Host】STM32H7 CubeMX移植带FreeRTOS的USB Host读取U盘,USBH_Process_OS卡死问题,有个值为0xA5A5A5A5
【USB Host】STM32H7 CubeMX移植带FreeRTOS的USB Host读取U盘,USBH_Process_OS卡死问题,有个值为0xA5A5A5A5
2022-07-24 05:20:00 【喵喵锤锤你小可爱】
板子:NUCLEO-H723ZG
被读取的U盘是一张SD卡加读卡器

这个卡死时卡死在下图中osMessageQueueGet处,而且for循环中osMessageQueueGet第一次运行通过,第二次卡死了。
进入函数中,逐次查找发现是卡在了这里,原因是这个uxItemSize大小是错的,值居然为 0xA5A5A5A5。
想了想可能是因为CubeMX没有给USBH_Process_OS Task分配足够用的stack_size导致,试了一下usbh_conf.h中的USBH_PROCESS_STACK_SIZE大小至少要为128 *11 bytes才能正常运行。修改为128 *3 bytes时,U盘知识的亮起,应该是板子识别到设备,对U盘供电了。建议设置为128 *16 bytes。
在CubeMX中对应于下图中框选位置。当然可以自己修改代码为无OS的,虽然CubeMX在勾选了FreeRTOS后USB_HOST就只能Enable the support of an RTOS。
边栏推荐
- LSTM神经网络
- Likeshop single merchant mall system is built, and the code is open source without encryption
- Delete the weight of the head part of the classification network pre training weight and modify the weight name
- Two architectures of data integration: ELT and ETL
- 【activiti】个人任务
- What do programmers often mean by API? What are the API types?
- "Statistical learning methods (2nd Edition)" Li Hang Chapter 16 principal component analysis PCA mind map notes and after-school exercise answers (detailed steps) PCA matrix singular value Chapter 16
- Unknown collation: ‘utf8mb4_ 0900_ ai_ Solution of CI '
- Loss after cosine annealing decay of learning rate
- 《统计学习方法(第2版)》李航 第14章 聚类方法 思维导图笔记 及 课后习题答案(步骤详细) k-均值 层次聚类 第十四章
猜你喜欢

Chapter III summary of linear model

【activiti】activiti环境配置

Help transform traditional games into gamefi, and web3games promote a new direction of game development

学习率余弦退火衰减之后的loss

Multi merchant mall system function disassembly lecture 06 - platform side merchant settlement agreement

【activiti】流程实例

Similarities and differences of ODS, data mart and data warehouse
![Use streaming media to transfer RSTP to the Web terminal for playback (II) [review]](/img/b9/2c0e6eb19acaa2356ff49f6e272826.png)
Use streaming media to transfer RSTP to the Web terminal for playback (II) [review]

多商户商城系统功能拆解12讲-平台端商品评价

Multi merchant mall system function disassembly lecture 07 - platform side commodity management
随机推荐
《统计学习方法(第2版)》李航 第15章 奇异值分解 SVD 思维导图笔记 及 课后习题答案(步骤详细)SVD 矩阵奇异值 十五章
快速打开管理工具的命令
Are you still trying to limit MySQL paging?
"Statistical learning methods (2nd Edition)" Li Hang Chapter 14 clustering method mind map notes and after-school exercise answers (detailed steps) K-means hierarchical clustering Chapter 14
SqlServer 完全删除
目标检测带标签数据增强代码
列表写入txt直接去除中间的逗号
Multi merchant mall system function disassembly Lecture 11 - platform side commodity column
《统计学习方法(第2版)》李航 第十三章 无监督学习概论 思维导图笔记
Subsystem technology and ecology may memorabilia | square one plan launched, Boca launched xcm!
如何在网页上下载视频
学习率优化策略
数据归一化
数据集成的两种架构:ELT和ETL
likeshop | 单商户商城系统代码开源无加密-PHP
第五章神经网络
labelme转voc代码中的一个小问题
《机器学习》(周志华)第2章 模型选择与评估 笔记 学习心得
解决ModularNotFoundError: No module named “cv2.aruco“
《统计学习方法(第2版)》李航 第14章 聚类方法 思维导图笔记 及 课后习题答案(步骤详细) k-均值 层次聚类 第十四章