Atmel ARM-Based Evaluation Kit AT91SAM9N12-EK AT91SAM9N12-EK Data Sheet

Product codes
AT91SAM9N12-EK
Page of 1104
103
SAM9N12/SAM9CN11/SAM9CN12 [DATASHEET]
11063K–ATARM–05-Nov-13
12.2.5.1 Command List
Mode commands:
Normal mode configures SAM-BA Monitor to send / receive data in binary format,
Terminal mode configures SAM-BA Monitor to send / receive data in ascii format.
Write commands: Write a byte (O), a halfword (H) or a word (W) to the target. 
Address: Address in hexadecimal.
Value: Byte, halfword or word to write in hexadecimal.
Output: ‘>’
Read commands: Read a byte (o), a halfword (h) or a word (w) from the target.
Address: Address in hexadecimal.
Output: The byte, halfword or word read in hexadecimal followed by ‘>’
Send a file (S): Send a file to a specified address.
Address: Address in hexadecimal.
Output: ‘>’
Note:
There is a time-out on this command which is reached when the prompt ‘>’ appears before the end of the com-
mand execution.
Receive a file (R): Receive data into a file from a specified address
Address: Address in hexadecimal.
NbOfBytes: Number of bytes in hexadecimal to receive.
Output: ‘>’
Go (G): Jump to a specified address and execute the code.
Address: Address to jump in hexadecimal.
Output: ‘>’once returned from the program execution. If the executed program does not handle the link 
register at its entry and does not return, the prompt will not be displayed.
Get Version (V): Return the Boot Program version.
Output: version, date and time of ROM code followed by ‘>’.
Table 12-5. Commands Available through the SAM-BA Monitor
Command
Action
Argument(s)
Example
N
set Normal mode
No argument
N
T
set Terminal mode
No argument
T#
O
write a byte
Address, Value#
O200001,CA#
o
read a byte
Address,#
o200001,#
H
write a half word
Address, Value#
H200002,CAFE#
h
read a half word
Address,#
h200002,#
W
write a word
Address, Value#
W200000,CAFEDECA#
w
read a word
Address,#
w200000,#
S
send a file
Address,#
S200000,#
R
receive a file
Address, NbOfBytes#
R200000,1234#
G
go
Address#
G200200#
V
display version
No argument
V#