Using Atmel Data Gateway Interface with QTouch Analyzer

What is Embedded Debugger (EDBG)?

The Atmel Embedded Debugger (EDBG) is an on-board debugger for kits with Atmel devices. EDBG enables the user to debug the target device without an external debugger. EDBG also brings additional features with a Data Gateway Interface (DGI) and a Virtual COM Port for streaming of data to a host PC. The Atmel EDBG will enumerate as a composite USB device with separate interfaces for each function. The Atmel EDBG is embedded on all Xplained Pro evaluation kits

What is Data Gateway Interface (DGI)?

The Atmel Embedded Debugger (EDBG) offers a Data Gateway Interface (DGI) for streaming data to a host PC. This is meant as an aid in debugging and demonstration of features in the application running on the target device. DGI consists of multiple interfaces for data streaming. The supported interfaces are SPI Interface, USART Interface, TWI Interface, GPIO Interface.

What are the interfaces supported by DGI in SAM D20 XPRO Kit?

SAM D20 XPRO Kit Data gateway interface supports SPI and TWI. Port pin details are given in the figures:

Figure 1. DGI interface connections when using SPI

Figure 2. DGI interface connections when using TWI

Does QTouch Analyzer support DGI?

Yes, QTouch Analyzer can communicate to the EDBG DGI. The touch data (QDebug protocol) from SAM D20 can be sent through SPI/TWI channels to EDBG DGI. The DGI further transmits data to QTouch Analyzer through USB-WinUSB.

Figure 3. Communication between QTouch Analyzer and SAM D20

Currently the QTouch Analyzer supports the DGI from SAM D20 XPRO board.

How to send QDebug data from SAM D20 to EDBG-DGI (using SAM D20 XPRO and QT1 extension board)?

How to program/debug the user board/customer Board using SAM D20 Xplained Pro board?

The SAM D20 Xplained Pro features a Cortex® Debug Connector (10-pin) for programming and debugging an external target. The connector is limited to the SWD interface and is intended for in-system programming and debugging of SAM D20 devices in the users final products.

Figure 6. SAM D20 XPRO Kit with external Program/Debug Interface

The debug connector is connected to the on-board EDBG through level shifters and switches. When an external target voltage is detected, the EDBG will switch the SWD interface from the on-board target device to the external debug connector and the green LED next to the connector will be lit. The voltage of the external target must be between 1.6V and 5.0V.

Figure 7. Cortex Debug Connector Pins

How to send QDebug data from the Customer Board to the QTouch Analyzer through SAM D20 Xpro Kit?

Figure 8. SAM D20 XPRO - Customer Board Interface

SAM D20 XPRO board can be used to receive QDebug data from Customer board and send it to QTouch Analyzer via EDBG’s DGI (as shown in Figure). To stream QDebug data from user board to QTouch Analyzer, a relay firmware should be flashed on to the SAM D20 XPRO Kit.