EasyManua.ls Logo

COBHAM GRMON3 - Page 191

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
191 www.cobham.com/gaisler
87. spim - syntax
NAME
spim - Commands for the SPI memory controller
SYNOPSIS
spim subcommand ?args...?
spim index subcommand ?args...?
DESCRIPTION
This command provides functions to control the SPICTRL core. If more than one core exists in the system, then
the index of the core to control should be specified after the spim command (before the subcommand). The 'info
sys' command lists the device indexes.
spim altscaler
Toggle the usage of alternate scaler to enable or disable.
spim reset
Core reset
spim status
Displays core status information
spim tx data
Shift a byte to the memory device
SD Card specific commands:
spim sd csd
Displays and decodes CSD register
spim sd reinit
Reinitialize card
SPI Flash commands:
spim flash
Prints a list of available commands
spim flash help
Displays command list or additional information about a specific command.
spim flash detect
Try to detect type of memory device
spim flash dump address length ?filename?
Dumps length bytes, starting at address of the SPI-device (i.e. not AMBA address), to a file. The
default name of the file is "grmon-spiflash-dump.srec"
spim flash erase
spim flash erase start ?stop?
Erase performs a bulk erase clearing the whole device or the blocks from address start to address stop.
spim flash fast
Enables or disables FAST READ command (memory device may not support this).
spim flash load ?options...? filename ?address? ?cpu#?
Loads the contents in the file filename to the memory device. If the address is present, then binary files
will be stored at the address of the SPI-device (i.e. not AMBA address), otherwise binary files will be
written to the beginning of the device. The cpu# argument can be used to specify which CPU it belongs to.
The only available option is '-binary', which forces GRMON to interpret the file as binary file.
spim flash select ?index?
Select memory device. If index is not specified, a list of the supported devices is displayed.
spim flash set pagesize address_bytes wren wrdi rdsr wrsr read fast_read pp se be be-
bytes
Sets a custom memory device configuration. Issue spim flash show to see a list of the available parameters.

Table of Contents