cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3 USB as Virtual Comm port

mattfox
Associate II
Posted on January 28, 2014 at 18:41

I'm working on an STM32F373C8.  I've been working a lot with the usb as a virtual comm port and I haven't had any problems.  However, I'm currently working on an application where I only have the microcontroller sending information over USB back to a server, and no communication the other way.  As of right now, I'm getting into this loop, but then usb_packet_sent never becomes true again:

if

( usb_packet_sent == 1 ){

CDC_Send_DATA(usart1_rx_buffer.

databuffer

, usart1_rx_buffer.

length

);

circBufferReset(&usart1_rx_buffer);

}

Has anyone ever encountered this?  I'm not doing anything differently in my code other not receiving packets via usb.  Thanks in advance for any help!

0 REPLIES 0