AnsweredAssumed Answered

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

Question asked by zhao.frank on Nov 7, 2011
Latest reply on Nov 10, 2011 by Domen Puncer
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?

Outcomes