Atmel Evaluation Kit AT91SAM9X25-EK AT91SAM9X25-EK Data Sheet

Product codes
AT91SAM9X25-EK
Page of 1151
63
SAM9X25 [DATASHEET]
11054E–ATARM–10-Mar-2014
11.5 SAM-BA Monitor
If no valid code has been found in NVM during the NVM bootloader sequence, the SAM-BA Monitor program is launched.
The SAM-BA Monitor principle is to:
Initialize DBGU and USB
Check if USB Device enumeration has occurred
Check if characters have been received on the DBGU
Once the communication interface is identified, the application runs in an infinite loop waiting for different commands as 
listed in 
Figure 11-10.SAM-BA Monitor Diagram
11.5.1 Command List
Character(s) received
on DBGU ?
Run monitor
Wait for command 
on the USB link
Run monitor
Wait for command 
on the DBGU link
USB Enumeration 
Successful ?
Yes
Yes
No
No
Init DBGU and USB
No valid code in NVM
Table 11-4. Commands Available through the SAM-BA Monitor
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#