EasyManua.ls Logo

COBHAM GRMON3 - Page 192

COBHAM GRMON3
239 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GRMON3-UM
June 2019, Version 3.1.0
192 www.cobham.com/gaisler
spim flash show
Shows current memory device configuration
spim flash ssval ?value?
Sets slave value to be used with the SPICTRL core. When GRMON wants to select the memory device
it will write this value to the slave select register. When the device is deselected, GRMON will write all
ones to the slave select register. Example: Set slave select line 0 to low, all other lines high when selecting
a device
grmon3> spi flash ssval 0xfffffffe
Note: This value is not used when communicating via the SPIMCTRL core, i.e. it is only valid for spi flash.
spim flash status
Displays device specific information
spim flash strict ?boolean?
Enable/Disable strict communication mode. Enable if programming fails. Strict communication mode may
be necessary when using very fast debug links or for SPI implementations with a slow SPI clock
spim flash verify ?options...? filename ?address?
Verifies that data in the file filename matches data in memory device. If the address is present, then
binary files will be compared with data at the address of the SPI-device (i.e. not AMBA address), oth-
erwise binary files will be compared against data at the beginning of the device.
The -binary options forces GRMON to interpret the file as binary file.
The -erase option to automatically erase the flash before writing. It will only erase the sectors where
data will be written.
The -max option can be used to force GRMON to stop verifying when num errors have been found.
When the -errors option is specified, the verify returns a list of all errors instead of number of errors.
Each element of the list is a sublist whose format depends on the first item if the sublist. Possible errors
can be detected are memory verify error (MEM), read error (READ) or an unknown error (UNKNOWN).
The formats of the sublists are: MEM address read-value expected-value , READ address
num-failed-addresses , UNKNOWN address
Upon successful completion spim flash verify returns the number of error detected. If the -errors has
been given, it returns a list of errors instead.
spim flash wrdi
spim flash wren
Issue write disable/enable instruction to the device.
SEE ALSO
Section 3.11.2, “SPI memory device”
Section 6.14, “Memory controllers ”

Table of Contents