View previous topic :: View next topic |
Author |
Message |
peter.kinnear
Joined: 08 Sep 2008 Posts: 2 Location: Pretoria
|
PIC18F65j50 USB Problem |
Posted: Mon Sep 08, 2008 9:27 am |
|
|
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 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 08, 2008 2:59 pm |
|
|
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
|
|
Posted: Tue Sep 09, 2008 3:37 am |
|
|
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
thanks again _________________
|
|
|
peter.kinnear01 Guest
|
USB Uart for PIC18f65j50 |
Posted: Fri Sep 12, 2008 3:32 am |
|
|
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
|
|
|
peterk01 Guest
|
hmmmm |
Posted: Sat Sep 13, 2008 1:12 am |
|
|
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 |
|
|
peter.kinnear01 Guest
|
Found a work around |
Posted: Thu Sep 18, 2008 4:57 am |
|
|
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 |
|
|
|