-
Notifications
You must be signed in to change notification settings - Fork 4
Running the Example Application
-
Open the provided project in Atmel studio and build the project.
-
Flashing the Firmware to SAMD21 Xplained Pro board
- From the menu select the Tools tab click the Device Programming menu selection.
- From the Device Programming window, select the tool (for instance EDBG) ,the device ,interface and click Apply.
- Click the Memories tab and erase the chip by clicking the Erase now button.
- In the Flash field, fill in the path to the IP protection image and click the Program button.
-
Insert a new CryptoAuth-XPRO socket kit with device to EXT2 and OLED1 XPRO board to EXT3 connector of the SAMD21 XPRO board
-
Connect the USB cable from the PC to the “Debug USB” Port of the SAMD21 Xplained Pro board.
- Open the serial terminal application such as TeraTerm or PuTTY, configure and open the port Atmel Corp EDBG USB Port for 115200 baud with 8 data bits, no parity and 1 stop bit. This is to show any debug log of the application.
- Once programmed, the application should start, and displays the information on the serial console and OLED.
-
If the device is not provisioned, the status LED does a single blink continuously on the SAMD21 Xplained Pro board and application prompts user to press the SW0 button as in the below figure.
-
Press the SW0 button on the SAMD21 Xplained Pro board and the device provisioning starts. Once provisioning is done successfully, the application displays the log in both Console & OLED as in the below figure. The provisioning process is one time.

-
The application prompts user again to press the SW0 button to continue the application and next time when the application starts, it skips step 4,5 & 6. :warning: Provisioning in the application is not recommended
-
Application initially starts first authentication with the device and applications wait until the first authentication succeeds. Below is the authentication success process log:

-
After the initial authentication, the main tic-tac-toe application starts, and now authentication process takes place at random interval continuously between the application and CryptoAuthentication device.
-
Now remove the CryptoAuthentication device from the SAMD21 Xplained Pro board and the authentication should now fail. When that happens, the application stops at the current point and fails to run after that. Status LED blinks thrice to show the authentication failure status.
-
Again if the CryptoAuthentication device is connected to SAMD21 Xplained Pro board, authentication succeeds and the application resumes from the current point.