USBMOUSE example won't compile from command line, Microcode Studio works


Closed Thread
Results 1 to 3 of 3
  1. #1
    eDub's Avatar
    eDub Guest

    Default USBMOUSE example won't compile from command line, Microcode Studio works

    I'm having this problem with my own program but anyone can see it with the USBMOUSE demo that comes with a PBP purchase v2.46. Them problem is that it won't compile from the command line, but it will compile with Microcode Studio. It might seem trivial to some, but getting this working is imperative for the product I'm trying to produce and I'm a one man op. So I will greatly appreciate any help that is offered.

    (Just to get it out of the way, I've already shortened my file paths and names and reinstalled PBP.)

    To reproduce this problem, copy the contents of C:\PBP\USB18 into a new folder (“C:\test”). Compile USBMOUSE.BAS with Microcode Studio and everything should work fine. Then use the following batch file contents to compile it from the command line:

    cd C:\PBP
    PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
    pause

    My results are:

    C:\PBP>PBPW -ampasmwin -v -p18F2455 "C:\test\USBMOUSE.BAS"
    PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
    All Rights Reserved.
    Pass 1:
    Pass 2:
    Code Gen:
    Macro Pass:
    ERROR: Macro USBINIT? not found in macro file.
    ERROR: Macro USBSERVICE? not found in macro file.
    ERROR: Macro USBOUT?CBCL not found in macro file.

    These four macros are mentioned in the C:\PBP\USB18\USB.txt file but the significance eludes me. BTW, USB.txt contains some useful information on this subject, but I've yet to find my answer there.

    You can get a similar message inside Microcode studio if you try to compile the program for a 16 series pic instead of an 18 series (18F2455). It should also be noted that USBJADEM demo exibits the same behavior.

    Thanks for reading, I hope someone can solve this.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    It's failing on the macro pass.

    Drop a copy of PBPUSB18.MAC into your C:\PBP\USB18 directory.

    From the DOS prompt change dir to C:\PBP\USB18

    Enter: pbpw -v -ampasmwin -p18f2455 USBMOUSE at the DOS prompt. That should take care of it for now, but you might still want to drop MeLabs tech support an email.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    eDub's Avatar
    eDub Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce, but that's not it. I did just as you said (actually I had already done that, but I tried it all again to be sure) and still got the same result.

    Technically my cmd line is like:
    C:\PBP>pbpw -v -ampasmwin -p18F2455 C:\PBP\USB18\USBMOUSE

    but I think using the path is an insignificant difference.

    I did notice something that was not in my original post. When I complie USBMOUSE.BAS with Microcode Studio it creates a USBMOUSE.MAC file and seems to copy the needed macros from PBPUSB18.MAC into it. When I compile from the command line this does not happen. Maybe because it doesn't get to that step before the failure or maybe because that step is the failure. Any insights on this?

    And I should add that I have gotten the patch for v2.46 from Melabs and reinstalled fresh and all that.

    Thanks again

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. Microcode studio loader problem
    By woodygjw in forum General
    Replies: 2
    Last Post: - 10th September 2007, 01:18
  3. Microcode studio and USB pics
    By KPDes in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th May 2007, 09:28
  4. Microcode Studio Plus compile/assmebly errors
    By mikehagans in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 21:31
  5. How to used ICD of microcode studio
    By chai98a in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th November 2005, 00:29

Members who have read this thread : 1

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