GRMON3-UM
June 2019, Version 3.1.0
222 www.cobham.com/gaisler
113. wmemh - syntax
NAME
wmemh - AMBA bus 16-bit memory write access
SYNOPSIS
wmemh ?options...? address data ?...?
DESCRIPTION
wmemh ?options...? address data ?...?
Do an AMBA write access. The 16-bit value specified by data will be written to address. If more than
one data word has been specified, they will be stored at consecutive addresses.
NOTE: Only JTAG debug links supports byte accesses. Other debug links will do a 32-bit read-modi-
fy-write when writing unaligned data.
OPTIONS
-bsize bytes
The -bsize option may be used to specify the size blocks of data in bytes that will be written.
-wprot
Disable memory controller write protection during the write.
RETURN VALUE
wmemh has no return value.
EXAMPLE
Write 0xABCD to address 0x40000000 and 0x1234 to 0x40000002:
grmon3> wmem 0x40000000 0xABCD 0x1234
SEE ALSO
Section 3.4.7, “Displaying memory contents”