CYCLONE-User-Manual.pdf - 第54页

User Manual For Cyclone LC Programmers 54 programming commands. The Remove From List button can be used to remove a selected command from the right panel. The user can also simply hit the Delete button on their keyboard …

100%1 / 149
User Manual For Cyclone LC Programmers 53
Figure 6-11: Specify Object File To Load
Next, the user would add additional programming functions to complete the programming script by
selecting programming operation commands from the Programming Sequence area. See Section
6.1.4 - Programming Operations for a description of these commands. The commands can
added by double-clicking them, or by selecting them and using the arrow (->). Commands can also
be removed or resequenced; see Section 6.1.3.3 - Function Buttons.
Figure 6-12: Add Programming Functions
6.1.3.2 Script Wizard
Another method that can be used to create a programming sequence is the Launch Script Wizard
button.
Note: Launch Script Wizard removes any commands that are already in the programming sequence
window and begins a new sequence.
The Launch Script Wizard button will automatically prompt the user for a programming algorithm,
followed by an object file, and then adds commands (EN - Erase if not blank, PM - Program
module, VC - Verify Checksum) to create a default programming script. The user can then use the
programming commands on the left and function buttons to modify the programming sequence as
needed.
6.1.3.3 Function Buttons
The arrow (->) will add the selected programming commands to the end of the programming
sequence. Double-clicking the command has the same effect.
The Clear Script button will remove all programming commands from the right panel.
The Move Up and Move Down buttons allow the user to manually re-sequence the order of the
User Manual For Cyclone LC Programmers 54
programming commands.
The Remove From List button can be used to remove a selected command from the right panel.
The user can also simply hit the Delete button on their keyboard when the command is selected in
the programing sequence.
6.1.3.4 Programming Sequence Complete
Once the programming sequence is complete, the programming image can be saved to a disk or
to the Cyclone unit. For more information, please see Section 6.1.10 - Store Image To Cyclone.
6.1.4 Programming Operations
Figure 6-13: Programming Operations Dialog Section
The Programming Sequence field, the user may specify the algorithm, object file, and operations
to be carried out.
6.1.4.1 Choose Module
Presents a list of available programming files. Each programming file contains information on how
to program a particular module. Usually, the name of the file indicates what kind of module it
relates to.
6.1.4.2 Specify Object File
Asks for the name (and/or path) to a file of object files to be used in programming or verifying a
module. If the file is not found, an error message is given. The currently-selected file is shown in
the S19 file selected window. The programmer accepts S1, S2, and S3 records. All other file
records are treated as comments. If you do not specify a file-name extension .S19 is used by
default. The programmer also supports ELF/Dwarf 2.0, 3.0, and 4.0 object files.
Your .S19 file may contain data for both EEPROM and flash. If you know that your S19 file
contains the correct data, “Ignore S19 Range” may be checked. This will cause any out of range
errors to be ignored.
6.1.4.3 Erase If Not Blank
This command performs a blank check of the module and erases it if it is not blank.
6.1.4.4 Erase Module
If “Erase Module” is specified, the Cyclone will erase the EEPROM/flash on the target device after
entering the Monitor Mode or BDM mode.
6.1.4.5 Blank Check Module
If “Blank Check Module” is checked, the Cyclone will check to see if the flash/EEPROM on the
target device is erased.
6.1.4.6 Program Bytes
Prompts for a starting address, which must be in the module. You are then asked to enter in
hexadecimal a byte to be programmed into the current location. Clicking the OK button will
automatically advance to the next data byte location.
User Manual For Cyclone LC Programmers 55
6.1.4.7 Program Words
Prompts for a starting address, which must be in the module. You are then asked to enter, in
hexadecimal, a word to be programmed into the current location. Clicking the OK button will
automatically advance to the next data word location.
6.1.4.8 Program Module
This command will program the selected S-record file into EEPROM/flash. For this command to
work, you must have previously selected an S-record file.
6.1.4.9 Program Feature Data
The Program Feature Data option on the Cyclone Image Creation Utility gives the user more
options to program dynamic data programming on the target device. To use Program Feature Data
select the "PF" command when creating a programming image. A window will show you the
options for feature data to program.
Figure 6-14: Using PF Command (Dynamic Data)
The options can be 1) a string of the current date (YYYY-MM-DD), 2) a string of the current date
and time, 24-hour clock (YYYY-MM-DD HH:MM:SS), 3) run test data.
Cyclone FX only: To 4) program the barcode into the flash of the target device, BARCODESTR
should be selected. The next window contains the hex address of where the dynamic data will be
stored:
Figure 6-15: Program Feature Address Dialog (Hex)
6.1.4.10 Verify Module
This command will verify that the selected S-record file was programmed into the EEPROM/flash.
For this command to work, you must have previously selected an S-record file.
6.1.4.11 Verify Checksum
This command verifies the module content via a CRC calculation. This command is typically much
faster than performing a full Verify Module command.
6.1.4.12 Choose Serial File
This command becomes available once a programming algorithm is selected. It specifies the serial
file that holds the serial numbers to be programmed to the target.