395
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
23.5
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
• 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 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: ‘>’
Table 23-2.
Commands Available through the SAM-BA Boot
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#
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...