10.5.1 Command List
Table 10-5.
Command
N
T
O
o
H
h
W
w
S
R
G
V
Commands Available through the SAM-BA Monitor
Action
Argument(s)
Set normal mode
No argument
Set terminal mode
No argument
Write a byte
Address, Value#
Read a byte
Address,#
Write a half word
Address, Value#
Read a half word
Address,#
Write a word
Address, Value#
Read a word
Address,#
Send a file
Address,#
Receive a file
Address, NbOfBytes#
Go
Address#
Display version
No argument
Example
N#
T#
O200001,CA#
o200001,#
H200002,CAFE#
h200002,#
W200000,CAFEDECA#
w200000,#
S200000,#
R200000,1234#
G200200#
V#
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: Writes 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: Reads 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 following by ‘>’
Send a file (S): Sends 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 command
execution.
Receive a file (R): Receives data into a file from a specified address
̶ Address: Address in hexadecimal
̶ NbOfBytes: Number of bytes in hexadecimal to receive
̶ Output: ‘>’
Go (G): Jumps 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): Returns the Boot Program version
̶ Output: version, date and time of ROM code followed by the prompt: ‘>’.
70 SAM9G46 Series [DATASHEET]
Atmel-11028G-ATARM-SAM9G46-Datasheet_08-Dec-15