Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Download and run the Atmel Studio web installer from the official download page, and follow the instructions. This will also install the necessary drivers for the embedded debugger on the Xplained Pro board.

Note

Windows is the only supported OS for the latest Atmel Studio 7.

 

Prepare the SAM C21 Xplained Pro

...

The Xplained Pro has three extension headers (EXT1, EXT2, EXT3) with pins as listed in Table 1: Connect the mote to one of the mote headers as per the mapping in Table 2. In Figure 2 you can see the mote connected to EXT1, but it does not matter which one you use: The pins for UART RX/TX are all connected to the same pins on the SAM C21.

 

 

 

Warning

Long cables between the mote and Xplained Pro may corrupt the API bus communication.

Section
Column
width30%

Anchor
tab_xplainedExtHeader
tab_xplainedExtHeader
Name

Pin #Name
ID12GND
ADC+34ADC-
GPIO056

GPIO1

PWM+78PWM-
IRQ910SPI_SS_B
TWI_SDA1112TWI_SCL
UART_RX1314UART_TX
SPI_SS_A1516SPI_MOSI
SPI_MISO1718SPI_SCK
GND1920VCC

Table 1: Xplained Pro Standard Extention Header.

Column
width30%

Anchor
tab_xplained2MoteMapping
tab_xplained2MoteMapping
Xplained Pro

Mote
VCCVBAT
GNDGND
UART_TXRX
UART_RXTX
GNDRX RTSn
GNDTX CTSn

Table 2: Xplained Pro to mote pin mapping.

Connect Debug USB to Computer
Anchor
sec_debugConnect
sec_debugConnect

Connect a USB cable from your computer to the USB-micro port labeled DEBUG USB: This is the port on the top of the Xplained Pro board (visible in both Figure 1 and Figure 2), and is used to program, debug and power the board.

The debug USB also spawns a virtual serial port named EDBG Virtual COM Port. Make sure to note the name, e.g. COM4 in the example pictured below, as we will open a terminal on said port to see debug prints.
Image Added 

Open Debug Terminal

The SimplePublish example code will send all standard input/output (e.g. debug prints) through the serial port you identified in the previous section. Open your favourite serial terminal and connect to it with the following configurations:

  • Baudrate: 115200
  • Data Bits: 8
  • Parity: None
  • Stop Bits: 1
Note

You probably have to restart the terminal whenever you disconnect/reconnect the debug USB to the Xplained Pro.