Cannot get pbp to compile


+ Reply to Thread
Results 1 to 10 of 10
  1. #1

    Default Cannot get pbp to compile

    I have the following setup
    C\program files \microchip\MPASM Suite(MPLAB 8.20a)
    C\pbp
    C\MCS In this folder are the .pbp and .hex project files
    I have commented out the 5 config lines in the 18f4550.inc
    When compliling a basic program in MCS I get error message
    Error[105]c\pbp\18f4550.inc 19:cannot open file(include file P18F4550.inc not found). Plus several Error[113]

    Everthing was working until I started altering things, but cannot get it right now.

    Any help appreciated

  2. #2
    Join Date
    Nov 2008
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    Maybe try C:\...

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I don't think you can use MPLAB 8.20 with PBP.

    See the note on this page (1/26/2009) ...
    http://melabs.com/support/mplab.htm
    DT

  4. #4
    Join Date
    Dec 2006
    Location
    WADSWORTH OHIO USA
    Posts
    37


    Did you find this post helpful? Yes | No

    Talking Cannot get pbp to compile

    I've tried numerous times to get MPASM to work with 16f8xx series.
    Sill no luck.
    Haven't has the time to figure why...
    This is year three.
    I'm on the ninth generation of the system now.
    Had to do it the hard way.
    I write in PBP only.a
    Any insights would be rewarded with gratitude.
    Thanks !
    SOMRU
    TWE/TFP/EE

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi

    Thanks for your help/suggestions. I just forgot to put in the : at C prompt! If only it were that simple!!

    Derrel, I have checked the link you gave me and I agree it cannot work using MPLAB 8.20.

    In the meantime I have been studying other links and managed to get the errors down to 2.

    My next step is to download 8.15a version of MPLAB and try again. I will let you know how I get on.

    Many thanks.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    There is a version of MPLAB on the CD when you purchased PBP. Why not use that.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    You can work with MPLAB 8.20 and latest 8.30 but it will have some serious limitations about the debugger MPSIM, not sure for PICKIT 2.

    For PIC18, you need to add the linker file. In your case 18F4550.lkr to your project.

    And then you go to, Project> Build Option > Project PicBasic Pro tab. There you select Use MPASM assembler and Use Linker /COFF debugging. Not much. BUT it will sucks, you can't monitor your variable, but only some PIC registers.

    Not a so easy task to create reliable COFF files.... even if the reference book for it is quite small

    Finally mpswitch seems to suffer a little bit with the latest release, so it's not a viable option yet (well last time I tried it)... If you only use PBP in MPLAB, there's no real advantage to use the latest 8.20 or 8.30 version.
    Last edited by mister_e; - 1st April 2009 at 04:42.
    Steve

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

  8. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,587


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by mister_e View Post

    Finally mpswitch seems to suffer a little bit with the latest release, so it's not a viable option yet (well last time I tried it)... If you only use PBP in MPLAB, there's no real advantage to use the latest 8.20 or 8.30 version.
    Hi, Steve

    No advantage at all ... from MPLAB V 8.15a, It doesn't compile any more !!! ROFL

    NOTE: MPLAB 8.15a is available as a direct download on Melab's site ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    It compile, but lack most feature, so useless

    For PIC18, you add the linker file, for none 18F you don't use MPASM assembler... yeah that's pain
    Last edited by mister_e; - 1st April 2009 at 16:19.
    Steve

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

  10. #10


    Did you find this post helpful? Yes | No

    Default

    I now have the 8.15a version installed and that cured the errors.

    I am now trying to get MCS easyhid to work. I have copied the 18f4550.bal plus most all files from the USB18 folder to my c:\projects folder and am now getting the usual "error:Macro USBNIT? Not found in macro file" together with the other three errors usbservice, usbin, usbout.

    Reading a thread 10409? keymuu had similar problems. Don't think PBPUSB18.MAC is required? As an idea I commented out the line LIBRARY PBPPL18L in the PBP/18f4550.bal file. This gave the following errors:

    Error:No library statement or library parameter
    Error:No library statement or MACRO parameter
    Error:Unable to open file PBPMAC.INC

    I have done a search for PBPMAC.INC but can't find it.

    Any suggestions appreciated-thanks.

Similar Threads

  1. PBP v2.60 upgrade: MCSP compile issue
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd July 2009, 19:49
  2. need 18F4550.BAS to compile with PBP?
    By jocovo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd December 2006, 01:23
  3. 18F2620 compile problems in PBP
    By Joe Rocci in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th August 2006, 10:11
  4. Replies: 2
    Last Post: - 10th July 2006, 01:05
  5. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30

Posting Permissions

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