Just installed PBP and now I'm lost. HELP!!!


Closed Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Jan 2008
    Posts
    8

    Default Just installed PBP and now I'm lost. HELP!!!

    I just installed the PicBasic Pro Compiler. I opened MicroCode Studio and loaded in a sample program called Lcd.bas that came with the software. All I'm trying to do is to compile the code into an Intel HEX file. When I press the F10 key for compile only, MicroCode Studio starts looking for a programmer and says it can't find the programmer. The F10 key should compile without programming. So why is it looking for a programmer? I'm sure this is a simple problem for you experts but I'm new to this. So any help would be greatly appreciated.

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


    Did you find this post helpful? Yes | No

    Default

    Try F9.
    I think that is the correct key.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    goto
    View/ Compile and Program Options

    Make sure that your manually find your compiler ex: C/PBP
    and your assembler and programmer

    I always just use the "compile" option from the Project menu

    Good luck!
    Padawan-78

  4. #4
    Join Date
    Aug 2005
    Location
    NC
    Posts
    8


    Did you find this post helpful? Yes | No

    Exclamation

    F10 is compile *and program* - F9 is compile only. Good luck!

  5. #5
    Join Date
    Jan 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Thanks mackrakit, earltyso, and Sergeant for the help

    All your methods worked very well. I had some errors in the program. MicroCode Studio told me which lines the errors were on and what type of error they were. So I went back to those lines and corrected them. Then I tried compiling again and it was successful and it told me how many words it used. It compiled the Basic program into an assembly program. The only problem I have now is how do I compile the assembly program into an Intel HEX file? I have a BK Precision Universal Programmer which uses the Intel HEX file.

  6. #6
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    hi

    while you are in microcode studio press alt+H then enter

    then scroll down and
    click on......... installing a programmer............

    you should find everything you need

    HTH

    Duncan

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by kenny_m View Post
    All your methods worked very well. I had some errors in the program. MicroCode Studio told me which lines the errors were on and what type of error they were. So I went back to those lines and corrected them. Then I tried compiling again and it was successful and it told me how many words it used. It compiled the Basic program into an assembly program. The only problem I have now is how do I compile the assembly program into an Intel HEX file? I have a BK Precision Universal Programmer which uses the Intel HEX file.
    You need to have MPLAB from microchip with the MPASM suite.
    View in MicroCode.
    PicBasic Options
    Assembler tab

    That is where you tell MCS where to find MPASM and to output INHX8M,8S, or32.

    I think that is what you need.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    You are quite right Dave

    That is where you tell MCS where to find MPASM and to output INHX8M,8S, or32.

    I think that is what you need.
    I misread and therefore misunderstood the question, sorry


    Duncan

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by duncan303 View Post
    You are quite right Dave



    I misread and therefore misunderstood the question, sorry


    Duncan
    kenny might be able to make his programmer work directly with MCS. That would save him a step or two
    Dave
    Always wear safety glasses while programming.

  10. #10
    Join Date
    Jan 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default I'm still not making much progress

    I tried the ALT-H that duncan303 posted and that just opened the help pulldown menu. Mackrakit, I do have the Microchip MPLAB IDE v7.61. It contains the Application Maestro, MPASMWIN, and Visual Procmd. I have no idea what any of these applications are used for. Can any of these applications be used to create a HEX file? It also has something called Setup MPLAB Tools. I clicked this and a window appeared which allowed me to modify the existing settings. I was afraid to change anything since I didn't know what I was doing. So I just exited without changing anything.

  11. #11
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by kenny_m View Post
    Mackrakit, I do have the Microchip MPLAB IDE v7.61.
    They're up to MPLAB 8.01 or something now.

    I clicked this and a window appeared which allowed me to modify the existing settings. I was afraid to change anything since I didn't know what I was doing. So I just exited without changing anything.
    Shouldn't have to mess with anything in MPLAB.
    Open up MCS, hit the preferences/options/whatever, hit the assembler tab, and have it search for MPASM.exe. Should be located in your Microchip/MPLAB subdirectory.

    MCS - is a front end for creating PicBasicPro compatible code. It also invokes:

    PBPW - which is the inital compiler responsible for compiling the source code created in MCS into assembly code which gets assembled by:

    MPASM - which is the final assembly program from Microchip (also invoked from MCS), responsible for create the end result of a HEX file which will get loaded into your PIC via your chosen PIC Programmer.

    Get all that?
    Both PBPW and MPASM have to be configured in MCS.
    Here's my method for setting up a new PC:
    1 - The machine is blank, fresh reload, whatever
    2 - Load the programmer software for my chosen programmer, in my case, Microchip's PICKIT2...anything else...well, in my opinion, just asking for trouble down the road. And make sure the programmer responds as it should!!!
    3 - Install the latest version of MPLAB direct from Microchip and any patches required. And make sure it can find your programmer, which with the PICKIT2, it's a piece of cake.
    4 - Install PicBasicPro 2.50. Other than remembering where you put it, you shouldn't need to do much else.
    5 - Install Microcode Studio and configure the options listed above to the directories you just got done installing those other items to.
    Doing this, you're working from the bottom-up, instead of the top-down. Just seems to work better like that for me, and probably 16 bazillion other people too.
    Last edited by skimask; - 30th January 2008 at 17:57.

  12. #12
    Join Date
    Jan 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Thanks skimask

    That was very thorough. Now I see what all those applications are used for. From reading your post, I think all I have to do is to properly configure MCS and then everything else should fall into place. Now all I have to do is to find the proper configuration settings. Then I can start to have some fun with MCS. I'm sure I'll have a lot more questions when I start writing code. Especially since I'm new to Pic Microcontrollers and the PicBasic language.

  13. #13
    Join Date
    Feb 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Default First thing to do...

    Hello Kenny,

    First thing to do before start with this is setup according to the instructions bellow:

    Using PBP With MPLAB

    The PicBasic Pro Compiler can be used within the MPLAB IDE.

    First, download the latest release of MPLAB, if you don't have it, from
    Microchip's web site (www.microchip.com). As of this writing, version 7.00
    is Microchip's latest release with support for our products.

    Install MPLAB and its components. The default installation directory for
    MPLAB is C:\Program Files\Microchip. MPASMWIN.EXE is located in the
    subdirectory C:\Program Files\Microchip\MPASM Suite.

    Install the PicBasic Pro Compiler according to the instructions found in its
    readme file. Avoid long directory names or spaces in the installation path.
    It is best to install the PicBasic Pro Compiler in its default directory,
    C:\PBP.

    The next step is to include both of the install directories within the
    search path on your system. The procedure differs depending on the version
    of Windows running. The melabs web site has details on setting the path for
    each version of Windows. (http://melabs.com/support/mplab.htm)

    Next, setup PicBasic Pro as a language tool within MPLAB. Start MPLAB and
    select Set Language Tool Locations under the Project menu. Select the
    appropriate Toolsuite Name (PicBasic Pro Compiler) and then Executables.
    Use the browse button to select PBPW.EXE within the subdirectory where it
    was installed (C:\PBP).

    Installation of the compiler into MPLAB is now complete. You can now write,
    edit, simulate and program BASIC projects from within MPLAB.

    To create a BASIC project within MPLAB, run the Project Wizard under the
    Project menu. Select the desired processor. Select the appropriate
    microEngineering Labs, Inc. Toolsuite (PicBasic Pro Compiler). Name the
    project. Choose the directory where the source file exists. Add the source
    file to the project. Click Next, then Finish. You should now be able to
    edit the source and build the project.

    Hope it helps!

  14. #14
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Cezar Neto View Post
    Hello Kenny,
    First thing to do before start with this is setup according to the instructions bellow:
    ..........................................Hope it helps!
    Didn't I just say that?
    Is there an echo in here?

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