background image

NXP Semiconductors

AN11803

A71CL Quick start guide for A71CLARD-ALI and Kinetis

AN11803

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

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

Application note

Rev. 1.0 — 11 December 2018

COMPANY PUBLIC

353410

20 / 31

To write the downloaded firmware into the Kinetis FRDM board, the bootloader mode

should be enabled. For this, press ‘

Reset’

 button and, while holding down the button,

connect a USB cable to the debugger port of the Kinetis board (e.g., FRDM K64,

Figure 24

).

Figure 24. Enabling bootloader mode

After connecting the USB cable to the Kinetis board, the green led located inside the

yellow square will start blinking and the development PC will show a new drive called

BOOTLOADER’

. The drive may disappear again after ~30 seconds in case there is no

interaction, in this case disconnect and connect again with pressing the ‘

Reset’

 button.

Drag the downloaded firmware directly into the drive, see 

Figure 25

. Once the file is

copied inside the ‘

BOOTLOADER’

 drive the LED will soon start blink fast, then unplug the

Kinetis board and plug it again. The green led stays on, thus indicating that the OpenSDA

bootloader firmware has been configured correctly.

Figure 25. Copying the firmware into the Kinetis board in ‘BOOTLOADER’ mode

Summary of Contents for A71CL

Page 1: ...1 0 11 December 2018 Application note 353410 COMPANY PUBLIC Document information Information Content Keywords Security IC A71CL A71CLARD ALI FRDM K64F Abstract This document helps getting started with A71CL ARDALI and the FRDM K64F development platforms for K64 MCUs ...

Page 2: ... ALI and Kinetis AN11803 All information provided in this document is subject to legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 2 31 Revision history Rev Date Description 1 0 20181211 First release ...

Page 3: ...1 December 2018 COMPANY PUBLIC 353410 3 31 1 Introduction This document explains how to get started with the A71CLARD ALI development kit and the FRDM K64F development platforms for K64 MCUs This guide provides an overview of the hardware used followed by detailed instructions for setting up the software development environment Finally it describes how to run ID2 testsuite using FRDM K64F acting a...

Page 4: ...use security for ID2 IoT device makers to connect to Alibaba Cloud It is a secure element capable of securely storing and provisioning credentials and is already pre provisioned with Alibaba ID2 credentials It is based on A71 secure element hardware which runs an ID2 application which manages the ID2 credentials The A71CL ALI solution provides basic security measures protecting the IC against many...

Page 5: ...mpatible kit Figure 1 System architecture diagram This getting started guide is divided in three parts Hardware overview and setup It describes the FRDM K64F development platform and the A71CL Arduino compatible kit A71CLARD ALI as well as how to mount them together Software setup It describes how to configure the development environment and how to import the required software packages A71CL appli...

Page 6: ... development kit A71CLARD The A71CLARD is an Arduino development kit containing two items as well as 1 An A71CL Mini PCB board 2 An Arduino interface board allowing the user to connect the A71CL to any host featuring an Arduino compatible header e g many LPC Kinetis and i MX boards in the industry 4 1 1 A71 Mini PCB board The Mini PCB board is a small PCB containing the A71 solution and a set of j...

Page 7: ...efault MiniPCB Jumper settings Jumper Setting Usage JP1 Not set External VCC connection JP2 3 4 Connect A71 to 3 3V regulator on MiniPCB JP3 Set Connect I C SDA pull up resistor JP4 Set Connect I C SCL pull up resistor 1 2 Use I C address 0x92 0x93 JP5 2 3 Default Use I C address 0x90 0x91 JP6 1 2 Activate I C interface Not set Default A71 operates JP7 Set A71 IC reset The board schematic and layo...

Page 8: ...etis The section details the Freedom development platforms for Kinetis supported by the A71CL product support package 4 2 1 FRDM K64F The Kinetis FRDM K64F 6 development platform is a simple yet sophisticated design featuring a Kinetis K64 series microcontroller built on the ARM Cortex M4 core The FRDM K64F can be used to evaluate the K64 K63 and K24 Kinetis K series devices It features the MK64FN...

