Freescale Semiconductor
USER GUIDE
Document Number: RDKL25AGMP01UG
Rev. 1.0, 9/2015
Reference Design KL25-AGMP01
User Guide
10-Axis Data Logger Tool Kit
1
2
3
4
Contents
Getting Started ............................................................................................................................... 2
1.1 Kit Contents .............................................................................................................................. 2
1.2 System Requirements............................................................................................................... 2
1.3 Software Requirements ............................................................................................................ 2
Getting to Know the Hardware ...................................................................................................... 3
2.1 Reference Design Overview ..................................................................................................... 3
2.2 Board Features ......................................................................................................................... 3
2.3 Board Description ..................................................................................................................... 3
Setting Up the Hardware, Software and Graphical User Interface .............................................. 4
3.1 Connecting the Hardware ......................................................................................................... 4
3.2 Installing OpenSDA Drivers on the PC...................................................................................... 4
3.3 Installing the Generic Data Logger for Sensor Data Analytics Software .................................... 5
3.4 Programming the RD-KL25-AGMP01 Board ............................................................................. 6
Using the Generic Data Logger for Sensor Data Analytics (Generic Data Logger) ................... 7
4.1 Starting the Generic Data Logger ............................................................................................. 7
4.2 Understanding the Generic Data Logger User Interface............................................................ 7
4.3 Output from the Generic Data Logger Application ................................................................... 11
Output File Naming Convention........................................................................................................ 11
Output file contents ........................................................................................................................... 12
Data Logger Area.................................................................................................................................8
Sensor Boards Area.............................................................................................................................9
Output and Control Area ................................................................................................................... 10
5
6
7
Applicable Parts ........................................................................................................................... 19
References ................................................................................................................................... 19
Revision History........................................................................................................................... 19
© 2015 Freescale Semiconductor, Inc.
Getting Started
1 Getting Started
This user guide describes the operation of the Freescale RD-KL25-AGMP01 reference design board.
This kit provides hardware and software needed for data collection for up to 10 degrees of freedom
using various Freescale sensors. The Data Logger software provides a simple platform to collect, log,
and tag the data with user-specified metadata. For more information, refer to
freescale.com/RDKL25AGMP01.
1.1 Kit Contents
The RD-KL25-AGMP01 contents include:
•
•
•
•
Reference design board
Lithium-ion battery (< 2 Watt hour)
USB cable
Quick Reference Card
1.2 System Requirements
Windows PC
•
Windows
®
XP, Windows 7 or Windows 8
•
USB port
1.3 Software Requirements
Software Component
Freescale’s Generic Data Logger for Sensor Data
Analytics software
RD-KL25-AGMP01 firmware image
Function/Purpose
Primary data collection application and GUI for the
reference design board setup and use
Software for Kinetis KL25Z microcontroller and accessing
the sensors on the board allowing communication with the
host system
Provides driver support for .bin file format for data
collection
Provides support for new software development by the
user but does not support data collection
Provides a virtual serial port and a convenient method to
load applications into the Kinetis KL25Z microcontroller
mbed OpenSDAv2 driver
mbed OpenSDAv1 driver
OpenSDA interface
2
Reference Design KL25-AGMP01 User Guide, Rev. 1.0, 9/2015
Freescale Semiconductor, Inc.
Getting to Know the Hardware
2 Getting to Know the Hardware
2.1 Reference Design Overview
Figure 1. Block diagram for RD-KL25-AGMP01
2.2 Board Features
The RD-KL25-AGMP01 is configured with the following features.
•
•
•
•
Small form factor of 1.2 in x 1.5 in
Up to 10 degrees of freedom for sensor calculations
Data collection via USB
Data collection with microSD
™
with the proper firmware enablement
2.3 Board Description
The RD-KL25-AGMP01 reference design board incorporates the following Freescale devices:
•
•
•
•
•
FXOS8700CQ 6-axis e-compass
FXAS21002C 3-axis digital angular rate gyroscope
MPL3115A2 Precision altimeter and temperature sensor
Kinetis KL25Z and Kinetis K20 microcontrollers
MC32BC3770CS Li-ion battery charger
Figure 2
identifies the major components of the RD-KL25-AGMP01 reference design. For more
information, visit
freescale.com/RDKL25AGMP01.
Reference Design KL25-AGMP01 User Guide, Rev. 1.0, 9/2015
Freescale Semiconductor, Inc.
3
Setting Up the Hardware, Software and Graphical User Interface
Figure 2. RD-KL25-AGMP01 board components
3 Setting Up the Hardware, Software and Graphical User
Interface
To configure this reference design board and PC for use, you must:
1.
2.
3.
4.
Connect the hardware
Install mbed drivers on the PC
Install the Generic Data Logger for Sensor Data Analytics software
Program the board to ensure the latest firmware is installed (see section 3.4).
3.1 Connecting the Hardware
Connect the reference design board to the PC using the provided USB cable.
The RD-KL25Z-AGMP01 kit includes a battery, which is not required when the board is connected by
USB cable. The battery can be used when USB power is not available and the data is stored onto a
microSD card.
3.2 Installing OpenSDA Drivers on the PC
RD-KL25-AGMP01 comes preprogrammed with mbed OpenSDAv2, which supports .bin file format for
data collection.
4
Reference Design KL25-AGMP01 User Guide, Rev. 1.0, 9/2015
Freescale Semiconductor, Inc.
Setting Up the Hardware, Software and Graphical User Interface
NOTE:
For customer software development using Code Warrior, OpenSDAv1 is necessary, which
supports the .srec file format. For compatibility, see
Table 1.
Table 1. OpenSDA version information
Version
Bootloader
Default
Debugging
Interface
P&E Micro
CMSIS-DAP
CMSIS-DAP
Flash
Programming
.sda/.s19/.srec
.bin
.bin
Virtual
Serial Port
Yes
Yes
Yes
Notes
OpenSDAv1
OpenSDAv2
OpenSDAv2.1
Proprietary
ARM
®
/mbed™
ARM/mbed
Used for new software
development
Used for data collection
Used for data collection
OpenSDA is an open standard, serial and debug adapter that bridges serial and debug
communications between a USB host and an embedded target processor. OpenSDA software includes
a flash-resident, USB mass-storage device (MSD) bootloader and a collection of OpenSDA
applications. The RD-KL25-AGMP01 includes a MSD flash programmer OpenSDA preinstalled
application. For more information, refer to
freescale.com/OpenSDA.
Open SDA provides a virtual serial port and a convenient way to load applications into the KL25Z
microcontroller. The MSD flash programmer emulates a FAT16 file system appearing as a removable
drive with a volume label of MBED. Raw .bin or .srec files that are copied to the drive are loaded
directly into the flash of the KL25Z microprocessor and executed automatically.
To install mbed drivers for this board, complete the instructions found at
developer.mbed.org/handbook/Windows-serial-configuration.
NOTE:
After installing the mbed drivers, the user should reboot their machine to make the drivers
effective.
3.3 Installing the Generic Data Logger for Sensor Data Analytics
Software
The software is provided as a prebuilt executable image file.
1. Go to
freescale.com/RDKL25AGMP01,
then click on the
Software and Tools
tab, and then locate
and download the
Generic Data Logger for Sensor Data Analytics
software bundle.
2. Read the Freescale software license agreement and then click
I Accept.
3. Extract the downloaded
KL25-AMP01-GEN-DATA-LOG.zip
file to a location of your choosing.
The Generic Data Logger for Sensor Data Analytics software is an executable file named
DataLogger.exe.
The
DataLogger.exe
is located in the Release folder. See
Figure 3.
Reference Design KL25-AGMP01 User Guide, Rev. 1.0, 9/2015
Freescale Semiconductor, Inc.
5