2 Attachment(s)
Command Line operation ni a BATCH file
Hi All,
I'd like to launch the compiler/assembler and the PICKit3 programmer, all in COMMAND LINE mode, in a DOS batch file.
Unfortunately, I'm getting error messages at compile/assemble time.
According to Melanie's posts, I have programmed my batch file as here (the PICKit part is left out for now):
Quote:
Path C:\Program Files (x86)\PBP3_1;C:\Program Files (x86)\PBP3_1\temp
PBPX -p16F690 -aMPASMX Blink_16F690.pbp -v
Obviously, my PBP3 compiler's location is "C:\Program Files (x86)\PBP3_1" and the assembler's one is C:\Program Files (x86)\PBP3_1\temp.
Launching the BATCH file, I'll get these messages:
Attachment 10039Attachment 10040
I get 5 "Access violation" errror windows I can clear and at final, everything seems okay = every thing works (I get the HEX file I can send to the PIC).
Any idea how I can make things work the "clean way" please?
Re: Command Line operation ni a BATCH file
Problem solved: just needed to run the BATCH file with administrator's rights.
Re: Command Line operation ni a BATCH file
No, still not solved yet :frown:
When the batch file is launched with admin rights (I made a shortcut file to my batch to be able to launch it with admin rights), all HEX, ASM, etc files are not created?!?!?
Command Line operation in a BATCH file
I tried to move my batch file in the PBP folder but the problem still perists.
1 Attachment(s)
Re: Command Line operation in a BATCH file
I'm now using MPASMWIN.EXE (even if the assembler's window says "MPASM v5.14") which solved the problem about the warnings.
Now, is there a way, like for Microcode Studio, to close this assembler's windows once done successfully?
Attachment 10041
I can't find any command line argument doing this for me
Re: Command Line operation ni a BATCH file
try an
echo/ after the mpasm line in your batch file
Command Line operation in a BATCH file
I got some help from the MP forum and the correct syntax is, for example:
Quote:
PBPX /aMPASMWIN /oq /v /p16F690 D:\PBP-TEST\Blink_16F690.pbp