English
Language : 

SAM7S256_14 Datasheet, PDF (146/775 Pages) ATMEL Corporation – ARM-based Flash MCU
– Once the communication interface is identified, the application runs in an infinite loop waiting for
different commands as shown in Table 21-1.
Table 21-1.
Command
O
o
H
h
W
w
S
R
G
V
Commands Available through the SAM-BA Boot
Action
Argument(s)
Example
write a byte
Address, Value#
O200001,CA#
read a byte
Address,#
o200001,#
write a half word
Address, Value#
H200002,CAFE#
read a half word
Address,#
h200002,#
write a word
Address, Value#
W200000,CAFEDECA#
read a word
Address,#
w200000,#
send a file
Address,#
S200000,#
receive a file
Address, NbOfBytes#
R200000,1234#
go
Address#
G200200#
display version
No argument
V#
• 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 following 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 command
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: ‘>’
• Get Version (V): Return the SAM-BA boot version
– Output: ‘>’
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
146