cancel
Showing results for 
Search instead for 
Did you mean: 

usb cdc, compiled and enumerated, but don't know how to use

infoinfo991
Associate III
Posted on November 07, 2011 at 08:08

I've compiled the USB CDC code from the STM32F4Discovery example code using YAGARTO. It enumerates, the .inf driver is working, I can open the COM port using Realterm.

I have programmed the DataRx and DataTx callbacks in cdc_core_if.c to toggle a LED specific to which one was invoked

I can open up the terminal, type a character into it, and that LED will turn on

But my problem is that I can't get the LED to turn off, but my code is supposed to toggle this LED on every callback

The TX indicator inside Realterm will blink on the first keystroke, but on the second keystroke, the indicator will light up and stay lit

How am I supposed to properly implement a virtual serial port using USB CDC?

#usb-cdc-com-serial
1 REPLY 1
domen23
Associate II
Posted on November 10, 2011 at 13:37

How about you show us the changes, since that's the only led handling, and where the problem lies?