GRMON3-UM
June 2019, Version 3.1.0
128 www.cobham.com/gaisler
flash burst ?boolean?
Enable or disable flash burst write. Disabling the burst will decrease performance and requires either that
a CPU is available in the system or that a JTAG debug link is used. This feature is only has effect when a
8-bit or 16-bit Intel style flash memory that is connected to a memory controller that supports bursting.
flash erase all
flash erase start ?stop?
Erase a flash block. See description above about the parameters.
flash load ?options...? filename ?address? ?cpu#?
Program the flash memory with the contents file. The load command may be used to upload the file specified
by filename. If the address argument is present, then binary files will be stored at this address, if left
out then they will be placed at the base address of the detected ROM. The cpu# argument can be used
to specify which CPU it belongs to.
The -binary option can be used to force GRMON to interpret the file as a binary file.
The -erase option to automatically erase the flash before writing. It will only erase the blocks where
data will be written.
The -nolock option can be used to prevent GRMON from checking the protection bits to see if the block
is locked before trying to load data to the block.
flash verify ?options...? filename ?address?
Verify that the file filename has been uploaded correctly, if EDAC is enabled then the checkbits will
be verified aswell. If the address argument is present, then binary files will be compared against data at
this address, if left out then they will be compared to data at the base address of the detected RAM.
The -binary option can be used to force GRMON to interpret the file as a binary file.
The -max option can be used to force GRMON to stop verifying when num errors have been found.
flash lock all
flash lock start ?stop?
Lock a flash block. See description above about the parameters.
flash lockdown all
flash lockdown start ?stop?
Lockdown a flash block. Work only on Intel-style devices which supports lock-down. See description above
about the parameters.
flash query
Print the flash query registers
flash scan ?addr?
Probe the address for a CFI flash. If the addr parameter is set, then GRMON will probe for a new memory
at the address. If the addr parameter is unset, GRMON will probe for a new memory at the beginning of
the PROM area. If the addr parameter is unset, and a memory has already been probed, then GRMON will
only return the address of the last probed memory.
flash status
Print the flash lock status register
flash unlock all
flash unlock start ?stop?
Unlock a flash block. See description above about the parameters.
flash wbuf length
Limit the CFI auto-detected write buffer length. Zero disables the write buffer command and will perform
single-word access only. -1 will reset to auto-detected value.
flash write address data
Write a 32-bit data word to the flash at address addr.
RETURN VALUE
Command flash scan returns the base address of the CFI compatible memory.
The other flash commands has no return value.