EdgeLockTM SE05x Quick start guide with Visual Studio
project examples
Rev. 2.3 — 7 December 2020Application note
534622
Document information
InformationContent
KeywordsEdgeLock SE05x, EdgeLock SE05x Plug & Trust Middleware, Visual Studio
projects
AbstractThis 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.02019-06-08First document release
1.12019-06-20Update of board figures
2.02019-11-25Update of CMake buld system materials
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
1How 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 FRDMK64F 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.
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 number12NCDescriptionPicture
OM-SE050ARD935383282598SE050 Arduino
AN12398
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
®
compatible
development kit
OM-SE051ARD935399187598SE051 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.
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 opensource 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 - OpenSDAbootloader and application drop down list as indicated in Figure 1:
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):
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.
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:
EdgeLockTM SE05x Quick start guide with Visual Studio project examples
AN12398
4Run 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:
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 simwtop 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.
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