background image

NXP Semiconductors

AN12398

Quick start guide to SE050 Visual Studio projects

AN12398

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2019. All rights reserved.

Application note

Rev. 1.1 — 20 June 2019

534611

23 / 36

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 36

:

a. Unplug the USB cable from the OpenSDA USB port.

b. Plug the USB cable to the OpenSDA USB port.

c. Check that the serial port is recognized in the category 

Ports (COM & LTP)

. In

this document, it is recognized as 

USB Servial Device (COM7)

 but this naming

might change depending on your computer. Therefore, it is important that you

identify which device is recognized at the moment you plug the SDA USB port to

the computer.

d. Plug the USB cable to the K64F USB port.

e. Check that the VCOM port is recognized in the category 

Ports (COM & LTP)

.

In this document, it is recognized as 

Virtual Com Port (COM8)

 but this naming

might change depending on your computer (e.g. It could also appear named as

USB Serial Device

). Therefore, it is important that you identify which device is

recognized at the moment you plug the K64F USB port to the computer.

Содержание SE050

Страница 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 examples included in SE050 Plug Trust middleware ...

Страница 2: ...ormation provided in this document is subject to legal disclaimers NXP B V 2019 All rights reserved Application note Rev 1 1 20 June 2019 534611 2 36 Revision history Revision history Revision number Date Description 1 0 2019 06 08 First document release 1 1 2019 06 20 Update of board figures ...

Страница 3: ...re 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 Part number 12NC Content Picture OM SE050ARD 935383282598 SE050 development board 2 FRDM K64F board Table 2 FRDM K64F details Part number 12NC Content Picture FRDM 64F 935326293598 Freedom ...

Страница 4: ...rsion 32 bit 2 1 Install Visual Studio Community 2017 Visual Studio is Microsoft s fully featured IDE for Android iOS Windows web and cloud Visual Studio 2017 introduces rich support for CMake including cross platform CMake projects To install Visual Studio 2017 1 Go to Visual Studio site 2 Select 1 Windows and click on Community 2017 in the Download Visual Studio button as shown in Figure 1 Figur...

Страница 5: ... 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 2 click install as shown in Figure 3 Figure 3 Select desktop development with C 5 Visual C Tools for CMake is installed by default as part of the Desktop development with C workload This process might take several minut...

Страница 6: ...d to reboot your system as shown in Figure 5 Figure 5 Visual Studio installation reboot 2 2 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 an...

Страница 7: ... 20 June 2019 534611 7 36 2 Scroll down and select your binary distribution For this guide the binary distribution is Windows as shown in Figure 6 Figure 6 Download CMake 3 Double click on the downloaded installer file Windows Defender SmartScreen might pop up the wizard shown in Figure 7 Figure 7 Execute CMake installer 4 If that is your case Click 1 on More info and then 2 click on Run anyway as...

Страница 8: ...9 All rights reserved Application note Rev 1 1 20 June 2019 534611 8 36 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 9 Figure 9 CMake installation wizard 6 As part of the CMake setup 1 Add Cmake to the system PATH for all users and 2 click Next as shown in Figure 10 ...

Страница 9: ... to legal disclaimers NXP B V 2019 All rights reserved Application note Rev 1 1 20 June 2019 534611 9 36 Figure 10 Add CMake path 7 Select a destination folder 1 click Next and then 2 click Install as shown in Figure 11 Figure 11 Install CMake 8 Wait a few seconds until the installation is completed and click Finish as shown in Figure 12 ...

Страница 10: ...ython 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 Python v3 is not supported and neither is the 64 bit version as shown in Figure 13 Figure 13 Download Python 2 7 15 32 bit version 2 Double click on the downloaded installer file 3 Follow the setup wizard as ind...

Страница 11: ... In the Customize Python 2 7 15 wizard leave the defaults and click Next button b Wait a few seconds until the installation is completed and click Finish button Figure 15 Install Python 2 7 15 32 for Windows II 5 To complete the setup we need to set the Python environment variables Open the environment variables menu in your laptop For that you can do as shown in Figure 16 a Type environment varia...

Страница 12: ...s subject to legal disclaimers NXP B V 2019 All rights reserved Application note Rev 1 1 20 June 2019 534611 12 36 Figure 16 Open your environment variables menu 6 Find the PATH variable and click Edit as shown in Figure 17 Figure 17 Find PATH environment variable 7 You want to add Python to this PATH variable Follow these steps ...

Страница 13: ... Python in a different path you should add the path to your Python installation c Click OK button d Click OK button again Figure 18 Add Python to your PATH environment variable I 8 You also want to add Python Scripts to this PATH variable Follow these steps a Click New button b Add C Python27 Scripts as shown in Figure 19 this is the default Python installation path If you install Python in a diff...

Страница 14: ...s 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 Check that Python is recognized in your machine as shown in Figure 20 Figure 20 Verify Python installation Note If your command prompt returns the error python is not recognized as an internal or external command operable program or batch fi...

Страница 15: ...udio projects included in SE050 Plug Trust middleware For that you need to go through the following steps 1 Install FRDM K64F SDK 2 Update FRDM K64F with DAPLIink firmware 3 Flash VCOM software to FRDM K64F 4 Hardware setup for FRDM K64F 3 1 1 Install FRDM K64F SDK The FRDM K64F board SDK is required to compile build and debug MCUXpresso project examples To install the FRDM K64F into your MCUXpres...

Страница 16: ...document is subject to legal disclaimers NXP B V 2019 All rights reserved Application note Rev 1 1 20 June 2019 534611 16 36 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 Figure 24 ...

