CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB CDC issue?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JoeR



Joined: 26 Jul 2008
Posts: 3

View user's profile Send private message

USB CDC issue?
PostPosted: Tue Jul 29, 2008 7:46 am     Reply with quote

Anyone else experience this.

I am using the USB CDC library on a PIC18F45550. And it works, usually.

If my pc host app is connected and talking across the USB, no problems.
If the USB is disconnected from the PC, no problem.

IF the USB is connected and the board is running, but the App is not running/exchanging data it will lock in about 2 minutes.

Is there a buffer thats filling...?
Should I catch the usb interrupt?

Thanks,
Joe
abraxas
Guest







same thing
PostPosted: Mon Aug 25, 2008 1:43 pm     Reply with quote

got the same problem as you
alex1784



Joined: 23 Aug 2008
Posts: 2

View user's profile Send private message

PostPosted: Tue Aug 26, 2008 1:22 pm     Reply with quote

Hi. I am a novice at this, but I recommend you before sending any data to USB module, verify flag of conextion:

Code:

 if(usb_cdc_carrier.dte_present){
...//send data
   }

Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group