Command Line Compile


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Success!
    Thanks all.

    Norm

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    How to make bat file terminate on last command instead of waiting
    until the program (programmer) it opened is closed.

    Sorry, started computers in 1995 (AD after DOS).

    Norm

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


    Did you find this post helpful? Yes | No

    Default

    Not sure I follow.
    The examples I gave will start MPASMWIN. When that GUI is finished and OK is clicked the DOS window should terminate.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    MPASMWIN is OK.

    My programmer (Easy PIC 3) doesn't close after completed and keeps the DOS file open.
    Is their a DOS way to terminate itself once the programmer is launched?
    The next line in DOS doesn't run until programmer is closed.

    Norm

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


    Did you find this post helpful? Yes | No

    Default

    Is this what you are needing?
    http://www.computerhope.com/issues/ch000320.htm
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Google this and a whole bunch of option come up.
    "close a DOS window"
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Command line compiles to asm and asm to hex with MPASM!

    Now to trouble shoot compile with PBPW to asm and to hex with PM for 16's.

    The following instructions in a bat file produces files but with different file names format than MicroCode Studio IDE.

    Code:
     
    PATH = E:\1PicBasicPro\PBP;E:\2TEST
    E:
    cd E:\2TEST
    E:\1PicBasicPro\PBP\PBPW.exe -e -p16F877 "E:\2TEST\PBP16F877TEST2.pbp"
    
    E:
    cd E:\2TEST
    E:\1PicBasicPro\PBP\PM.exe "E:\2TEST\PBP16F877TEST2.asm"
    
    E:\EasyPIC3 7-8-06\PICFLASH2.exe -ppic16F877 -f"E:\2TEST\PBP16F877TEST2.hex" -w
    My bat file produces the following file names format:
    PBP16F877TEST2.pbp
    PBP16F877TEST2.ASM
    PBP16F877TEST2.ER
    PBP16F877TEST2.MAC
    PBP16F~1.HEX

    MicroCode Studio produces the following file names format:
    PBP16F877TEST2.pbp
    PBP16F877TEST2.asm
    PBP16F877TEST2.mac
    PBP16F877TEST2.hex


    Both hex files are valid but how to produce the full length hex filename?
    I am reading the PM.txt file in PBP directory but have not seen a solution.

    Norm
    Last edited by Normnet; - 29th August 2009 at 22:21.

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, 16:43
  2. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 08:18
  4. Cannot compile for 40MHz 4 x pll
    By passion1 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 21st October 2007, 17:50
  5. Replies: 2
    Last Post: - 9th February 2006, 22:03

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