cancel
Showing results for 
Search instead for 
Did you mean: 

Legacy Microcontrollers

Anonymous
Not applicable

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!

0 Likes
1 Solution
HolgerW_56
Employee

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

View solution in original post

0 Likes
5 Replies
HolgerW_56
Employee

Hi

   

which version of the programmer you are using?

   

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

   

#Holger

0 Likes
ToVa_1580951
New Contributor

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

0 Likes
HolgerW_56
Employee

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

View solution in original post

0 Likes
ToVa_1580951
New Contributor

Hi Holger,

   

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

   

 

   

Gr.

   

Tom

0 Likes
HolgerW_56
Employee

Hi Tom,

   

The result will be written into "MESSFILE.TXT"

   

#Holger

0 Likes