21.13.1.3 check_flash_memory

Description

The command performs diagnostics of the page status and data information as follows: • Page Status – includes ECC2 check of the page status information, write count • Page Data - ECC2 check

check_flash_memory [-name { device_name }] \
                   [-startpage { integer_value }] \
                   [-endpage { integer_value }] \
                   [-access { all | status | data }] \
                   [-show { summary | pages }] \
                   [-file { filename }]

Arguments

ParameterTypeDescription

name

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 value must be an integer. You must specify a –endpage along with this argument.

endpage

integer

Endpage value must be an integer. You must specify a –startpage along with this argument.

access

string

You must set -startpage and -endpage before use. Specifies what NVM information to check: page status, data or both.

All: Shows the number of pages with corruption status, data corruption and out-of-range write count (default).

Status: Shows the number of pages with corruption status and the number of pages with out-of-range write count.

Data: Shows only the number of pages with data corruption.

show

string

This is an optional argument. You must set -startpage and -endpage before use. Specifies output level, as explained in the table below.

Summary: Displays the summary for all checked pages (default).

Pages: Displays the check results for each checked page.

file

string​

This is an optional argument.

You must set -startpage and -endpage before use. Specifies name of output file for memory check.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'show' has illegal value.

None

Parameter 'file' has illegal value.

None

Parameter 'endpage' has illegal value.

None

Missing '-endpage' argument for page range. Specify a page range with both a -startpage and an -endpage argument.

None

Parameter 'startpage' has illegal value.

None

Missing '-startpage' argument for page range. Specify a page range with both a -startpage and an -endpage argument.

None

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

None​

Invalid value for -show: 'show_value'. Value should be 'summary' or 'pages'.

None​

endpage: Invalid argument value: 'endpage_value' (expecting integer value).

None​

startpage: Invalid argument value: 'startpage_value' (expecting integer value).

None

Invalid value for -access: 'access_value'. Value should be 'all' or 'status' or 'data'.

None

Missing specification for Flash Memory area. Use one of:-client [-block ]or-startpage -endpage -block.

Supported Families

SmartFusion 2
IGLOO 2*
RTG4*

Example

This example checks flash memory form pages 0 to 1 and saves their pages to check_flash_memory.txt file:

check_flash_memory -startpage 0 -endpage 1 \
                   -file {check_flash_memory.txt} \
                   -show {pages}

See Also

  • read_flash_memory