Altera SoC Embedded Design Suite User Manual

Page 195

Advertising
background image

Example 9-1: Program File to Address 0 of Flash

quartus_hps –c 1 –o P input.bin

programs the input file (input.bin) into the flash, starting

at flash address 0 using a cable M.

Example 9-2: Program First 500 Bytes of File to Flash (Decimal)

quartus_hps –c 1 –o PV –a 1024 –s 500 input.bin

programs the first 500 bytes of the

input file (input.bin) into the flash, starting at flash address 1024, followed by a verification using

a cable M.
Note: Without the prefix 0x for the flash address, the tool assumes it is decimal.

Example 9-3: Program First 500 Bytes of File to Flash (Hexadecimal)

quartus_hps –c 1 –o PV –a 0x400 –s 500 input.bin

programs the first 500 bytes of the

input file (input.bin) into the flash, starting at flash address 1024, followed by a verification using

a cable M.
Note: With the prefix 0x, the tool assumes it is hexadecimal.

Example 9-4: Program File to Flash Repeating Twice at Every 1 MB

quartus_hps –c 1 –o BPV –t 2 –i 0x100000 input.bin

programs the input file (input.bin)

into the flash, using a cable M. The operation repeats itself twice at every 1 megabyte (MB) of the

flash address. Before the program operation, the tool ensures the flash is blank. After the program

operation, the tool verifies the data programmed.

Example 9-5: Erase Flash on the Flash Addresses

quartus_hps –c 1 –o EB input.bin

erases the flash on the flash addresses where the input file

(input.bin) resides, followed by a blank-check using a cable M.

Example 9-6: Erase Full Chip

quartus_hps –c 1 –o E

erases the full chip, using a cable M. When no input file (input.bin) is

specified, it will erase all the flash contents.

Example 9-7: Erase Specified Memory Contens of Flash

quartus_hps –c 1 –o E –a 0x100000 –s 0x400000

erases specified memory contents of the

flash. For example, 4 MB worth of memory content residing in the flash address, starting at 1 MB,

are erased using a cable M.

Example 9-8: Examine Data from Flash

quartus_hps –c 1 –o X –a 0x98679 –s 56789 output.bin

examines 56789 bytes of data

from the flash with a 0x98679 flash start address, using a cable M.

ug-1137

2014.12.15

HPS Flash Programmer Command Line Examples

9-5

HPS Flash Programmer User Guide

Altera Corporation

Send Feedback

Advertising