21.13.1.49 read_flash_memory

Description

The command reads information from the NVM(Non volatile memory) modules. There are two types of information that can be read:

• Page Status – includes ECC1, ECC2, status, write count, access protection.

• Page Data

read_flash_memory [-deviceName { device_name }] \
                  [-startpage { integer_value }] \
                  [-endpage { integer_value }] \
                  [-access { all | status | data }] \
                  [-file { filename }]

Arguments

ParameterTypeDescription

deviceName

string

Optional user-defined device name. The device name is not required if there is only one device in the current configuration, or a device has already been selected using the set_debug_device command.

startpage

integer

Startpage is for page range. The value must be an integer. You must specify a -endpage and - block along with this argument.

endpage

integer

Endpage is for page range. The value must be an integer. You must specify a -startpage and -block along with this argument.

access

string​

Specifies what eNVM information to check: page status, data or both. By default "all".

file

string​

Name of output file for memory read.

Return TypeDescription
StringDisplays page status and data of Flash Memnory Contet with plain text format.

Error Codes

Error CodeDescription

None

Parameter 'file' has illegal value.

None

Parameter 'access' has illegal value.

None

Parameter 'endpage' has illegal value.

None

Parameter 'startpage' has illegal value.

None​

Parameter 'deviceName' has illegal value.

None​

Parameter 'param_name' is not defined. Valid command formatting is'read_flash_memory [-deviceName "device name"] [-block "integer value"] [-client "client name"] [-startpage "integer value"] [-endpage "integer value"] [-access "all | status | data | raw"] [-file "filename"]'

Supported Families

SmartFusion 2
IGLOO 2*

RTG4*

Example

This example checks eNVM data information from 0 to 2 pages.

read_flash_memory -startpage 0 -endpage 2 -access {data} \
                  -file {flash_memory}

See Also

  • check_flash_memory