To install PBP in MPLAB X 1.95


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    737

    Default Re: PIC Configurator

    To install PBP in MPLAB X 1.95:
    0) First download MPLAB X from http://www.microchip.com/pagehandler...family/mplabx/ and install it, then run.'<< Added later
    1) Go to Tools>Plugins
    2) Select tab Available Plugins
    3) Mark PBP Tool Chain and PicBasic Language Syntax
    4) Click "Install"(Require internet connection), after installation plugins should be visible in installed tab
    5) Restart MPLAB X
    6) Tools>Option
    7) Select tab Embedded then click "Add...",
    8) Browse to "C:\PBP3", do not open folder, just select.
    9) And that's all, folks
    To create new project:
    1) File>New project>"Next"
    2) chose PIC>"Next"
    3) Select programmer/Debugger>"Next"
    4) Select PICBasic pro>"Next"
    5) Enter project name, Set as Main Project>"Finish"
    Now add source file:
    1) Right click on Source Files in project tree
    2) New>Other> click Basic directory, select PICBASIC file>"Next"
    3) Enter name(Must be without spaces)>Finish, Now file is visible in project tree.
    Enable Long
    4) File>Project Properties> PBPW> check PBPL Compilation.
    Add few lines, try to debug... Right click on toolbar to customize, to add step, Add PIC memory view, configuration bits, etc...
    Attachment 7151
    Now there is little problem with debugging WORD and LONG var's and bit's. Just with that
    As you can see, only first byte is showing.
    Add new watch, but this time by entering address of variable, not name.
    Watch are case sensitive.
    Attachment 7152
    And select size of var(WORD=16bit, Long=32 bits),
    And now we can see actual value in variables.
    Define byte container for bits, eg
    BitCont var byte
    LightOn var BitCont.0
    And then add BitCont to watch... Another way is to find PBP's byte container in .mac file if I can remember correctly. Right click to customize layout...
    Attachment 7153
    Note that address of Z isn't same. So watch out for that. Every time when variables is added/removed, check address...
    Check out local history by right click on file name
    Attachment 7154
    And save often, sometimes when I pres shift and "[" or "]" by mistakes, it should just add char "{" or "}" but 99,9 won't add char, it will freeze...
    On 1.70 version after minute or so you can click save button if you have luck. On this version seems to stuck forever...
    I hope this will be helpful...
    Attached Images Attached Images     

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default Re: PIC Configurator

    Thanks to the above tutorial, I have been triggered to install and try for the first time the MPLAB-X v2.00.

    All went smooth and got my first small program compiled succesfully.

    I don't know if I will continue on MPLAB-X IDE or MicroCode Studio, since the latter is much more quicker in setting up an new project.

    I wonder if anyone else has seen all these new files in the User Document Folder spread around, like MPLABXLog.xml.*

    Can I delete these?

    Ioannis

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default Re: PIC Configurator

    While I was trying to use PicKit3 with MPLAB-X v2.00, there was a very persistent problem. Target chip was detected but with wrong ID!

    The solution is to lower the Power from Pickit3 from 5V to say 4.875...

    Well, I think that I was just fine with the stand alone PicKit3 programmer.

    Ioannis

  4. #4
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: PIC Configurator

    I found MPLAB X files all over system. In C, User doc, app data, temp files, etc. Just ignore them, if you can't then delete them, and if something doesn't work, just reinstall MPLAB.
    I use 3.3V for PIC power supply, so I didn't notice problem with ID's.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default Re: PIC Configurator

    Have not tested at 3.3 volt. It is dissaponting that this problem exist back from 1.6 version...!

    Also Watch window does not show the variables of the program. Only PIC registers. And they do not change as I step the program...

    I do not think I am going to use this IDE. OK, installed it just to have the latest *.inc files but I am not happy to change.

    MicroCode Studio is just fine for now.

    Ioannis

  6. #6
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: PIC Configurator

    Watch are case sensitive. As you can see you can watch variables:
    http://www.picbasic.co.uk/forum/atta...achmentid=7153
    And they change with step.

Similar Threads

  1. pbp 3 and MPLAB X
    By Marcick in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 1st January 2017, 15:12
  2. PBP 2.6 and MPLAB 8.4
    By ChrisKiwi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th December 2011, 07:02
  3. Can't find "Install MPLAB Plugin"
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th March 2010, 03:22
  4. MPLAB and PBP ...
    By Acetronics2 in forum Off Topic
    Replies: 4
    Last Post: - 28th August 2008, 20:51
  5. How to install new programmer to MCS+
    By fnovau in forum General
    Replies: 0
    Last Post: - 6th February 2008, 13:37

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