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

[solved]major bug? USB CDC stops sending Data on PIC18F25K50
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Emmo



Joined: 02 Feb 2017
Posts: 14

View user's profile Send private message

PostPosted: Wed Feb 08, 2017 11:33 am     Reply with quote

okay, got new chips with other version number (1624PT8) and other revision id today. They are not working, too. I'm getting crazy. If there is somebody who has got a PIC18F25K50-I/SO at home, please try out the code above.
I'm still confused why the pic is sending a stall command and the pic in DIP package not. Here you can see that:




I'm trying now to contact CCS Support. Hope they can help.
Emmo



Joined: 02 Feb 2017
Posts: 14

View user's profile Send private message

PostPosted: Tue Feb 21, 2017 5:34 am     Reply with quote

finally I've got solved the problem!!! Very Happy
It was really simple. Updated Compiler/IDE from 5.042 to 5.068 and now it is running very well. I've compared old with new hex file and the newer one is about 30 words longer. A lot have changed in the code.

Thanks for all your help!
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Feb 21, 2017 6:22 am     Reply with quote

It'd be interesting to see what those 30 words of hex are and figure out WHAT the difference is between SMT and DIP packaged devices. I'd 'assume' the 'die' ( the actual PIC) was the same so that the package itself shouldn't matter..
It's nice your code/pkg is woking but really WHY ??
I know life is too short but.......

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19544

View user's profile Send private message

PostPosted: Wed Feb 22, 2017 4:48 am     Reply with quote

I think you will find it was the auto clock tuning. I remember there being a problem with this (had to turn it on manually), but thought it was resolved before then. However there is a reference at 5.046:

5.046 Support for auto clock tuning is added for chips that have this feature

Without this USB would be unreliable off the internal clock. Suggests that the DIP parts may have a more accurate clock than the SMD versions on the examples you have....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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