
A71CL Quick start guide for A71CLARD-BAI and Kinetis
Rev. 1.0 — 14 December 2018
515910
Application note
COMPANY PUBLIC
Security IC, A71CL, A71CLARD-BAI, FRDM-K64F
This document helps getting st arted with A71CLARD-BAI and the FRDM-
K64F development platforms for K64 MCUs.

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
For more information, please visit:

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
Introduction
This document explains how to get started with the A 71CLARD-BAI development kit and
the FRDM-K64F development platforms for K64 MCUs. This guide provides an o verview
of the hardware used, followed by detailed instructi ons for setting up the software
development environment. Finally, it describes how to run an MCU example doing crypto
on the secure element using FRDM-K64F acting as the platform host MCU.
A71CL Overview
The A71CL-BAI is a ready-to-use solution, enabling ease-of-use security for IoT device
makers to connect to Baidu Cloud. It is a secure element capable of securely storing and
provisioning credentials and is already pre-provisioned with Baidu credentials. It is based
on A71 secure element hardware which runs an application which manages the
credentials.
The A71CL-BAI solution provides basic security measures protecting the IC against
many physical and logical attacks. It can be integrat ed with various host platforms and
operating systems to secure a broad range of applications.
System description
The A71CL evaluation setup presented in this document consists of an A71CL security
IC connected to the FRDM-K64F development pl at form through the A71CLARD-BAI
Arduino compatible kit.
Fig 1. System architecture diagram
This getting-started guide is divided in three parts:
• Hardware overview and setup: It describes the FRDM-K64F dev elopment platform
and the A71CL Arduino compatible kit (A71CLARD-BAI) as well as how to mount
them together.
• Software setup: It describes how to configure the devel opm ent environment and
how to import the required software packages.
• A71CL application examples execution: It describes ho w to run the A71CL
application examples contained in the A71CL-Baidu Host software package.
aaa-032573
development PC
kinetis board
HOST MCU
A71CLARD-ALI
I2C
ARDUINO
INTERFACE
BOARD
A71CL-
ALI
USB
I2C

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
Note: From now on, the term ‘Kinetis board’ will be used in this guide to avoid
redundancy and to improve readability. ‘Kinetis boa rd’ refers to the FRDM-K64F.
Hardware overview
This setup uses a Kinetis board as a host MCU while the A71CL security IC acts as t h e
secure element. The following two boards are needed:
Table 1. Needed Boards
9353 763 89598
(only available
through NXP
sales contact)
MiniPCB containing a A71CL
secure element IC preprovisioned for Baidu Cloud:
A7101CLTK2/T0BC27F,
12NC: 9353 725 76118
4.1 A71CL Arduino compatible development kit (A71CLARD)
The A71CLARD is an Arduino development kit cont ai ning t wo 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 LP C, K i netis 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 jumpers for
the I
2
C host interface selection.
Fig 2 shows an image of the MiniPCB. It features two connectors that can be used
depending on the communication interface employed. The figure shows the jumpers
configuration that enables the use of the A71 I
2
C interface.

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
To enable the I2C communication protocol, it is necessary to configure JP5/6 according
to Table 2
. JP2 connects the A71 to the on-board 3.3V voltage regulator on the MiniPCB
board. The jumpers JP3 and JP4 enable the I²C SDA/ S CL pul l-up resistors. JP7 can be
used to connect the A71 reset signal.
Table 2. Default MiniPCB Jumper settings
Connect A71 to 3.3V regulator on MiniPCB
Connect I²C SDA pull-up resistor
Connect I²C SCL pull-up resistor
Use I²C address 0x92/0x93
Use I²C address 0x90/0x91
The board schematic and layout are shown in Fig 3 and Fig 4.

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
Fig 3. A71 Mini PCB board schematic
aaa-032574
VSS
C2
100 nF
GND
GND
GND
GND
GND
C7
n.c.
100 nF
GND
IC2
nc/A7101 HVSON8_SOT909-1
VCC
VCC
n.c.
nRSTSDA
SCL
IF1
IF0
2
7
4
6
3
5
1
8
VSS
C1
100 nF
R5
100 kΩ
GND GND
IC1
A7101
SO8_SOT96-1
VCC
VCC
VCC
n.c.
nRSTSDA
SCL
IF1
IF0
5
4
2
3
IF0
P2
Molex
38-00-1336
IF1
GND
SCL
1
2
3
4
SDA
5
VCC +5 V
6
SCL
P1
Molex
38-00
-1334
VCC +5 V
GND
SDA
1
2
3
4
1
8
6
7
VSS
C4
100 nF
GND
IC4
JP2
VCC selec t
VCC
VCC_ext
nc/A7101 WLCSP
VCC
VCC
n.c.
nRSTSDA
SCL
IF1
IF0
A2
B2
A1
n.c.
B1
n.c.
C1
n.c.
B3
C3
C4
TP
C2
B4
A3
A4
IC3
TDA3663
31
2 4
VP REG+5
V
+3.3 V
C
5
10
µF
GND
GND
GNDGND
C3
100 nF
JS5
VCC
JP5
CLK
GND
C6
10 µF
JS2
5
3
GND
JP1
VCC ext .
GND
JS6
JP6
nSS
JS4
JP4
JS3
JP3
R1
3.3 kΩR23.3 kΩR31.0 kΩ
R4
1.0 kΩ
JS7
JP7
1
6
4
2
JS1

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
Fig 4. A71 Mini PCB board silkscreen with def ault jumper positions marked black
4.1.2 Arduino interface board
The Arduino header board permits the user to inte rf ace the A71 Mini PCB with the
Kinetis board. Fig 5
shows the board pinout.
(1) Connection from the perspective of a matching Arduino Shield (top view)
Fig 5. A71 Arduino header
4.2 Freedom development platforms for Kinetis
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 [FRDM_K64F] [6] development platform i s 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 K 24
Kinetis K series devices. It features the MK64FN1M 0VLL12 MCU, which boasts the

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
maximum operation frequency of 120 MHz, 1 MB of flash, 256 KB RAM, a full-speed
USB controller, Ethernet controller, secure digi tal host controller, and analog and digital
peripherals.
The FRDM-K64F hardware is form-factor compatibl e with the Arduino R3 pin layout,
providing a broad range of expansion board options. The onboard interface includes a
six-axis digital accelerometer & magnetometer, RGB LED, SDHC, add-on Bluetooth
module, add-on RF module, Ethernet and OpenSDAv2, the NXP open-source hardware
embedded serial and debug adapter running an open-source bootloader.
Fig 6. FRDM-K64F Freedo m development platform for Kinet is K64, K63 and K24 MCUs
Hardware setup
The hardware setup consists of mounting the different boards together.
First, plug the A71 Mini PCB board to the I2C plug of the Arduino interface board.
Fig 7. A71 Mini PCB board mounting on the I2C adaptor of the Arduino interface board
Second, plug the A71CL into the Kinetis board using t he Arduino adaptors. The Arduino
shield board comes with male connectors below and f em al e connectors on top.

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
Fig 8. A71 Arduino kit mounted on Kinetis FRDM-K64F board
Then, the A71 security IC is connected to the Kinetis board through the Arduino i nt erf ace
board. See Fig 9
.
Fig 9. Arduino interface board connected to the Kinetis board (FRDM-K64F)
As can be observed, there are two USB connectors in the Ki netis boards FRDM-K64F.
See Fig 10
. The USB connector highlighted in red corresponds to OpenSDA debug port.
This port will be used by the development PC to flash and deb ug the A71 examples over
an on-board debugger into the Kinetis MCU as well as to have a serial console. The USB

