Software Setup

There are two USB ports on the SAM L22 Xplained Pro board; DEBUG USB and TARGET USB. For debugging using the Embedded debugger (EDBG), the DEBUG USB port has to be connected. Once the SAM L22 Xplained Pro kit is connected to the PC, the Windows® task bar will pop up a message as shown in the figure below.

Figure 1. SAM L22 Xplained Pro Driver Installation

If the driver installation is proper, EDBG will be listed in the Device Manager as shown in Figure 2.

Figure 2. Successful EDBG Driver Installation

To ensure that the EDBG tool is getting detected in Atmel Studio:

Open Atmel Studio 6.2, go to ‘View’ → ‘Available Atmel Tools’. The EDBG should get listed in the tools as "EDBG" and the tool status should display as "Connected" as shown in the figure below. This indicates that the tool is communicating properly with the Atmel Studio.

Figure 3. EDBG under Available Atmel Tools

If the tool is not displayed in ‘Available Atmel Tools’, disconnect the tool and reconnect again.

Right click on the tool in the ‘Available Tools’ list and click on "Upgrade". This will check if the firmware in the tool is up to date. Click on "upgrade" to upgrade the firmware of the tool to the latest version.

After the software is successfully installed, open the terminal window with the COM port (EDBG Virtual COM port) number detected in Device Manager. The terminal window can be downloaded and installed either from ‘Atmel Gallery’ or through ‘Tools’ → ‘Extension Manager’ in Atmel Studio.

Now the terminal window can be opened from ‘View’ → ‘Terminal Window’. The COM port should be opened with a baudrate of 115200 with the display type as ‘hex’ (see Figure 4). This step ensures that the COM port (EDBG Virtual COM port) enumurates properly, and is used to select the mode of operation. The user input string from the terminal via USART DATA register in this application for the demonstration purpose, which is explained in the following chapters.

Figure 4. Terminal Window in Atmel Studio