NXP AN12398, SE05 Quick Start Guide

AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
Rev. 2.3 — 7 December 2020 Application note 534622
Document information
Keywords EdgeLock SE05x, EdgeLock SE05x Plug & Trust Middleware, Visual Studio
projects
Abstract This document explains how to get started with EdgeLock SE05x Plug &
Trust middleware using the Visual Studio project examples. It provides detailed instructions to run the Microsoft Visual Studio projects using the CMake-based build system included in the EdgeLock SE05x Plug & Trust middleware.
NXP Semiconductors
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
Revision history
Revision history
Revision number
1.0 2019-06-08 First document release
1.1 2019-06-20 Update of board figures
2.0 2019-11-25 Update of CMake buld system materials
2.1 2019-12-17 Corrected OM-SE05xARD J14 jumper setting
2.2 2020-11-19 Update for EdgeLock SE051
2.3 2020-12-07 Updated to the latest template and fixed broken URLs
Date Description
AN12398
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 2 / 34
NXP Semiconductors
EdgeLockTM SE05x Quick start guide with Visual Studio project examples

1 How to use this document

The Plug & Trust middleware package is delivered with the CMake files that include the set of directives and instructions describing the project's source files and targets. The CMake architecture allows developers to build files for their platform and native build environment and run exactly the same project example on PC/Windows/Linux and embedded targets.
This document provides detailed instructions to run Visual Studio examples provided in the Plug & Trust middleware using FRDM-K64F and OM-SE05xARD boards. The main body of this document should be used in this sequence:
1. Order board samples. Section 2 contains the ordering details of the boards required in this document
2. Setup your boards. Section 3 describes how to setup the OM-SE05xARD and FRDM­K64F boards.
3. Run project examples. Go to Section 4 for instructions to import and run EdgeLock SE05x Visual Studio project examples.
Supplementary material has been provided in the appendices.
AN12398
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 3 / 34
NXP Semiconductors

2 Hardware required

The EdgeLock SE05x works as an auxiliary security device attached to a host controller, communicating with through an I²C interface. To follow the instructions provided in this document, you need an EdgeLock SE05x development board and a FRDM-K64F MCU board, acting as a host controller.
EdgeLock SE05x development boards ordering details
The EdgeLock SE05x support package provides development boards for evaluating EdgeLock SE050 and EdgeLock SE051 features. Select the development board of the product you want to evaluate. Table 1 details the ordering details of the EdgeLock SE05x development boards.
Table 1. EdgeLock SE05x development boards.
Part number 12NC Description Picture
OM-SE050ARD 935383282598 SE050 Arduino
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
®
compatible development kit
OM-SE051ARD 935399187598 SE051 Arduino
compatible development kit
®
Note: The pictures in this guide will show EdgeLock SE050, but EdgeLock SE051 can be used as well with the same configuration.
FRDM-K64F MCU board ordering details
Table 2 details the ordering details for the FRDM-K64F board.
Table 2. FRDM-K64F details
Part number 12NC Content Picture
FRDM-64F 935326293598 Freedom development
platform for Kinetis K64, K63 and K24 MCUs
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 4 / 34
NXP Semiconductors

3 Boards setup

This section explains how to prepare the OM-SE05xARD boards and FRDM-K64F board to run the Plug & Trust middleware project examples. This consists of:
1. Update FRDM-K64F with DAPLIink firmware.
2. OM-SE05xARD jumper configuration.
3. OM-SE05xARD and FRDM-K64F board connection.

3.1 Update FRDM-K64F board with DAPLink firmware

