Microchip Technology SAMR34J18B Quick Start Manual
Text of Microchip Technology SAMR34J18B Quick Start Manual
SAMR34 Getting Started LoRaWAN USB_CDC example Quick Start Guide
Introduction
This document is intended as a guide to help you understand the features, and to describe how to use the example
project: SAMR34 Getting Started LoRaWAN USB_CDC
Table of Contents
Contents
SAMR34 Getting Started LoRaWAN USB_CDC example Quick Start Guide ................................................. 1
Table of Contents ......................................................
The “SAMR34 Getting Started LoRaWAN USB_CDC ” example application is an ASF 3 based project that is intended to
be used with the SAMR34 XPRO evaluation kit.
The goal of this application is to allow a user to create a LoRaWAN end node application that supports the following
capabilities:
•
Console output directed to Target USB_CDC port, using the SAMR34 USB peripheral and ASF USB
component drivers
•
Configuration of parameters requi
2. Development environment
This section provides information on the required tools needed to setup and build the example project ,
and the platform to run it on.
2.1.
Atmel Studio 7
Atmel Studio 7 can be used to develop and debug applications for Microchip ARM-based platforms. Atmel
Studio 7 is equipped with the GCC compiler, and does not require any additional external software tools
to compile and debug SAMR34 LoRaWAN applications.
Below are a few ref
3. Stack Configurations
This project takes advantage of configuration .h files to define and configure the behavior of the stack.
The configuration file that is important to the initial operation of this example project is:
▪
..\src\config\conf_app.h
Within the file conf_app.h you must initially configure the defines listed below:
The data for each of these defines must be modified to reflect the EUI’s and Keys required by your selected Network
Ser
4. Building applications in Atmel Studio
Atmel Studio 7 is used to develop and build SAMR34 applications.
To configure or review the project settings before building your project, follow the instructions
below.
4.1.
Setting Project / Properties
Project settings and properties can be configured thru the Project/Properties menu Tabs
To select which device EUI you will be using, select the Toolchain item under project properties.
Then select Symbols in t
5. Hardware environment setup
5.1.
Supported platform and eval board
The following board is used/supported in this release.
SAMR34 Xplained Pro Part# DM320111
This board can be powered from the Debug USB port located at the top right of the image shown above or by
way of the 5v Power Header shown at the top right-hand edge of the above image.
Other methods are available, but not used for this example application.
Note! The small battery located at t
6. LoRaWAN USB_CDC example project
The USB_CDC example application code focuses on the elements required to use the on board USB peripheral
as a communications console for a Lorawan end node.
The following features of the SAMR34 LoRaWAN solution are demonstrated:
•
Establish a USB CDC serial console connection between the SAMR34 XPRO and a PC running a terminal
application like TeraTerm or a similar app.
•
Establish a LoRaWAN connection automatical
Once you have started the second Tera Term terminal and configured it for the proper baud rate and enabled CRLF line
terminations, you can then press the SW0 button on the SAMR34 XPRO board. You will then see a screen similar to the
one shown below in the terminal window connected to the TARGET USB connector.
Enter a number between 1 and 7 to select the rf band or region that you intend to operate within.
Menu Selection 8 will allow you to clear the per
Following the display of the above screen, a join request is sent using the displayed parameters/attributes
If the Join operation is not successful, you will be shown a screen similar to the one shown below
In this case, a join attempt on Channel 13 (North America band ) has failed.
A delay is performed before the next Join attempt.
If the Join attempt is successful, you will be presented with a screen as shown below:
The successful Join, shown above,