SimplePublish for SAM C21 Xplained Pro
...
Note |
---|
Windows is the only supported OS for the latest Atmel Studio 7. |
Tip |
---|
ASF is included in Atmel Studio 7 and does not require a specific download, but you can use the Extension Manager (Tools->Extension Manager) to update it. |
Prepare the SAM C21 Xplained Pro
...
Make sure that the jumper on the 3-pin header labeled VCC_SEL is set to 3.3 V, as seen in Figure 15. This will select 3.3 V as the supply voltage for the ATSAMC21J18A, peripherals and extension headers, which is important as we will power the mote from the latter.
...
Anchor | ||||
---|---|---|---|---|
|
Figure 15: Xplained Pro VCC selection header.
...
Anchor | ||||
---|---|---|---|---|
|
Figure 26: Mote connected to the SAM C21 Xplained Pro.
The Xplained Pro has three extension headers (EXT1, EXT2, EXT3) with pins as listed in Table 17: Connect the mote to one of the headers, as per the mapping in Table 28. In Figure 26 you can see the mote connected to EXT1, but it does not matter which one you use: The pins for UART RX/TX on all three headers are connected to the same pins on the SAM C21.
...
Section | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
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 15 and Figure 26), and is used to program, debug and power the board.
...
- Open the ASF Wizard: ASF > ASF Wizard (Ctrl+W)
- Select the correct project in the drop down menu (if not already selected).
You should now see two windows with Available vs Selected Modules. Select and Add >> all the modules listed in Table 39.
Note Make sure to select the correct mode when adding certain modules (you can change the mode of already selected modules too).
Press Apply.
Name
| Type | Mode | Comment | ||||||
---|---|---|---|---|---|---|---|---|---|
Generic board support | Driver | Selected by default | |||||||
Delay routines | Service | cycle | Used to implement dn_sleep_ms | ||||||
PORT - GPIO Pin Control | Driver | Selected by default | |||||||
RTC - Real Time Counter Driver | Driver | count_polled | Used to implement dn_time_ms | ||||||
SYSTEM - Core System Driver | Driver | Selected by default | |||||||
WDT - Watchdog Timer | Driver | callback | Used to implement watchdog functionality (optional) |
Table 39: ASF modules used in the SimplePublish example code.
...