当前位置:网站首页>【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。
边栏推荐
- Chapter III summary of linear model
- Loss after cosine annealing decay of learning rate
- 数据库连接数过大
- 多商户商城系统功能拆解03讲-平台端商家管理
- Multi merchant mall system function disassembly Lecture 10 - platform end commodity units
- PLSQL query data garbled
- 《机器学习》(周志华) 第5章 神经网络 学习心得 笔记
- 《统计学习方法(第2版)》李航 第15章 奇异值分解 SVD 思维导图笔记 及 课后习题答案(步骤详细)SVD 矩阵奇异值 十五章
- Watermelon book / Pumpkin book -- Chapter 1 and 2 Summary
- 目标检测带标签数据增强代码
猜你喜欢

jestson安装ibus输入法

Flink watermark mechanism

Delete the weight of the head part of the classification network pre training weight and modify the weight name

《统计学习方法(第2版)》李航 第16章 主成分分析 PCA 思维导图笔记 及 课后习题答案(步骤详细)PCA 矩阵奇异值 第十六章

The female colleague of the company asked me to go to her residence to repair the computer at 11 o'clock at night. It turned out that disk C was popular. Look at my move to fix the female colleague's

"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

如何在网页上下载视频

《机器学习》(周志华) 第5章 神经网络 学习心得 笔记

《机器学习》(周志华) 第3章 线性模型 学习心得 笔记

【activiti】网关
随机推荐
Positional argument after keyword argument
Chapter 5 neural network
Numpy cheatsheet
LSTM神经网络
[activiti] activiti process engine configuration class
[virtualization] how to convert virtual machines from workstation to esxi
Multi merchant mall system function disassembly Lecture 14 - platform side member level
Multi merchant mall system function disassembly lecture 12 - platform side commodity evaluation
Xshell远程访问工具
labelme转voc代码中的一个小问题
"Statistical learning methods (2nd Edition)" Li Hang Chapter 17 latent semantic analysis LSA LSI mind mapping notes and after-school exercise answers (detailed steps) Chapter 17
Delete the weight of the head part of the classification network pre training weight and modify the weight name
公众号开发自定义菜单和服务器配置同时启用
jestson安装ibus输入法
统计信号处理小作业——瑞利分布噪声中确定性直流信号的检测
"Statistical learning methods (2nd Edition)" Li Hang Chapter 13 introduction to unsupervised learning mind map notes
多商户商城系统功能拆解10讲-平台端商品单位
《机器学习》(周志华)第2章 模型选择与评估 笔记 学习心得
Problems in SSM project configuration, various dependencies, etc. (for personal use)
【activiti】activiti环境配置