Segger Logo Embedded Software Solutions
Software productsHardware productsDownloadsPricesCustomersOur PartnersSitemapForumAbout us
J-Flash: Command line interface
| J-Link overview | J-Flash ARM overview | J-Flash - getting started | J-Flash - command line |

Overview

In addition to its traditional Windows graphical user interface (GUI), J-Flash supports a command line mode as well. This makes it possible to use J-Flash for batch processing purposes. All important options accessible from the menus are available in command line mode as well. If you provide command line options, J-Flash will still start its GUI, but processing will start immediately.
This screenshot below shows the command line help dialog, which is displayed if you start J-Flash in a console window with JFlashARM.exe -help or JFlashARM.exe -?

Command line options

This section lists and describes all available command line options. Some options accept additional parameters which are enclosed in angle brackets, e.g. . If these parameters are optional they are enclosed in square brackets too, e.g. [<SADDR>]. Neither the angel nor the square brackets must be typed on the command line, they are used here only to denote (optional) parameters. Also, please note that a parameter must follow immediately after the option, e.g. JFlashARM.exe -openprjC:\Projects\Default.jflash.

Option Description
-openprj<FILENAME> Open an existing project file.
-saveprjas<FILENAME> Save the current project in the specified file.
-saveprj Save the current project.
-open<FILENAME> [,<SADDR>] Open a data file. Please note that the <SADDR> parameter
applies only if the data file is a *.bin file.
-saveas<FILENAME> [,<SADDR>,<EADDR>] Save the current data file into the specified file. Please note that the parameters <SADDR>,<EADDR> apply only if the data file is a *.bin file or *.c file.
-save[<SADDR>,<EADDR>] Save the current data file. Please note that the parameters <SADDR>,<EADDR> apply only if the data file is a *.bin file or *.c file.
-relocate<OFFSET> Relocate data by the given offset.
-delrange<SADDR>,<EADDR> Delete data in the given range.
-eliminate Eliminate blank areas in data file.
-connect Connect to target.
-disconnect Disconnect from target.
-softlock Lock (soft) selected sectors.
-softunlock Unlock (soft) selected sectors.
-hardlock Locks (hard) selected sectors.
-hardunlock Unlocks (hard) selected sectors.
-checkblank Blank check target.
-erasesectors Erase selected sectors.
-erasechip Erase the entire flash chip.
-programverify Program and verify target.
-program Program target.
-auto Erase, program and verify target.
-readsectors Read selected sectors.
-readchip Read entire flash chip.
-readrange<SADDR>,<EADDR> Read specified range of target memory.
-startapp Start target application.
-exit Exit J-Flash.
-help Display help dialog.
-? Display help dialog.

Examples

Open a project and data file, start auto processing and exit


JFlashARM.exe 
-openprjC:\Projects\Default.jflash -openC:\Data\data.bin,0x100000
-auto -exit

Open a project file, read back selected sectors and write the data to disk


JFlashARM.exe 
-openprjC:\Projects\Default.jflash -readsectors
-saveasC:\Data\data.bin,0x100000,0x10FFFF

Copyright SEGGER Microcontroller GmbH & Co.KG. All rights reserved.
For more information, please visit our web site www.segger.com or contact us at info@segger.com
Last update: December 7, 2007