Command Line Compile


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    440

    Default Command Line Compile

    I am near beta stage with a new standalone FineLine IDE for both Proton and MEL PicBasic!
    I would like to utilize the command line compile but am stuck.

    The following is what I am trying (as per manual) in Windows run but doesn't work:

    E:\1PicBasicPro\PBP\PBPL.exe -ampasmwin -p18f4520 E:\1PBP\Headings\09-06-26-05 18F4520 4MHz Heading,Int OK.bas

    I am looking for a hex file in the above E directory with a new time modified.

    Norm

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


    Did you find this post helpful? Yes | No

    Default

    Here is the guts of a *.bat file I use.
    Code:
    cd
    cd C:\MAC_PROGS\PPPBP\
    PBPL -e -ampasmwin -p18F4550 test.bas
    cd\
    The above works if the "paths" are set in windows environment.
    Maybe it will give you a clue. Your part about "time modified" has me a bit confused.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    When there are spaces in the filename, you need to put quotes around it.
    Quote Originally Posted by Normnet View Post
    E:\1PicBasicPro\PBP\PBPL.exe -ampasmwin -p18f4520 "E:\1PBP\Headings\09-06-26-05 18F4520 4MHz Heading,Int OK.bas"
    DT

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Your part about "time modified" has me a bit confused
    I meant date modified.

    Does the newer PBPL save a .pbp in place of a .bas file for compile?

    In windows run
    E:\1PicBasicPro\PBP\PBPL.exe -ampasmwin -p18f4520 "E:\1PBP\Headings\09-06-26-05 18F4520 4MHz Heading,Int OK.pbp"
    gets a brief flash of a DOS screen but no updated .hex file.

    Norm

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


    Did you find this post helpful? Yes | No

    Default

    pbp or bas. both are valid.

    Check the error file to maybe see what is wrong. Could be an error in the code. If so then a hex will not be created or updated.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Normnet View Post
    gets a brief flash of a DOS screen but no updated .hex file.
    Do you have C:\Program Files\Microchip\MPASM Suite; in your PATH?
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    This is what I use when on a Linux box and do not have the "paths" set.
    Code:
    cd /home/shop/MAC/PIC\ LINUX/SweepBot
    wine c:/pbp/pbpw -e -s -ac:/Program\ Files/Microchip/MPASM\ Suite/MPASMWIN -p16f676 z:/home/shop/MAC/PIC\ LINUX/SweepBot/SB1.bas
    wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /e /l SB1.asm
    Basically what happen is PIC BASIC does it's thing by making an ASM file per MPASM's standards, and then MPASM runs to convert the ASM to HEX.

    Should work on windows too...Once you get rid of the "wine" and fix up the "/ \ / \ / \"
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Do you have C:\Program Files\Microchip\MPASM Suite; in your PATH?
    Path set as:
    I:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;I:\P rogram Files\Borland\BDS\4.0\Bin;%SystemRoot%\system32;%S ystemRoot%;%SystemRoot%\System32\Wbem;I:\Program Files\Microchip\MPASM Suite

    cd /home/shop/MAC/PIC\ LINUX/SweepBot
    Windows run doesn't take a "cd" no quotes.

    Also trying in a Delphi program ShellExecute(Handle, 'open', PChar(Edit1.TEXT), nil, nil, SW_SHOWNORMAL);

    My conversion, not working from windows run(brief DOS flash) or Delphi shell(nothing):
    wine c:/pbp/pbpw -e -s -ac:/Program\ Files/Microchip/MPASM\ Suite/MPASMWIN -p16f676 z:/home/shop/MAC/PIC\ LINUX/SweepBot/SB1.bas
    e:\1PicBasicPro\PBP\PBPL -e -s -ai:\Program Files\Microchip\MPASM Suite\MPASMWIN -p18f4520 e:\1PBP\Headings\test.pbp
    e:\1PicBasicPro\PBP\PBPL -e -s -ampasmwin -p18f4520 e:\1PBP\Headings\test.pbp

    Norm
    Last edited by Normnet; - 21st July 2009 at 04:53.

Similar Threads

  1. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 17:43
  2. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 15:51
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 09:18
  4. Cannot compile for 40MHz 4 x pll
    By passion1 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 21st October 2007, 18:50
  5. Replies: 2
    Last Post: - 9th February 2006, 23:03

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