Compiler/Downloader Question


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2008
    Location
    South Eastern Ma
    Posts
    4

    Default Compiler/Downloader Question

    I am using PBPro 2.60 in MPLab V8.63 along with an ICD2 for programming and debugging. When I Compile my program and download it to the 16HV616 PIC the Output tells me that the Program compiled and downloaded properly. However I get a Pop up screen Open to the PBPPIC14.LIB with a green arrow pointing to Line 1150 which is a goto INIT. I have deleted and re-installed MPLab IDE and PBPro. Neither fixted this issue. Any help or suggestions would be appreciated. I have attached a screen shot for the POP up window, if that will be of any help.

    Don
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Hi,
    I get the same thing, see my thread here. I've only played with a bit and Iäm not sure why or even if it's supposed to be like that but as far as I can see it does work. I'm able to set breakpoints and watch variables etc but the .LIB file keeps popping up from time to time.

    I'd really like to have PBP "fully" integrated in MPLAB, or if it IS I'd like to see a tutorial/guide on how to set it up properly. Perhaps it gets better with the new MPLAB X.

    /Henrik.

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


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    The green arrow is not pointing at an error.
    It's pointing at the next line to be executed in the debugger.
    The first executable instruction is always GOTO INIT.

    It starts debugging at the ASM level in the PBPPIC14.lib file because the "Source-Level Debug" option is not checked in the Build Options for your project.

    Go to Project > Build Options > Project > PicBasic Pro ... and check the "Source-Level Debug" option.
    That will generate the -k# command line option.
    DT

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Thanks Darrel, I'll try that.
    I know the green arrow isn't pointing at an error I just couldn't figure out why it was popping up the .lib file all the time - now I know.

    Any pointers on how to work with color syntaxing and code folding, can it be set up to work with PBP as the language tool?

    /Henrik.

  5. #5
    Join Date
    Jan 2008
    Location
    South Eastern Ma
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Hi Darrel,

    Thank you for the help.

    Don

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


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Quote Originally Posted by HenrikOlsson View Post
    Any pointers on how to work with color syntaxing and code folding, can it be set up to work with PBP as the language tool?
    Highliting in MPLAB only works on files with a .bas extension.

    You're welcome Don.
    DT

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Darrel,
    Once again thank you! I got color syntaxing working by changing the file extension from .pbp to .bas - now on to code folding....

    However, I already had the Source-Level Dubug checkbox ticked and it keeps popping up the .lib file, see attached screenshots. Like I said in the other thread it's me who don't know how to use these tools but I'm trying to learn. I'll keep playing with it.

    /Henrik.
    Attached Images Attached Images   

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


    Did you find this post helpful? Yes | No

    Default

    There is no code folding.
    And the highliting is not perfect because it wasn't done for PicBasic Pro. I'm not sure what Basic Language MPLAB expects with a .bas extension, but it's not PBP.

    What version of PBP are you using Henrick?

    Have you gone into Build Options for both the Project and the Source file?
    DT

  9. #9
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Hi Darrel,
    Yes, I believe I have done so for the project and the source file, see attached screenshot. Ticking/unticking it one place is reflected in the other as well so it looks like it's one and the same dialog accessed.

    There's only a single source file in the project (as per instructions) and there's no other files included from this source file.

    I'm using PBP 2.6A

    Got it on the code-folding, crossing my fingers for 100% integration with MPLAB X :-)

    Again, thanks a lot Darrel!
    /Henrik.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    I don't know Henrik.

    I can't make it do that here.
    I downgraded MPLAB to 8.50 and it still works fine.

    Stumped.
    DT

  11. #11
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Compiler/Downloader Question

    Stumped.
    Ha - finally :-)

    Seriously though, having the .lib file pop up is no big deal, but I'm wondering if I'm missing out on something as I never get to see the green arrow in the actual source file. I can set breakpoints, start, stop execution and watch variables etc so it's OK.

    I'll keep playing with it.

    Thanks Darrel!

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