![]() |
USB Component
Version 6.3
MDK-Professional Middleware for USB Device and Host
|
This example application shows how to connect an USB CDC ACM Device to a development board. It is a simple demonstration on how to send data from the USB Host to the attached USB CDC ACM Device. Here, the USB Host sends "Test!" to the USB CDC ACM Device and stores all incoming messages from the device in the variable receive_buf
.
The following picture shows an exemplary connection of the development board and an USB CDC ACM Device implemented on another development board. This USB CDC ACM Device is connected to a PC via RS232 to check incoming messages.
Create a new project in MDK. In this example, we are using the MCBSTM32F400 board with the STM32F407IGHx device. In the Manage Run-Time Environment window, select the following components:
Click the Resolve button and then OK. Your Project should look like this:
Before building the project, you need to edit these configuration files:
Before building and downloading the project to the target, make sure that the correct debugger is set in the Options for Target dialog (ALT + F7). You may then build and download the example project to the evaluation board using the µVision commands:
After these steps, the project should start executing on your evaluation kit. In case of errors, refer to the Evaluation Board User's Guide for configuration information.