
MOTOROLA
Chapter 3. DINK32 Commands
3-21
DEVMOD
3.14 DEVMOD
The “devmod” command displays and modifies the contents of memory or device registers
in a manner similar to that of the memory modify command. While it displays memory as
normal, it also handles the one or two levels of indirection necessary to access memory or
registers within IO devices. It also handles modifying these values.
Arguments
:
device
-r
-b, -h, -w Sets size of device accesses. If not specified, the default size is bytes for
devices (as shown in the device listing).
-a addr
Sets the subaddress for a device. Used for I2C EEPROM access, which
is typically 0x50-0x57.
addr1
The starting address to display.
addr2
The optional ending address.
The name of the device. If not entered a list of known devices is shown.
Displays data byte-reversed.
The “dm” command with no parameters will display a list of all the known devices.
The “dm” command will display the contents of a particular location in the requested
format, then wait for user commands, which may be any of the following:
value
Write the hexadecimal value to the current location. The value entered
may be truncated, if necessary, to the memory size.
‘a(chǎn)bcd’
Write the character literal value(s) “abcd” to the current location. The
leading single quote is required.
return
Go to the next location using the current selected direction (defaults to
forward)
v
Set the direction to forward. Upon return, the current location advances
by +1 byte, halfword or word.
^
Set the direction to reverse. Upon return, the current location advances
by -1 byte, halfword or word.
=
Set the direction to 0. “dm” will keep examining and modifying the same
location until ‘v’ or ‘^’ is entered.
Command
devmod
Abbreviation
dm
Syntax
dm [device [-b|-h|-w] [-a devaddr] addr1[ ‘-’ addr2]
Builds
DINK
Boards
All
Processors
All
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.