Arm Mbed DAPLink is an open-source software project that enables programming and debugging application software running on Arm Cortex CPUs. DAPLink runs an open­source bootloader and enables developers with drag-and-drop programming, a serial port and CMSIS-DAP based debugging.
Note: To debug MCUXpresso project examples, we need to flash FRDM-K64F with DAPLink firmware. If your FRDM-K64F board already includes DAPLink firmware, you can skip these steps.
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
To flash DAPLink firmware, follow these steps:
1. Go to NXP OpenSDA site
2. Scroll down and select FRDM-K64F board from the Download - OpenSDA bootloader and application drop down list as indicated in Figure 1:
Figure 1.  DAPLink firmware update - select board
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 5 / 34
NXP Semiconductors
3. Download the latest DAPLink firmware version as shown in Figure 2:
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
Figure 2.  DAPLink firmware update - select bootloader
4. Start the board's bootloader mode. To do so, (1) keep reset button pressed while (2) connecting the USB cable to the SDA USB port and release it after 1s (Figure 3):
Figure 3.  Enter bootloader mode
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 6 / 34
NXP Semiconductors
5. Drag and drop or copy and paste the binary file into the BOOTLOADER drive from
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
your computer file explorer as shown in Figure 4. The FRDM-K64F will automatically un-mount after the drag and drop operation.
Figure 4.  Enter bootloader mode
6. Un-plug and re-plug the USB cable from the SDA USB port without keeping reset button pressed.
7. Check the category Ports (COM & LTP) from your computer Device Manager to ensure that new devices have been properly detected and their driver correctly installed by your computer OS.
Figure 5.  Enter bootloader mode
Note: In case the device does not show up in your Device Manager, please download the latest bootloader version, as shown in Figure 2, or check / exchange the USB cables used.
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 7 / 34
NXP Semiconductors
3.2 OM-SE05xARD jumper configuration
The OM-SE05xARD boards have jumpers that allow you to configure the I2C interface of EdgeLock SE05x secure elements via the Arduino header. Configure the jumper settings as shown in Figure 6 to enable this option.
Note: For more information about the jumper settings, refer to AN12395 (OM- SE050ARD) and AN13016 (OM-SE051ARD) respectively.
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
Figure 6.  Jumper configuration for FRDM-K64F
3.3 OM-SE05xARD and FRDM-K64F board connection
The OM-SE05xARD boards and FRDM-K64F board can be directly connected using the Arduino connectors. The OM-SE05xARD boards come with male connectors while the FRDM-K64F board comes with female headers.
Mount any OM-SE05xARD board on top of the FRDM-K64F as shown in Figure 7:
Figure 7.  Arduino connectors of OM-SE05xARD and FRDM-K64F boards
Double check that the two boards are connected as shown in Figure 8:
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 8 / 34
NXP Semiconductors
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
Figure 8.  OM-SE05xARD mounted in FRDM-K64F board
Note: Refer to Figure 6 for OM-SE05xARD jumper configuration.
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 9 / 34
NXP Semiconductors
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
AN12398

4 Run Plug & Trust middleware Visual Studio project examples

This section explains how to run Plug & Trust middleware Visual Studio project examples using the CMake-based build system.

4.1 Prerequisites

The following tools are required to run the Plug & Trust middleware Visual Studio projects:
1. Install Visual Studio 2017 version, or higher, in your laptop. For reference, Section 5 illustrates how Visual Studio 2017 version can be installed, but the same procedure can be applied for more recent versions.
2. Install CMake. For reference, Section 6 illustrates the detailed installation instructions.
3. Install Python 3.7.x 32-bit version, or higher, in your laptop. For reference, Section 7 illustrates how Python 3.7.x 32-bit version can be installed, but the same procedure can be applied for more recent versions.

4.2 Download Plug & Trust middleware

Follow these steps to download the Plug & Trust middleware in your local machine:
1. Download Plug & Trust middleware from the NXP website.
2. Create a folder called se050_middleware in C: directory as shown in Figure 9:
Figure 9.  Create se050_middleware folder
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 10 / 34
NXP Semiconductors
3. Unzip the Plug & Trust middleware inside the se050_middleware folder. After
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
unzipping, you will see a folder called simw-top created. The contents of the simw­top directory should look as shown in Figure 10:
Figure 10.  Unzip se050 middleware
Note: It is recommended to keep se050_middleware with the shortest path possible and without spaces in it. This avoids some issues that could appear when building the middleware if the path contains spaces.

4.3 Build Plug & Trust middleware project examples

The Plug & Trust middleware uses CMake for building the project examples into your local machine. To build Plug & Trust middleware, open a Command Prompt and use the following steps as shown in Figure 11:
1. Go to folder with the unzipped SE050 middleware: (1) Send >> cd C:\se050_middleware\simw-top\scripts
2. Define the environment: (2) Send >> env_setup.bat
AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
Application note Rev. 2.3 — 7 December 2020
534622 11 / 34
Loading...
+ 23 hidden pages