Problems receiving data over USB with CDC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ToVa_285016
Level 5
Level 5
100 replies posted 50 replies posted 50 questions asked

Hi,

   

I have a program set up to transmit ADC data over a USBUART connection in CDC mode.  I am having no problem connecting and sending data, but I cannot receive data.  The USBUART_DataIsReady()is simply never ready. 

   

Another strange thing is that when I do send a character over a terminal program, the constant output is obviously affected - it seems to slow down and appear jerky in transmission.

   

 Any help would be greatly appreciated.  See attached project.

   

Thank you,

   

 Tom

0 Likes
1 Solution
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

missing  ! in line 35  must be so:
35     while(!USBUART_GetConfiguration());

View solution in original post

0 Likes
2 Replies
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

missing  ! in line 35  must be so:
35     while(!USBUART_GetConfiguration());

0 Likes
ToVa_285016
Level 5
Level 5
100 replies posted 50 replies posted 50 questions asked

 Thank you so much, works like a charm now!

0 Likes