A newer version of this document is available. Customers should click here to go to the newest version.
3.4.1. HPS Flash Programmer
The HPS flash programmer command-line syntax is:
quartus_hps <options> <file.bin>
| Option | Short Option | Required | Description | 
|---|---|---|---|
| --addr | -a | Yes (if the start address is not 0) | This option specifies the start address of the operation to be performed. | 
| --cable | -c | Yes | This option specifies what download cable to use.To obtain the list of programming cables, run the command "jtagconfig". It lists the available cables, like in the following example:  jtagconfig 
          
 
         The "-c" parameter can be the number of the programming cable, or its name. The following are valid examples for the above case: 
          
 | 
| --device | -d | Yes (if there are multiple HPS devices in the chain) | This option specifies the index of the HPS device. The tool automatically detects the chain and determine the position of the HPS device; however, if there are multiple HPS devices in the chain, the targeted device index must be specified. | 
| --boot | N/A | Yes | Option to reconfigure the HPS IOCSR and PINMUX before starting flash programming. 
         For the  Quartus® Prime HPS Flash Programmer options: 
          
 
         Available options: 
          
         Cyclone® V and Arria® 10 support values: 1, 2 and 16.   Arria® 10 supports values: 2, 3 and 16 
          
          Note: For the first three options, add up integer of 16, so that the HPS cold reset is performed 
          | 
| --exit_xip | N/A | Yes (if the QSPI flash device has been put into XIP mode) | This option exits the QSPI flash device from XIP mode. A non-zero value has to be specified for the argument. For example, quartus_hps -c <cable> -o <operation> --exit_xip=0x80. | 
| --operation | -o | Yes | This option specifies the operation to be performed. The following operations are supported: 
 
         Note: The program begins with erasing the flash operation before programming the flash by default. 
         | 
| --size | -s | No | This option specifies the number of bytes of data to be performed by the operation. size is optional. | 
| 
         Note: The following options: repeat and interval must be used together and are optional. 
         The HPS BOOT flow supports up to four images where each image is identical. These options duplicate the operation data; therefore you do not need embedded software to create a large file containing duplicate images. | |||
| --repeat | -t | No | repeat—specifies the number of duplicate images for the operation to perform. | 
| --interval | -i | No | interval—specifies the repeated address. The default value is 64 kilobytes (KB). |