Dataman 448PRO2AP User Manual page 138

Hide thumbs Also See for 448PRO2AP:
Table of Contents

Advertisement

described in section about command /writebuffer.
Example 2:
/writebufferex:2:2F:12,AB,C5,D4,7E,80
The command writes 6 Bytes 12H ABH C5H D4H 7EH 80H to secondary buffer with
index "2" at address 2FH. The addressing looks like following:
the first Byte at the lowest address
Buffer Address
00002FH
000030H
000031H
000032H
000033H
000034H
Basic rules for using of executive command line parameters:
1. program pg4uwcmd.exe must be located in the same directory as program pg4uw.exe
2. if pg4uw.exe is not running when pg4uwcmd.exe is called, it will be automatically started
3. command line parameters are not case sensitive
4. command line parameters can be used when first starting of program or when program is
already running
5. if program is already running, then any of command line operation is processed only when
program was not busy (no operation was currently executing in program). Program must
be in basic state, i.e. main program window focused, no modal dialogs displayed, no menu
commands opened or executed
6. order of processing command line parameters when using more parameters together is
defined firmly as following:
step 1. Load file (/Loadfile:...)
step 2. Load project (/Prj:...)
step 3. EPROM/FLASH autoselect
step 4. Program device (/Program[:switch])
step 5. Close of control program (/Close only together with parameter /Program)
Example 1:
pg4uwcmd.exe /program:noanyquest /loadfile:c:\empfile.hex
Following operations will perform:
1. start pg4uw.exe (if not already running)
2. load file c:\empfile.hex
3. start program device operation without questions
4. pg4uwcmd.exe is still running and periodically checking status of pg4uw.exe
5. when device programming completes, pg4uwcmd.exe is closed and is returning ExitCode
depending on load file and device programming results in pg4uw.exe. When all operations
were successful, pg4uwcmd.exe returns 0, otherwise returns value 1 or more.
Example 2:
pg4uwcmd.exe /program:noanyquest /prj:c:\emproject.eprj
The operations are the same as in Example 1; just Load file operation is replaced by Load
project file c:\emproject.eprj command.
Example 3:
Using pg4uwcmd.exe in batch file and testing return code of pg4uwcmd.exe.
rem ------- beginning of batch -------------------------
@echo off
Data
12H
ABH
C5H
D4H
7EH
80H
138

Advertisement

Table of Contents
loading

This manual is also suitable for:

48pro2ap

Table of Contents