Page 9: ... legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 9 31 module add on RF module Ethernet and OpenSDAv2 the NXP open source hardware embedded serial and debug adapter running an open source bootloader Figure 6 FRDM K64F Freedom development platform for Kinetis K64 K63 and K24 MCUs ...

Page 10: ...nting the different boards together First plug the A71 Mini PCB board to the I2C plug of the Arduino interface board Figure 7 A71 Arduino kit mounted on Kinetis FRDM K64F board Second plug the A71CL into the Kinetis board using the Arduino adaptors The Arduino shield board comes with male connectors below and female connectors on top Figure 8 Arduino interface board connected to the Kinetis board ...

Page 11: ... observed there are two USB connectors in the Kinetis boards FRDM K64F See Figure 10 The USB connector highlighted in red corresponds to OpenSDA debug port This port will be used by the development PC to flash and debug the A71 examples over an on board debugger into the Kinetis MCU as well as to have a serial console The USB connector highlighted in yellow is directly connected to the K64F MCU an...

Page 12: ...e and unlimited code size development environment for NXP MCUs based on Cortex M cores LPC Kinetis and i MX RT The IDE combines the best of the widely popular LPCXpresso and Kinetis Design Studio IDEs providing a common platform for all NXP Cortex M microcontrollers MCUXpresso IDE is a free toolchain providing developers with no restrictions on code or debug sizes It provides an intuitive and powe...

Page 13: ... COMPANY PUBLIC 353410 13 31 Figure 11 MCUXpresso install wizard 6 2 Kinetis SDK package To generate and download your customized SDK for your Kinetis FRDM board you can enter the MCUXpesso SDKBuilder website 5 with the button Select Development Board and follow these steps 1 Select your Kinetis FRDM board and click on Build MCUXpresso SDK in this case the selected board is the FRDM K64F See Figur...

Page 14: ...be imported in MCUXpresso IDE To import the SDK into MCUXpresso IDE drag and drop the SDK file inside the red square Installed SDKs and then click OK to confirm the operation See Figure 14 Figure 14 Installing the downloaded Kinetis SDK into MCUXpresso 6 3 Installing the A71CL example project After downloading the A71CL host library A71CL_HOST_SW 1 follow these steps for installation 1 Double clic...

Page 15: ...ded in this document is subject to legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 15 31 Figure 15 A71CL Hostlibrary License 1 Choose destination folder and click next Figure 16 Select install folder 1 Choose start menu folder and click Install ...

Page 16: ...NY PUBLIC 353410 16 31 Figure 17 Select start menu entry 1 Click Close After Installation Complete Figure 18 Installation finished 6 4 Importing the example projects in MCUXpresso IDE There are generally two possible ways to import the A71 project examples in MCUXpresso IDE depending if we are using the MCUXpresso project files bundled with the A71CL Host Software package or if the installed SDK p...

Page 17: ...tware package can be used The A71CL Host Software Package can be downloaded from A71CL_HOST_SW A71CH_HOST_SW 1 After unpacking the package the example project files are in the subfolder mcux_projects_frdmk64f in the case of the FRDM K64F board It contains one example project frdmk64f_id2_client_sdk demonstrate the connection of the id2_client_sdk as available on Github https github com alibaba id2...

Page 18: ...to have the same project imported multiple times independently you need to unpack it into distinct directories and import these individually as the code needs to get referenced instead of copied Figure 21 Project directory to import 6 5 Terminal setup A terminal application must be executed from the development PC to interact with the Kinetis board Any terminal supporting a serial port interface c...

Page 19: ...SB connection between a host and an embedded target processor If this section is not followed carefully it is possible the examples will not be executed To configure OpenSDA into the Kinetis FRDM board an OpenSDA bootloader bin file should be downloaded from OpenSDA website 4 Scroll down the page to section Compatible Evaluation Boards and search for the target Kinetis FRDM board In this case Figu...

