CDC Compile Error


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2008
    Posts
    12

    Default CDC Compile Error

    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

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Which PIC are you compiling for?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    PIC18f2450

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    well don't i feel sheepish!

    thanks

  6. #6
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    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
    Attached Images Attached Images  

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not sure of the ICSP header, which seems odd, but overall it seems good enough.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Nov 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    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!

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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&
    Last edited by mister_e; - 15th November 2008 at 00:57.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. 16F877A Microcode Studio won't compile
    By curt66111 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2009, 19:35
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. 18F452 compile error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2006, 16:56
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts