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




Bookmarks