A71CL Quick start guide for A7 1 CLARD-BAI and Kinetis
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 14 December 2018
515910
connector highlighted in yellow is directly connected to the K64F MCU and functionality
depends on the example programmed into the MCU.
Fig 10. Red USB indicates OpenSDA debug port. Yellow USB indicates K64F port
(FRDM-K64F)
Software setup
This section details the required steps to complete t he sof t ware setup for A71 security IC
and FRDM-K64F Freedom development platforms. The f ol lowing items are needed:
• MCUxpresso IDE, see section 6.1
. Here we use version 10.2.
• Kinetis SDK for MCUxpresso, see section 6.2. Here we use version 2.4.
• Hostlibrary code examples installation and importing, see sections 6.3 and 6.4.
• Serial terminal application, see section 6.5.
• OpenSDA debugger firmware update on Kinetis board, see section 6.6.
6.1 MCUXpresso IDE installation
MCUXpresso IDE is a fully featured software development environment for NXP’s ARMbased MCUs, and includes all the tools necessary to develop high-quality embedded
software applications in a timely and cost-effecti ve fashion.
MCUXpresso IDE is based on the Eclipse IDE and includes the industry standard ARM
GNU toolchain. It brings developers an easy-to-use an d unl im i ted 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 LPCXpr esso and Kinetis Design Studio
IDEs, providing a common platform for all NXP Corte x-M microcontrollers.
MCUXpresso IDE is a free toolchain prov i di ng developers with no restrictions on code or
debug sizes. It provides an intuitive and powerful int erface with profiling, power
measurement on supported boards, GNU tool integration and library, multicore capable
debugger, trace functionality and more. MCUXpresso IDE debug connections support
Freedom, Tower, EVK, LPCXpresso and custom development boards with industry