PEmicro FAQ ID 30

I launched the command-line CPROGxx flash programmer, saw a window flicker up, and then disappear. How do I know what happened?


Note that the command-line CPROG software must be run from a command prompt. Simply double-clicking the executable will fail. If you are looking for a user-friendly GUI version for flash programming, look for the PROGxx software that comes with your CPROGxx software.

By default, the CPROGxx programmer will run the script you have given it on the command-line, and when execution is complete, the CPROGxx application will terminate with an appropriate error code. This way the program exits automatically and requires no human interaction. The error code may be read by another application or a batch file.

If you would like to see the output of the CPROGxx programming application, there are several command-line parameters which allow you to do this:

? - Use the '?' character option to cause the command-line programmer to wait and display the result of programming in the CPROGxx window. If the user does not use a batch file to test errorlevel, this provides a method to display the programming result. This option should be the FIRST command-line option.

! - Use the '!' character option to cause the command-line programmer to wait and display the result of programming in the CPROGxx window only if an error has occurred, otherwise exit. If the user does not use a batch file to test errorlevel, this provides a method to display the programming result. This option should be the FIRST command-line option.

Example:

CPROG12Z ? C:\ENGINE.CFG Interface=USBMULTILINK Port=USB1

Please read any documentations related to your software linked to this FAQ for more details and examples.


Related downloads to this FAQ

CPROG08SZ - Command-line Programmer Documentation
Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROG12Z User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROG16Z User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROG32Z User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGACMP User Guide
PDF User Guide for CPROGACMP (command-line programmer for ARM Cortex-M processors)
CPROGCFV1 User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGCFZ User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGDSC User Guide
PDF User guide for CPROGDSC command-line programming software
CPROGHCS08 User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGMCZ - Command-line Programmer Documentation
Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGMON08 - Command-line Programmer Documentation
Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGPPCNEXUS User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.
CPROGPPCZ User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file. v.1.02, May 2017.
CPROGS12ZZ User Guide
PDF Document describing the command-line parameters for the command line flash programming application. Has an example of writing a programming script file and also of reading the programming result with a batch file.

This FAQ applies to the following


Architectures

HC08 HCS08 HC(S)12(X) 68HC16 CPU3xx ColdFire V2/V3/V4 Power MPC5xx/8xx Qorivva MPC5xxx RS08 ColdFire V1

Categories

Interface Hardware/Cable Flash Programming Software

Products

CPROG08SZ USB-ML-PPCNEXUS DC9S08QE128 GAL445B New DEMO9S08QB8