Page 20: ... bootloader mode After connecting the USB cable to the Kinetis board the green led located inside the yellow square will start blinking and the development PC will show a new drive called BOOTLOADER The drive may disappear again after 30 seconds in case there is no interaction in this case disconnect and connect again with pressing the Reset button Drag the downloaded firmware directly into the dr...

Page 21: ... programmed so that it executes the example application The execution output can be seen either in the MCUXpresso IDE console or by using Tera Term Both cases are explained step by step in this section 7 1 1 Printing the output with MCUXpresso IDE Assuming that the SDK has already been installed and the project examples have been imported as explained in section 6 3 open MCUXpresso IDE and take th...

Page 22: ...switched to be seen by using Tera Term For this the SDK Debug Console should be configured to be in UART Console mode Figure 28 illustrates the process simply click on Quick Settings SDK Debug Console and finally choose UART Console Figure 28 SDK Debug Console in UART Console mode This Quick Setting takes automatic care to set the pre processor define SDK_DEBUGCONSOLE to 1 to activate the UART con...

Page 23: ...note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 23 31 Figure 29 Build and Debug options On Tera Term the first thing that should be configured is a new connection see Figure 30 The user should choose a Serial connection and a port This port can be checked in the Window s device manager under Ports COM LPT menu Figure 30 Tera Term new connection Then the selected port should be set as shown in ...

Page 24: ...ject to legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 24 31 Figure 31 Serial port setup The terminal window should be configured as shown in Figure 32 Figure 32 Terminal setup When the MCU now executes the example the log output will be shown in Tera Term See Figure 33 ...

Page 25: ...rved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 25 31 Figure 33 Generated output printed in Tera Term 7 2 Sample Execution Log As the secure element is individually pre provisoned with an Alibaba key which the testsuite does not know it can not run all test steps The last step which tries decrypting the SE response will fail as the testsuite assumes only a default key ...

Page 26: ...t is subject to legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 26 31 Figure 34 Begin and end of ID2 testsuite execution log The id2_client_decrypt error on the end of the testsuite is expected as the testsuite cannot know the secret key inside the secure element ...

Page 27: ... 3 MCUXPRESSO_IDE MCUXpresso IDE https www nxp com support developer resources software development tools mcuxpresso software and tools mcuxpresso integrated development environment ide MCUXpresso IDE 4 OPENSDA_FIRMWARE OpenSDA OpenSDA V2 website https www segger com products debug probes j link models other j links opensda sda v2 5 SDKBUILDER MCUXPresso SBKBuilder website https mcuxpresso nxp com...

Page 28: ...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 weakness or default in the customer s applications or products or the application or use by customer s third party customer s Customer is responsible for doing all necessary testing for the c...

Page 29: ...I and Kinetis AN11803 All information provided in this document is subject to legal disclaimers NXP B V 2018 All rights reserved Application note Rev 1 0 11 December 2018 COMPANY PUBLIC 353410 29 31 Tables Tab 1 Needed Boards 6 Tab 2 Default MiniPCB Jumper settings 7 ...

Page 30: ...1 Fig 11 MCUXpresso install wizard 13 Fig 12 Kinetis board selection 13 Fig 13 Kinetis SDK configuration 14 Fig 14 Installing the downloaded Kinetis SDK into MCUXpresso 14 Fig 15 A71CL Hostlibrary License 15 Fig 16 Select install folder 15 Fig 17 Select start menu entry 16 Fig 18 Installation finished 16 Fig 19 Import project from file system 17 Fig 20 Project directory to import 18 Fig 21 Project...

Page 31: ... overview 6 4 1 A71CL Arduino compatible development kit A71CLARD 6 4 1 1 A71 Mini PCB board 6 4 1 2 Arduino interface board 8 4 2 Freedom development platforms for Kinetis 8 4 2 1 FRDM K64F 8 5 Hardware setup 10 6 Software setup 12 6 1 MCUXpresso IDE installation 12 6 2 Kinetis SDK package 13 6 3 Installing the A71CL example project 14 6 4 Importing the example projects in MCUXpresso IDE 16 6 4 1...

Reviews: