PDA

View Full Version : CDC Compile Error



ricgar
- 14th November 2008, 18:33
Hi i have compiled the USBCDC files that are in the PBP directory.

I am compiling with MPLAB asm.

But at the end i get the following error.

Error[113] c:\pbp\pbp250b\pbppi18l.lib 588 : Symbol not previously defined (OSCTUNE)
Error[113] c:\pbp\pbp250b\pbppi18l.lib 596 : Symbol not previously defined (OSCTUNE)
Error[113] c:\pbp\pbp250b\pbppi18l.lib 1021 : Symbol not previously defined (OSCTUNE)

Anyone able to assist in sorting out this problem?

Many Thanks

mister_e
- 14th November 2008, 19:05
Which PIC are you compiling for?

ricgar
- 14th November 2008, 19:21
PIC18f2450

mister_e
- 14th November 2008, 19:27
Well reason is simple.. there's no OSCTUNE register for this PIC, comment the offending line at the top of the USBCDC code... and check the comment on the right of it ;)

ricgar
- 14th November 2008, 19:47
well don't i feel sheepish!

thanks

ricgar
- 14th November 2008, 20:08
One further equiry

would the following schematic work for the usb cdc or is there anywhere i can go to find a better schematic.

Thanks

mister_e
- 14th November 2008, 20:49
Not sure of the ICSP header, which seems odd, but overall it seems good enough.

ricgar
- 14th November 2008, 23:12
Great

Compiled everything and all seems great, loaded the code into the PIC, plugged in the usb cable into the PC and nothing!

Why? i have the power LED come on, not sure if the diagnostic LED's are meant to be working, but they are definately dead! This stuff drives me insane!:eek:

mister_e
- 15th November 2008, 00:52
If you have a 20MHz, and sure of your connection, it should work, or at least tell you something!?!

Also have a look at this one
http://www.picbasic.co.uk/forum/showthread.php?t=5806&