You are here

Flash USB Direct and command line options | Cypress Semiconductor

Flash USB Direct and command line options

Summary: 5 Replies, Latest post by Holger Wech on 08 Feb 2017 05:37 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
matthias.gross_1968831's picture
User
2 posts

Hi

I think I better start a new thread for this topic.

We used the Flash USB Direct Tool from Fujitsu. It was possible to run this flasher as a command without user interface from another application.

Command line parameters were filename, COM-Port and additional parameters like No_dialog No_reset.

I said "used" because in one of the latest versions (Spansion? Cypress? - we don't know exactly when) this didn't work anymore.

Unfortunately we were forced to use an updated tool because the older Fujitsu Flasher didn't support the new controllers we are using now.

Does anyone know how to solve this? How have the command line options changed? Can they still be used at all?

Any input would be greatly appreciated!

howe's picture
Cypress Employee
21 posts

Hi

which version of the programmer you are using?

Please try the following format: FlashUSB.exe "MB9BF564K/L" 4MHz hexfile.mhx COM1 dialog

#Holger

Tom
Tom's picture
User
8 posts

Hi,

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"?

 

Thanks,

Tom

howe's picture
Cypress Employee
21 posts

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 on/off:
  "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.
 

Regards,

Holger

Tom
Tom's picture
User
8 posts

Hi Holger,

is there a return value given by the program on a succes or fail?

 

Gr.

Tom

howe's picture
Cypress Employee
21 posts

Hi Tom,

The result will be written into "MESSFILE.TXT"

#Holger

Log in to post new comments.