21.13.1.47 read_snvm_memory

Description

This Tcl command reads client or page(s) in the sNVM (Secure Non volatile memory) memory from the device and returns a plain text (status and data of page).

Note:

If you have more than one client configured in Libero and use a client name with inappropriate -startpage, -endpage or -uskKey option values, then the command will fail.

read_snvm_memory [-deviceName "device name"] \
                 [-client "client name"] \
                 -startpage "integer value" \
                 -endpage "integer value" \
                 [-fileName "snvm data file name"] \
                 -uskKey "usk key"

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.

client

string

Name of the client configured in Libero.

startpage

integer

Start page number configured in Libero.

endpage

integer​

End page number.

fileName

string

Name of output file for memory read.

uskKey

hexadecimal

User Secret Key security key configured for the client in hexadecimal format

Return TypeDescription

String​

Displays page status and data of sNVM memory with plain text format.

Error Codes

Error CodeDescription

None

Number of usk keys entered do not match with page range mentioned.

None

The start page value is incorrect for the client entered.

None

The end page value is incorrect for the client entered.

None

Invalid usk key specified. Input should be either '0' or 24 hexadecimal characters.

None​

Parameter 'param_name' is not defined. Valid command formatting is 'read_snvm_memory [-deviceName "device name"] [-client "client name"] -startpage "integer value" -endpage "integer value" [-fileName "snvm data file name"] -uskKey "usk key"'.

None​

Parameter 'uskKey' has illegal value.

None​

Required parameter 'uskKey' is missing.

None​

Parameter 'fileName' has illegal value.

None​

Parameter 'endpage' has illegal value.

None​

Parameter 'startpage' has illegal value.

None​

Parameter 'client' has illegal value.

None

Client name was not found.

None​

Parameter 'deviceName' has illegal value.

None

Parameter 'startpage' must be a positive integer value.

None

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

None

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

None

Parameter 'endpage' must be a positive integer value.

Supported Families

PolarFire

PolarFire SoC

Example

Read "0" startpages and "2" endpages from sNMV memeory from the device and save into svnm.txt file:

read_snvm_memory -startpage "0" -endpage "2" \
                 -fileName "snvm.txt" -uskKey {0:0:0}