NXP Semiconductors SE050 Application Note

NXP Semiconductors SE050 Application Note

Quick start guide to visual studio projects
Hide thumbs Also See for SE050:

Advertisement

AN12398
Quick start guide to SE050 Visual Studio projects
Rev. 1.1 — 20 June 2019
534611
Document information
Information
Content
Keywords
SE050, Plug & Trust, Visual Studio projects
Abstract
This application note explains how to run the Microsoft Visual studio projects
examples included in SE050 Plug & Trust middleware.
Application note

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SE050 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for NXP Semiconductors SE050

  • Page 1 AN12398 Quick start guide to SE050 Visual Studio projects Rev. 1.1 — 20 June 2019 Application note 534611 Document information Information Content Keywords SE050, Plug & Trust, Visual Studio projects Abstract This application note explains how to run the Microsoft Visual studio projects...
  • Page 2 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Revision history Revision history Revision Date Description number 2019-06-08 First document release 2019-06-20 Update of board figures AN12398 All information provided in this document is subject to legal disclaimers.
  • Page 3: Read This First

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Read this first This section lists the hardware and software required before starting this document. 1.1 Required hardware The following hardware will be used throughout the document: 1. OM-SE050ARD development kit: Table 1. OM-SE050ARD development kit details...
  • Page 4: Prepare Your Laptop

    Quick start guide to SE050 Visual Studio projects Prepare your laptop This section explains how to get your laptop prepared to execute the SE050 Plug & Trust middleware. To do it, you need to install the following software tools: Visual Studio Community 2017 CMake Python 2.7.15 version 32 bit...
  • Page 5 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 2.  Visual Studio IDE installation wizard 4. As part of the Visual Studio setup, it is mandatory that you enable the installation of Desktop development with C++. Select (1) Desktop development with C++ and...
  • Page 6: Install Cmake

    CMake is an open-source, cross-platform family of tools that helps you build C/C++ projects on multiple platforms using a compiler-independent method. It has minimal dependencies, requiring only a C++ compiler on its own build system. SE050 middleware leverages on CMake to generate native makefiles and workspaces that can be used in the compiler environment of your choice.
  • Page 7 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects 2. Scroll down and select your binary distribution. For this guide, the binary distribution is Windows as shown in Figure Figure 6.  Download CMake 3. Double click on the downloaded installer file. Windows Defender SmartScreen might...
  • Page 8 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 8.  Run the CMake installer 5. The CMake installation wizard will open. Click (1) Next and (2) accept the End-User License Agrement as shown in Figure Figure 9.  CMake installation wizard 6.
  • Page 9 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 10.  Add CMake path 7. Select a destination folder, (1) click Next and then (2) click Install as shown in Figure Figure 11.  Install CMake 8. Wait a few seconds until the installation is completed and click Finish as shown in...
  • Page 10: Install Python

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 12.  Complete CMake installation 2.3 Install Python Use these screenshots to install Python 2.7 in your Windows machine: 1. Go to https://www.python.org/downloads/release/python-2715/ to download Python v.2.7.15 32 bit version. Make sure you download Python v2.7.15 32 bit version.
  • Page 11 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 14.  Install Python 2.7.15 32 bit for Windows (I) 4. Complete the setup wizard as indicated in Figure a. In the Customize Python 2.7.15 wizard, leave the defaults and click Next button.
  • Page 12 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 16.  Open your environment variables menu 6. Find the PATH variable and click Edit as shown in Figure Figure 17.  Find PATH environment variable 7. You want to add Python to this PATH variable. Follow these steps: AN12398 All information provided in this document is subject to legal disclaimers.
  • Page 13 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects a. Click New button. b. Add C:\Python27 as shown in Figure 18 (this is the default Python installation path. If you install Python in a different path, you should add the path to your Python installation).
  • Page 14 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects 9. To verify that Python was successfully installed in your Windows machine and that environment variables have been configured correctly, you can: a. Open a Command Prompt b. Send: > python c.
  • Page 15: Prepare Your Host Platform

    Quick start guide to SE050 Visual Studio projects Prepare your host platform This section explains how to get your board ready to execute the SE050 Visual Studio projects from a Windows machine. You only need to follow the steps related to the MCU platform you choose for evaluation purposes.
  • Page 16 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 22.  Select FRDM-K64F development board 4. In the next screen, click Download SDK button as shown in : Figure 23.  Download FRDM-K64F board SDK 5. Accept the software terms and conditions...
  • Page 17 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 24.  Accept FRDM-K64F board SDK software terms and conditions 6. To import the SDK into your MCUXpresso environment, (1) drag and drop the SDK zip file in the Installed SDKs section in the bottom part of the MCUXpresso IDE and...
  • Page 18: Update Frdm-K64F Board With Daplink Firmware

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 26.  FRDM-K64F board SDK imported 3.1.2 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.
  • Page 19 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 27.  DAPLink firmware update - select board 3. Download the latest DAPLink firmware version as shown in Figure Figure 28.  DAPLink firmware update - select board 4. Start the board's bootloader mode. To do so, (1) keep reset button pressed while (2)
  • Page 20 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 29.  Enter bootloader mode 5. Drag and drop or copy and paste the binary file into the BOOTLOADER drive from your computer file explorer as shown Figure 30. The FRDM-K64F will automatically un-mount after the drag and drop operation.
  • Page 21: Flash Frdm-K64F With Vcom Software

    The VCOM software allows the FRDM-K64F board to be used as a bridge between the Windows machine and the SE050 and enables the execution of the SE050 ssscli tool and other utilities from the laptop. To flash the VCOM software into the FRDM-K64F, follow these steps: 1.
  • Page 22 Quick start guide to SE050 Visual Studio projects Figure 33.  FRDM-K64F drive 3. Flash the VCOM software to FRDM-K64F. The VCOM software binary can be found in the SE050 middleware package, inside the simw-top\binaries folder as shown Figure Figure 34.  VCOM binary folder 4.
  • Page 23 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 35.  Drag and drop VCOM binary 5. The serial and VCOM ports should be recognized by your Device Manager. To check that the ports are recognized, follow the steps indicated in Figure a.
  • Page 24: Hardware Setup For Frdm-K64F

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 36.  Check VCOM and serial ports 3.1.4 Hardware setup for FRDM-K64F The hardware setup consists of two steps: 1. Mounting the boards, as described in Section 3.1.4.1 2. Configuring OM-SE050ARD jumpers, as described in Section 3.1.4.2...
  • Page 25: Jumper Configuration

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 38.  OM-SE050ARD mounted in FRDM-K64F board 3.1.4.2 Jumper configuration 1. Make sure the jumper settings in your OM-SE050ARD board are configured as shown Figure 39 Figure 39.  Jumper configuration for FRDM-K64F...
  • Page 26: Run Se050 Plug & Trust Middleware Test Examples

    Run SE050 Plug & Trust middleware test examples This section details the steps required from the moment you download SE050 Plug & Trust middleware until you are able to run an SE050 Plug & Trust middleware test example. 4.1 Download SE050 Plug & Trust middleware The SE050 Plug &...
  • Page 27: Build Se050 Plug & Trust Middleware Project Examples

    4.2 Build SE050 Plug & Trust middleware project examples The SE050 Plug & Trust middleware uses CMake for building the project examples into your local machine. To build SE050 Plug & Trust middleware, open a Command Prompt...
  • Page 28 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 42.  Generate SE050 Plug & Trust middleware project examples 4. Your project directory should now contain two folders: an empty (1) simw-top folder and a (2) simw-top_build folder as shown in Figure Figure 43. ...
  • Page 29: Execute Se050 Visual Studio Project Examples

    Quick start guide to SE050 Visual Studio projects 4.3 Execute SE050 Visual Studio project examples This section explains how to run the SE050 Plug & Trust middleware test example called se05x_minimal. The se05x_minimal project outputs the memory left in SE050 security IC.
  • Page 30 Figure Figure 47.  PlugAndTrustMW.sln Visual Studio project workspace 4. Change the VCOM port number in the SE050 Plug & Trust middleware project. To do so, follow the instructions shown in Figure a.
  • Page 31 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figure 48.  Change VCOM port number in your solution 5. Select the se05x_minimal project from the Solution Explorer window located on the right-hand side of the Visual Studio IDE. Do right-click on the project and click on Set...
  • Page 32 (in this case, 592) as can be seen in Figure Figure 51.  Verify that se05x_minimal project is running 8. The same operation can be repeated with any of the other SE050 Plug & Trust middleware test examples. AN12398 All information provided in this document is subject to legal disclaimers.
  • Page 33: Legal Information

    NXP Semiconductors does not give any and products using NXP Semiconductors products in order to avoid a representations or warranties as to the accuracy or completeness of...
  • Page 34 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Tables Tab. 1. OM-SE050ARD development kit details ....3 Tab. 2. FRDM-K64F details ...........3 AN12398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2019. All rights reserved.
  • Page 35 AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Figures Fig. 1. Download Visual Studio IDE ......4 Fig. 27. DAPLink firmware update - select board ..19 Fig. 2. Visual Studio IDE installation wizard ....5 Fig. 28.
  • Page 36: Table Of Contents

    AN12398 NXP Semiconductors Quick start guide to SE050 Visual Studio projects Contents Read this first ............3 Required hardware ..........3 Required software ..........3 Prepare your laptop ..........4 Install Visual Studio Community 2017 ....4 Install CMake .............6 Install Python ........... 10 Prepare your host platform ......15...

Table of Contents