|
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
|
▷ |