SAM3S8B Atmel Corporation, SAM3S8B Datasheet - Page 355

no-image

SAM3S8B

Manufacturer Part Number
SAM3S8B
Description
Manufacturer
Atmel Corporation
Datasheets
21.5
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
SAM-BA Monitor
The SAM-BA boot principle:
Once the communication interface is identified, to run in an infinite loop waiting for different com-
mands as shown in
Table 21-2.
Note:
Command
N
T
O
o
H
h
W
w
S
R
G
V
• Mode commands:
• Write commands: Write a byte (O), a halfword (H) or a word (W) to the target.
• Read commands: Read a byte (o), a halfword (h) or a word (w) from the target.
• Send a file (S): Send a file to a specified address
• Receive a file (R): Receive data into a file from a specified address
• Go (G): Jump to a specified address and execute the code
– 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.
– Address: Address in hexadecimal.
– Value: Byte, halfword or word to write in hexadecimal.
– Output: ‘>’.
– Address: Address in hexadecimal
– Output: The byte, halfword or word read in hexadecimal following by ‘>’
– Address: Address in hexadecimal
– Output: ‘>’.
– Address: Address in hexadecimal
– Output: ‘>’
– Address: Address to jump in hexadecimal
NbOfBytes
There is a time-out on this command which is reached when the prompt ‘>’ appears before the
end of the command execution.
Commands Available through the SAM-BA Boot
Action
set Normal mode
set Terminal mode
write a byte
read a byte
write a half word
read a half word
write a word
read a word
send a file
receive a file
go
display version
: Number of bytes in hexadecimal to receive
Table
21-2.
Argument(s)
No argument
No argument
Address, Value#
Address,#
Address, Value#
Address,#
Address, Value#
Address,#
Address,#
Address, NbOfBytes#
Address#
No argument
h200002,#
w200000,#
R200000,1234#
V#
Example
N#
T#
O200001,CA#
o200001,#
H200002,CAFE#
W200000,CAFEDECA#
S200000,#
G200200#
SAM3S8/SD8
SAM3S8/SD8
355
355

Related parts for SAM3S8B