which version of the programmer you are using?
Please try the following format: FlashUSB.exe "MB9BF564K/L" 4MHz hexfile.mhx COM1 dialog
I'm having some issues with the USB Direct software myself and this command line feature sounds most useful as a useable work-around. Where can I find a description of it. Input parameters and return marameters in case of "Succes" or "Fail"?
Hi Tom, I already answered your question in your case. Maybe it's useful to copy it here as well, in order to inform all users ;-)
There is a feature for version USB Direct programmer V01L19 or newer what is not really published:
You can drive this tool by command line as follows.
FlashUSB.exe MCU Hex File [COM port] [Dialog on/off]
Detail of Parameters:
MCU: Set the MCU name that is in "Target MCU" list. -> see also chipdef.ini
Hex File: Set the Hex file name with Full Path.
COM port: Set COM port number ("com1" .. "com255".)
"dialog": At "Full Operation", processing dialog shows.
"no_dialog": At "Full Operation", processing dialog doesn't show.
Example: FlashUSB.exe "MB9BF524K/L/M" "C:\myprog.srec" com23 dialog
If you will use this this feature e.g. within a batch file, the programmer gets closed correctly after the programming is finished. As mentioned, this feature is not really specified, hence it may become obsolete in future version, and it's not guaranteed at all. But for version V01L19/20 it should work. Maybe you like to give it a try. Hopefully this will bring you forward.
is there a return value given by the program on a succes or fail?
The result will be written into "MESSFILE.TXT"