大工至善|大学至真分享 http://blog.sciencenet.cn/u/lcj2212916

博文

[转载]【电子技术】【2014.11】基于STM32F405的USB通信

已有 171 次阅读 2020-11-17 19:20 |系统分类:科研笔记|文章来源:转载


本文为瑞典布莱金厄理工学院(作者:DONATAS KATEIVA)的学士论文,共22页。

 

本文的目标是测试定制板与PC机之间的高速USB 2.0通信。波罗的海工程公司开发了一个基于ST微电子公司微控制器的硬件平台。单片机STM32F405具有多种外围功能,其中之一是高速USB2.0 OTG单元。波罗的海工程公司正计划在未来的项目中使用此功能,但目前他们还没有为这种通信链路实现软件代码的经验。工作重点是编程并建立PC机与微控制器之间的连接。介绍了如何使用CooCox-CoIDE建立开发环境,以及如何借助libusb库用C语言编写程序。该项目的结果是成功地建立了USB FS通信。此外,对批量传输进行了基准测试,达到了大约2MB/s的带宽

 

The goal of this thesis work is to test the High Speed USB 2.0 communication between a custom board and a PC. Baltic Engineering AB has developed a hardware platform based on a microcontroller from ST microelectronics. The microcontroller STM32F405 is equipped with many peripheral functions, one of which is a High Speed USB 2.0 OTG unit. Baltic Engineering AB is planning to use this function in future projects but at the moment they have no experience of implementing software code for this type of communication link. The work is focused on programming and establishing the connection between the PC and the microcontroller. It is explained how to set up the development environment with CooCox CoIDE and how to write programs in C programming language with the help of the libusb library. The outcome of the project was a successful establishment of the USB FS communication. Furthermore, a bulk transfer was benchmarked and reached the bandwidth of approximately 2 Mb/s.

 

1.  引言

2.  项目背景

3.  建立工作环境

4.  USB FS

5.  USB HS

6.  结论

7.  附录


更多精彩文章请关注公众号:205328s611i1aqxbbgxv19.jpg




http://blog.sciencenet.cn/blog-69686-1258777.html

上一篇:[转载]【计算机科学】【2020.01】基于Python的能耗预测深度学习方法
下一篇:[转载]【计算机科学】【2017】多层网络交互作用对神经网络动力学的影响

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2021-1-15 23:23

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部