4.1. Windows Build

Building the Plug & Trust MW on Windows enables to explore the MW stack and examples in a rich IDE. Only the low level communication to the secure element is done on a connected host as interface to the secure element. This process and the hardware setup to connect to SE05x is shown in AN12398 Quick start guide se05x Visual Studio Project examples.

4.1.1. Prerequisite

  • Visual studio installed

  • Python 3 32 bit installed

Refer https://www.nxp.com/docs/en/application-note/AN12398-Quick_start_guide_se050_vs_projects.pdf for more details on prerequisite installation steps.

4.1.2. Create Build files

  • Use <SE05X_root_folder>/simw-top/scripts/create_cmake_projects.py to

    generate the build files, Run as

    @REM Setup environment variables and PATH
    call env_setup.bat
    
    @REM Use CMake to generate .sln files
    python create_cmake_projects.py
    

    Note

    There should not be any spaces in SE05X_root_folder

  • Build files are generated at <SE05X_root_folder>/simw-top_build/

  • Use the visual studio solution at <SE05X_root_folder>/simw-top_build/se_x86/PlugAndTrustMW.sln to build sample examples and demo examples

Note

In case of using powershell, use env_setup.ps1 script to set environment variables.

4.1.3. SSS Examples

  • Sample examples can be found at <SE05X_root_folder>/simw-top_build/se_x86/bin

  • Run the example as

    <example_name>.exe <COM_PORT>
    

Refer Demo and Examples for details on these examples and for running cloud/tls demo applications