Melabs U2 Programmer Command Line Options


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I use command line options with the U2 every day, and they work fine, but you may need
    the non beta version of the software for command line options to work properly.

    If you have a pre-compiled blink.hex, compiled for a 16F627a, in C:\PBP, then create a batch
    file with this in it to test.

    meProg -n -dPIC16F627a -e -p -v c:\pbp\blink.hex

    Say its name is prog.bat, and it's in the U2 software directory. When you click on prog.bat
    it will launch the U2 software, select the 16F627a, erase, program, then verify blink.hex in
    the target.

    Edit: .epc files tell the U2 software programming info, config options, and a few more things
    about each PIC target. If you don't have a .epc file for a PIC the U2 supports, it won't
    show in the drop-down menu.

    I copied meProg.exe, the target .epc file, and meprog.ini into C:\PBP, then setup MPLAB
    post build option like this; meProg -n -dPIC16F627a -e -p -v c:\pbp\blink.hex

    It compiles, launches & programs from within MPLAB when you click the compile button.

    MPLAB seems to consider it part of the language toolsuite, so it works if all required files
    are in the PBP directory.

    HTH
    Last edited by Bruce; - 3rd July 2009 at 02:37. Reason: Inside MPLAB
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Melabs U2 USB programmer
    By Ron Marcus in forum General
    Replies: 2
    Last Post: - 24th April 2008, 20:03
  2. U2 Programmer Interface for Ethernet MINI
    By edtp in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st July 2007, 23:29
  3. melabs usb programmer problem
    By bigbear in forum General
    Replies: 4
    Last Post: - 28th December 2006, 13:50
  4. Replies: 2
    Last Post: - 25th February 2006, 03:53
  5. Melabs USB Programmer
    By tmurph in forum General
    Replies: 1
    Last Post: - 25th December 2005, 04:25

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