Command line MB9BF368 flasher

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JuOs_3941651
Level 1
Level 1
First reply posted First question asked

Hi,

I need to program the MB9BF368 controller with command line.

I have found this thread

https://community.cypress.com/thread/47247

about this topic.

I have tried it as described, but I always get the error "No.101 Please set "hex file"".

I can't find any detailed description of the command line use of "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH).

My used command:

flash.exe flash "MB9BF368M/N/R" 4MHz xxx.bin COMxx dialog

Can you help?

Thanks

BR

Jürgen

0 Likes
1 Solution
HolgerW_56
Employee
Employee
25 solutions authored 10 sign-ins 5 sign-ins

Dear Jürgen,

  > My used command:

  >flash.exe flash "MB9BF368M/N/R" 4MHz xxx.bin COMxx dialog

1) I am afraid "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH)" cannot handle binary files.

2) Your 1st parameter <flash> is invalid:

Just do: flash.exe "MB9BF368M/N/R" 4MHz test1.mhx COM41 dialog

I have tested this right now successfully!

Which version of "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH)" are you using?

Regards,

Holger

View solution in original post

0 Likes
3 Replies
HolgerW_56
Employee
Employee
25 solutions authored 10 sign-ins 5 sign-ins

Dear Jürgen,

  > My used command:

  >flash.exe flash "MB9BF368M/N/R" 4MHz xxx.bin COMxx dialog

1) I am afraid "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH)" cannot handle binary files.

2) Your 1st parameter <flash> is invalid:

Just do: flash.exe "MB9BF368M/N/R" 4MHz test1.mhx COM41 dialog

I have tested this right now successfully!

Which version of "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH)" are you using?

Regards,

Holger

0 Likes

Hi Holger,

we are using the motorola srec file format, but we have to change the ending because of some other reasons.

It's working now, thanks for your help.

Do you have any description of the command line commands?

BR,

Jürgen

0 Likes

Hi Jürgen,

no problem, you can change the file name as you like, as long as the format/content stays to be hex/motorola-hex. Binary is not supported.

  > Do you have any description of the command line commands?

Honestly, the command line feature of the "FLASH MCU Programmer for FM0+/FM3/FM4 (FLASH)" has never been published/supported officially. So there are no more features, then presented already:

Command: flash [file] [com] [dialog] [reset]

[file] Specifies the Hex file to write in Flash memory.

[com] Specifies the COM number.

[dialog] Species whether the progress display window is displayed or not.

"dialog" Displays the progress display window.

"no_dialog" Does not display the window.

[reset] Specifies whether the reset confirmation window is displayed or not.

"reset" Displays the reset confirmation window.

"no_reset" Does not display the window.

You have already seen the 3rd party tool FLASHly, that probably offers some more features.

Regards,

Holger

0 Likes