IPECMD in Batch Mode
I've been using PM3CMD/ICD3CMD from the old MPLAB IDE for years and have recently tried switching our production programming over to using IPECMD from the MPLAB X IDE. I've found that there are 7-10 seconds of overhead using IPECMD unless you run it in batch mode. Apparently this is because it was developed in java and runs on the NetBeans platform and requires loading of libraries and additional connection time.
Does anyone have any application written for Windows that implements IPECMD using batch mode? My application is currently written in C using LabWindows/CVI. I was sending the following command to a separate cmd line window and waiting for it to complete and then redirecting the output to a log file:
CMD -C PM3CMD -5 -P18F45J50 -M > pm3cmdlog.txt
Here is the same for using IPECMD in batch mode:
CMD -C IPECMD -TPPM3 -P18F45J50 -FTEMP.HEX -M -W -OB > ipecmdlog.txt
This method was easy and straightforward but now batch mode requires me to leave the terminal window open and send a carriage return after every device is programmed. If there is an error while programming, batch mode terminates and I have to invoke batch mode all over again. I wish Microchip offered a DLL that could be called from my program instead.
So I'm hoping someone has a simple or alternate solution to using batch mode for production programming that doesn't add the 10 seconds of programming overhead. If so, I'd really appreciate some help.
post edited by dblok1 - 2019/04/09 09:39:05