1.2.1 Configuration and Connection
On Microchip devices, the UART designated as the ROM code console is determined by the device boot configuration. On fuse-based devices such as SAMA5D3 Series, SAMA5D2 Series or SAMA5D4 Series, it is defined by the Boot Configuration Word programmed into the fuse memory. On OTP-based devices such as SAM9X60, SAM9X7 Series, SAMA7G5 Series or SAMA7D6 Series, it is specified through a Boot Configuration Packet stored in the User Area.
Refer to the Boot Strategies section of the relevant device data sheet for information on the default console.
In addition, the optional parameters instance and
ioset can be provided on the
command line after either the -d, --device or
-b, --board option. The syntax is
as follows:
sam-ba -p <port> -d <device>:help
$ sam-ba -p serial -d sama5d2:help
Syntax: sama5d2:[<instance>]:[<ioset>]
Parameters:
instance Serial console peripheral number
ioset Serial console I/O set
Examples:
sama5d2 use default device/board settings
sama5d2:1:2 use fully custom settings (peripheral number 1, I/O set 2)
sama5d2::2 use default device/board settings but force use of I/O set 2
These parameters override the default settings and specify to the applets which
DBGU/UART/USART/FLEXCOM_USART device and which I/O pins should be used for the console
outputs. When the -d, --device option is used without specifying a
console instance and I/O set, the console output is disabled by default.
