I’m trying to get Flowcode V5 to program target device via ASIX PRESTO programmer.
This is command line I’m trying out:
Location
C:\Program Files (x86)\ASIX\UP\up.exe:
Parameters:
/part%p /erase /o /"p%f.hex" /"verify%f.hex"
Just get this: This is command line information:
Code: Select all
4.6 Using UP from the command line
The program itself ensures to be run in a single instance. If there is another instance being run, the command line
parameters are handed over to the already running instance to be executed.
Parameter overview
up.exe [{/ask | /q}] [{/e eeprom_file.hex | [/noe]}] [{/p | [/pdiff] | [/o]}
file.hex | file.ppr] [/part part_name] [/erase] [/w[nd] up_window_class] [/cfg]
[/devid] [/blank] [/verify file] [/s programmer_SN] [/progname name]
Legend:
The text in bold is to be put on the command line as is.
The text in italic is to be replaced by real parameter, e.g. file_name is to be replaced by real name of the file to be
opened.
Text in curly brackets separated by | (pipes) represents a single choice from the listed items. e.g. { A | B } means
"choose just one of A or B".
Text in [braces] represents optional parameter which can be used, but can also be omitted.
• /ask Ask. To be used with /p. If the parameter is used, the program always prompts the user whether to
program the part, even if this was disabled in the Settings of the program. The confirmation dialog also shows
selected part type.
• /q /quiet Quiet mode. In this mode the program does not require any user intervention, but rather silently
returns to an error code instead of displaying a dialog. See Return error codes.
• /e file EEPROM file. Name of a file containing EEPROM data. If the name contains spaces, it is necessary to
enclose it by quotes. This parameter can be used together with /o or /p parameter only.
• /noe No EEPROM. Causes the program to skip EEPROM programming (and all operations with EEPROM). If
used with the MSP430 devices, the program skip all operations with the information memory.
• /p file Program. Programs given file to code memory. If the name contains spaces, it is necessary to enclose it
27
Programmers by ASIX
by quotes. (device is erased, code, data, cfg (and ID) memory is programmed and verified.)
• /pdiff file - Program differentially. Programs given file. If the name contains spaces, it is necessary to enclose
it by quotes.
• /o file Open. File with given name will be opened. Optional parameter. If the name contains spaces, it is
necessary to enclose it by quotes.
• /eeonly - The programmer will do the selected operation for EEPROM memory only, with MSP430 for
Information memory only.
• /part name Selects the specified part in the UP.
• /erase The part will be erased.
• /wnd class name Select another window class name. Using this parameter you can open more than one
instance of program UP. Each instance must have unique window class name.
• /cfg If this parameter is used together with /p parameter, only configuration memory is programmed. It's useful
for example for AVR devices programming, because the user can configure the chip for faster oscillator first
and then to program it much faster.
• /devid If this parameter is used together with /p parameter, only the Device ID of the chip is checked.
• /blank Program will check if the chip is blank, it will return an error code in accordance with the result.
• /verify file Does the part verification.
• /s programmer_SN - This parameter allows to select the programmer in accordance with its serial number.
The serial number can be entered as it is displayed in the UP or printed on the programmer, e.g.016709 or
A6016709.
• /progname name - This parameter allows to select the programmer type in accordance with its name, e.g.
PRESTO or FORTE.
When working on several different projects it is likely that the program is set to use a part or programmer other than the
one the user assumed. In such case using project files (.PPR), which contain all necessary settings including the file
path, is strongly recommended.
Note: Examples, how to use UP from the command line can be found in the UP installation directory in files
“read_avr_eeprom.bat“ and “set_idle_power_1.bat“ .
Opening a file
up.exe file name
up.exe file.hex
up.exe "C:\My Documents\Recent Projects\PIC\My latest project\flasher.hex"
Programming the part
up.exe /p file name
up.exe /p file.hex
up.exe /p "C:\My Documents\Recent Projects\PIC\My latest project\flasher.hex"
Thanks
Martin