microEngineering Labs, Inc.
      719-520-5323

              

  Home
  Products
  Distributors
  Purchasing Info
  Developer Resources
  Support
  Upgrades
  Contact Us
 

 

keyword search:
 

Home:
  Support home:
General Topics:
    FAQ
    MCU selector guide
    Developer's resources
    Downloads and patches
    Sample programs
Support by Product:
    melabs USB/U2 
Programmer
    melabs Field
Programmer
    melabs Serial 
Programmer
    EPIC™ Programmer
    Programming Adapters
    PICBASIC PRO™ 
Compiler
    PICBASIC™ Compiler
    PICPROTO™ Boards
    LAB-X1 Experimenter Board
    LAB-X2 Experimenter Board
    LAB-X3 Experimenter Board
    LAB-X4 Experimenter Board
    LAB-X18 Experimenter Board
    LAB-X20 Experimenter Board
    LAB-XT Experimenter Board
    LAB-XUSB Experimenter 
Board
    melabs Loader
 

Using PICBASIC PRO™ Compiler as a language tool within Microchip's MPLAB® development environment.


This page is for PBP 2.60 and later, installed with MPLAB 8.20 and later.

Support for earlier versions of PBP/MPLAB


Selecting PICBASIC PRO as the language tool within MPLAB®

Start MPLAB and select Set Language Tool Locations under the Project menu.  Find the "microEngineering PICBASIC PRO Toolsuite" and expand the levels until you can highlight the entry under "Executables" as shown.

Windows 7:  Use the Browse button to locate the file locate and select the file PBPW.EXE, found in the PBP install folder.  The system environment variable, PATH, should also be modified with the addition of the location of the MPASM Suite folder within the MPLAB installation.  (We'll post more details soon.  If you need help, contact support.)

Windows XP/Vista:  Use the Browse button to locate and select the file PBPMPLAB.BAT, found in the PBP install folder (default location is shown).  Note that the browse dialog will only show .EXE files by default.  Change the "Files of type" setting to "All Files" in order to select the .BAT file.
  If the PICBASIC PRO Toolsuite does not appear in MPLAB, go to Start > All Programs > PICBASIC PRO Compiler and click on "Install MPLAB Plugin".  On Windows Vista and Windows 7 systems, you may need to right-click and select "Run As Administrator".  Close and restart MPLAB afterwards.

If you get an error when attempting to install the MPLAB plugin, try downloading and installing the Microsoft Visual C++ 2008 Redistributable Package.  Attempt the MPLAB Plugin install again after the Microsoft package is installed.


Creating a PICBASIC PRO project within MPLAB

Run the Project Wizard to create a project in MPLAB:

  

Welcome: Click Next to proceed:

Step One: Select the desired target device, click Next:

Step Two: Select the PICBASIC PRO Toolsuite, click Next:

Step Three: Click the Browse button under Create New Project File, locate folder
where the project will be located, type in a file name for the project, click Save:

Still on Step Three:  Make sure the path and name are correct for the project, click Next:

Step Four:  Pick one (only one) .BAS or .PBP file that represents the main program
file for your project, click the Add button so it shows up on the right, then click Next:

Finish:  Click Finish on the summary screen. (not shown)

Your project has been created.  See the MPLAB help for details on how to set build options, compile, and debug.  You should not add any more files to the project.  Device header files are not required for a PBP project.  If including additional source files, you should use PBP's INCLUDE directive in the main program file.

 


Copyright 2010
microEngineering Labs, Inc.
2845 Ore Mill Road, STE 4
Colorado Springs CO 80904
(719) 520-5323
(719) 520-1867 fax
email: support@melabs.com

Last Updated: 01/22/2010

Home | Products | Support | Resources | Purchase | Contact

PIC, PICmicro, dsPIC, and MPLAB are registered trademarks of Microchip Technology Inc. in the USA and other countries.  PICBASIC, PICBASIC PRO, PICPROTO, and EPIC are trademarks of Microchip Technology Inc. in the USA and other countries.   BASIC Stamp is a trademark of Parallax, Inc.