||
本文为瑞典布莱金厄理工学院(作者: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.
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-26 13:27
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社