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 support@ccsinfo.com

PIC18F65j50 USB Problem

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



Joined: 08 Sep 2008
Posts: 2
Location: Pretoria

View user's profile Send private message Visit poster's website

PIC18F65j50 USB Problem
PostPosted: Mon Sep 08, 2008 9:27 am     Reply with quote

I have a big problem with setting up the USB Communications with this device, I have code that runs brilliantly on the USB-Dev Kit from CCS (PIC18f4550?) but when i try to debug it on the 18F65j50 the debugger (ICD-U40) it says "DFF is reserved by IDE" why did i not get this error with the 18F4550, and what are the differences in these with regard to the ICD?

My code compiles perfectly without the U-40, and programs fine

I am also running a 24Mhz external osc, and having trouble setting the fuses so that i can run the device at FS

please help Embarassed
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 08, 2008 2:59 pm     Reply with quote

I don't have the CCS IDE. In MPLAB, in the help file for the ICD2,
you can look at a list of resources used by the ICD2. For most PICs,
there is a range of program memory and RAM that is reserved for the
ICD2. For the "J" series, it only reserves RAM.

If you have MPLAB vs. 8.10, look in the Help file for the ICD2.
Or, look for a similar list in the Help for the CCS IDE (if they put it
in there).
peter.kinnear



Joined: 08 Sep 2008
Posts: 2
Location: Pretoria

View user's profile Send private message Visit poster's website

PostPosted: Tue Sep 09, 2008 3:37 am     Reply with quote

Thanks hay, i just think they haven't gotten around to supporting this device yet. the help is a little vague on this point, plus there are comments in this file that suggest that they are still working on this driver :(
If anyone has an update to this file, please share Smile

thanks again
_________________
Smile
peter.kinnear01
Guest







USB Uart for PIC18f65j50
PostPosted: Fri Sep 12, 2008 3:32 am     Reply with quote

Ok so after looking around, i found the issue i had with enumeration, i had to configure the fuses manually for ECPLL and PLL6 and then i had to enable the PLL manually at run time *shu* but now the enumeration occurs, it picks up the USB/UART but there is no connection ??? It picks up the device just fine, but nothing comes through. is there a common fix to this problem??? has anyone else come across this?

Oh and i must mention that the device restarts enumeration once every few min? i don't know enough to begin to know whats wrong.

The same code works on the 18f4550 just fine i may add.
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

Possible SPI pin conflicts?
PostPosted: Fri Sep 12, 2008 12:36 pm     Reply with quote

Take a look at this post about SPI pin conflicts with that series of parts and USB. I don't know if you are using SPI but a possibility.

http://www.ccsinfo.com/forum/viewtopic.php?t=34799&start=15
peterk01
Guest







hmmmm
PostPosted: Sat Sep 13, 2008 1:12 am     Reply with quote

thanks i will have a look at that, i am not using the SPI, however i am using the i2c in hardware mode, i will have a look on the datasheet if there are conflicts with the port directions, thanks Smile
peter.kinnear01
Guest







Found a work around
PostPosted: Thu Sep 18, 2008 4:57 am     Reply with quote

The only way i can get the USB working 100% is to use the HID driver instead of the CDC... what a headache, but my application is better suited to HID anyway, its just more learning for me i guess Smile
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