Страница 17: ...36 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 2 click OK as shown in Figure 25 Figure 25 Import FRDM K64F board SDK into MCUXpresso environment 7 If the SDK is successfully imported you should see it listed in the I...

Страница 18: ...ables 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 To flash ...

Страница 19: ... reserved Application note Rev 1 1 20 June 2019 534611 19 36 Figure 27 DAPLink firmware update select board 3 Download the latest DAPLink firmware version as shown in Figure 28 Figure 28 DAPLink firmware update select board 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 29 ...

Страница 20: ...r 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 Figure 30 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 ne...

Страница 21: ...lash 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 Unplug and plug again the USB cable to the openSDA USB port as shown in Figure 32 Figure 32 Unplug and...

Страница 22: ...v 1 1 20 June 2019 534611 22 36 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 in Figure 34 Figure 34 VCOM binary folder 4 Drag and drop or copy and paste the a7x_vcom T1oI2C frdmk64f SE050x bin file into the FRDM K64F drive from your computer file explorer as shown ...

Страница 23: ... c Check that the serial port is recognized in the category Ports COM LTP In this document it is recognized as USB Servial Device COM7 but this naming might change depending on your computer Therefore it is important that you identify which device is recognized at the moment you plug the SDA USB port to the computer d Plug the USB cable to the K64F USB port e Check that the VCOM port is recognized...

Страница 24: ...M 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 3 1 4 1 Mounting the boards 1 Disconnect the boards from your laptop in case you have them connected 2 Connect the OM SE050ARD board on top of the FRDM K64F using the Arduino connectors as shown in Figure 37 Figure 37 Arduino connec...

Страница 25: ... reserved Application note Rev 1 1 20 June 2019 534611 25 36 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 in Figure 39 Figure 39 Jumper configuration for FRDM K64F For more information about the OM SE050ARD jumper settings refer to AN12395 OM SE050ARD hardware overview ...

Страница 26: ...are able to run an SE050 Plug Trust middleware test example 4 1 Download SE050 Plug Trust middleware The SE050 Plug Trust middleware stack includes several MCUXpresso project examples for cloud service onboarding To download SE050 Plug Trust middleware 1 Download SE050 Plug Trust middleware from www nxp com se050 2 Create a folder called se050_middleware in C directory as shown in Figure 40 Figure...

Страница 27: ...ear when building the middleware if the path contains spaces 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 and use the following steps as shown in Figure 42 1 Go to folder with the unzipped SE050 middleware 1 Send cd C se050_middle...

Страница 28: ...gure 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 43 Figure 43 SE050 middleware project structure 5 Go to the C se050_middleware simw top_build directory with the Windows File Explorer if CMake runs successfully the directory should look like Figure 44 Fig...

Страница 29: ... in SE050 security IC Note The execution of the se05x_minimal project is shown as an example The steps detailed in this section can be replicated to run any other test example included as part of the SE050 Plug Trust middleware To execute the se05x_minimal test example follow these steps 1 Connect the FRDM K64F board to your laptop as shown in Figure 45 Check that your Windows Device Manager recog...

Страница 30: ...will open with the SE050 Plug Trust middleware project examples included in the workspace as can be seen in Figure 47 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 48 a Go to the ex_common project and open the ex_sss_ports h file inside the headers directory b Ch...

Страница 31: ...t 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 as StartUp project as shown in Figure 49 Figure 49 Set se05x_minimal as StartUp project 6 Click on Local Windows Debugger button in the top menu to run se05x_minimal project as shown in Figure 50 The pr...

Страница 32: ...019 534611 32 36 Figure 50 Build and run se05x_minimal project 7 If the se05x_minimal project runs successfully a Console window will be opened The logs in this Console window indicate the available memory in SE050 security IC in this case 592 as can be seen in Figure 51 Figure 51 Verify that se05x_minimal project is running 8 The same operation can be repeated with any of the other SE050 Plug Tru...

Страница 33: ...or the customer s applications and products planned as well as for the planned application and use of customer s third party customer s Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products NXP Semiconductors does not accept any liability related to any default damage costs or problem which is based on any weaknes...

Страница 34: ...l Studio projects AN12398 All information provided in this document is subject to legal disclaimers NXP B V 2019 All rights reserved Application note Rev 1 1 20 June 2019 534611 34 36 Tables Tab 1 OM SE050ARD development kit details 3 Tab 2 FRDM K64F details 3 ...

Страница 35: ...16 Fig 23 Download FRDM K64F board SDK 16 Fig 24 Accept FRDM K64F board SDK software terms and conditions 17 Fig 25 Import FRDM K64F board SDK into MCUXpresso environment 17 Fig 26 FRDM K64F board SDK imported 18 Fig 27 DAPLink firmware update select board 19 Fig 28 DAPLink firmware update select board 19 Fig 29 Enter bootloader mode 20 Fig 30 Enter bootloader mode 20 Fig 31 Enter bootloader mode ...

Страница 36: ...are 3 1 2 Required software 3 2 Prepare your laptop 4 2 1 Install Visual Studio Community 2017 4 2 2 Install CMake 6 2 3 Install Python 10 3 Prepare your host platform 15 3 1 Prepare your FRDM K64F board 15 3 1 1 Install FRDM K64F SDK 15 3 1 2 Update FRDM K64F board with DAPLink firmware 18 3 1 3 Flash FRDM K64F with VCOM software 21 3 1 3 1 Flash FRDM K64F with VCOM software 21 3 1 4 Hardware set...

Отзывы: