Description
This Tcl command exports an SPI Flash image file to a specified directory.
export_spiflash_image \
[-file_name {name of file}] \
[-export_dir {absolute path to folder location}]
[-format {SPI Flash Image format}]
[-spiflash_device {SPI Flash device type}]
Arguments
Parameter | Type | Description |
---|
file_name | string | Specifies the name of the image file that will be exported. This parameter is optional. The default file name is the root component's name. |
export_dir | string | Specifies the directory location for the export. This parameter is optional. The default export location is an export folder in the design hierarchy. |
format | string | Specifies the SPI Flash image format. This parameter is optional. The following options are supported. |
spiflash_device | string | Specifies the type of SPI Flash memory device. This parameter is optional. The following options are supported.- MT25QL01GB (default)
- MT25QU01GB
- MT25QL02GCBB
- MT25QU02GCBB
Important: This parameter is only applicable if format is set to STP. |
Return Type | Description |
---|
None | None |
Error Codes
Error Code | Description |
---|
None | Parameter 'export_dir' has illegal value. |
None | Parameter 'file_name' has illegal value. |
None | Parameter 'param_name' is not defined. Valid command formatting is 'export_spiflash_image [-file_name "file_name"] [-export_dir "export_dir"]'. |
Example
This example exports SPI Flash image in {.src/top.bin
} file.
export_spiflash_image -file_name {top} -export_dir {./src} -format {BIN}