Quick Start Guide (QSG) for
- FRDM-KEAZ128
- FRDM-KEAZ64
- FRDM-KEAZN32
Ultra-Reliable MCUs for Industrial and Automotive
www.freescale.com/FRDM-KEA
TM
External Use |
0
Contents:
•
•
•
•
•
•
•
•
•
•
•
Quick Start Package
Get to Know FRDM-KEA
FRDM-KEA Features
Pinout and Jumper Settings
Out of the Box Setup using S32 Design Studio
Out of the Box Setup using KDS
Code Examples
Documentation and Enablement
SDK Drivers
Feature Comparison for KEA Family
Introduction to OpenSDA
TM
External Use |
1
Quick Start Package Overview
Name
Type
Description
Quick Start Guide
PDF
This document
Precompiled Examples
Folder
S-record images of example projects for use with the MSD Flash
SDK Evaluation Drivers
Folder
Headers and source code drivers, driver summary and testing
Additional reference documents are available on www.freescale.com/FRDM-KEAZ128
Name
Description
FRDM-KEA Quick Start Package
Quick Start Guide and supporting files for getting started with the FRDM-KEA
FRDM-KEA User’s Guide
This document— Overview and detailed information for the FRDM-KEA hardware
FRDM-KEA Pinouts
Spreadsheet of pin connections for all MCU pins. Includes pinout for the I/O headers,
Arduino™ R3 compatibility chart, and OpenSDA MCU pinout.
FRDM-KEA Schematics
PDF and Gerber schematic files for the FRDM-KEA hardware
FRDM-KEA Design Package
Zip file containing all design source files for the FRDM-KEA hardware
OpenSDA User’s Guide
Overview and instructions for use of the OpenSDA embedded debug circuit
TM
External Use |
2
Get to know the FRDM-KEAZ128
LIN Communication Bus
OpenSDA USB
CAN Communication Bus
Reset Button
OpenSDA MCU
External Power Supply (5-12V)
OpenSDA JTAG
J2 Header
System Basis Chip MCZ33903
J3 Header
J1 Header
J4 Header
S9KEAZ128 MCU
J6 Header
J5 Header
User Buttons
Potentiometer
RGB LED
TM
External Use |
3
Features of FRDM-KEA:
• Supports KEAZ128, KEAZ64 and KEAZN32 MCUs
• KEA is 5V, qualified to Automotive Grade 1 and -40 to +125 °C
• Small form factor size supports up to 6” x 4”
• Platform supports scalability up to 176 pins
• Arduino™ UNO footprint-compatible with expansion “shield”
support
• Integrated open-standard serial and debug adapter (OpenSDA)
with support for several industry-standard debug interfaces
• Easy access to the MCU I/O header pins for prototyping
• On-chip connectivity for CAN, LIN, UART/SCI and SPI
• Potentiometer for precise voltage and analog measurement
• RGB LED
• Two push-button switches (SW2 and SW3)
• Flexible power supply options
• microUSB or
• external 12V power supply
• Similar hardware across
architecture based MCUs
ARM®,
•
Freescale Freedom board
•
USB cable
•
URL to online Quick Start Guide (QSG)
•
Complimentary IDE Software
•
TM
External Use |
S12 and Power
Architecture®
Includes:
4
KDS and S32 Design Studio
Header/Pinout Mapping for FRDM-KEAZ128
FUNCTION
VIN
IOREF
RESET_
TGTMCU
P3V3
5V
GND
GND
VIN
J3
PORT
PTC0
PTC1
PTF4
PTF5
PTF6
PTF7
PTA0
PTA1
FUNCTION
ADC0
ADC1
ADC2
ADC3
ADC4
ADC5
ADC6
ADC7
J4
PORT
PTC2
PTC3
PTB3
PTA6
PTA7
PTB0
PTB1
PTB2
FUNCTION
ADC8
ADC9
ADC10
ADC11
ADC12
ADC13
ADC14
ADC15
NC
SBC_SAFE
PIN
J3-01
J3-03
PORT
J3-05
J3-07
J3-09
J3-11
J3-13
J3-15
PTA5
PIN
J4-01
J4-03
J4-05
J4-07
J4-09
J4-11
J4-13
J4-15
PIN
J5-01
J5-03
J5-05
J5-07
J5-09
J5-11
J5-13
J5-15
J5-17
J5-19
J5
PTE0
PTE1
PTE2
PTE3
PTE4
PTE5
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
PIN
J4-02
J4-04
J4-06
J4-08
J4-10
J4-12
J4-14
J4-16
PORT
PTF1
PTC4
PTC5
PTE6
PTH0
PTE7
PTH6
PTH7
PIN
J5-02
J5-04
J5-06
J5-08
J5-10
J5-12
J5-14
J5-16
J5-18
J5-20
PORT
PTF2
PTF3
PTI2
PTI3
5
FUNCTION
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
PIN
J1-15
J1-13
J1-11
J1-09
J1-07
J1-05
J1-03
J1-01
PORT
PTG7
PTG6
PTG5
PTG4
PTH1
PTF0
PTB1
PTB0
FUNCTION
D7
D6
D5
D4
D3
D2
D1
D0
J1
PIN
J1-16
J1-14
J1-12
J1-10
J1-08
J1-06
J1-04
J1-02
PORT
PTA4
PTA1
PTD7
PTD6
PTD5
PTD4
PTD3
PTD2
FUNCTION
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
PIN
J6-19
J6-17
J6-15
J6-13
J6-11
J6-09
J6-07
J6-05
J6-03
J6-01
PORT
PTC7
PTC6
PTI1
PTI0
PTF3
PTF2
PTH3
PTH4
PTD1
PTD0
FUNCTION
D14
D15
D16
D17
D18
D19
D20
D21
GPIO
GPIO
J6
PIN
J6-20
J6-18
J6-16
J6-14
J6-12
J6-10
J6-08
J6-06
J6-04
J6-02
PORT
FUNCTION
NC
NC
NC
NC
GND
VDD
GPIO
GPIO
GPIO
GPIO
FUNCTION
GPIO
GPIO
GPIO
GPIO
VDD
GND
GPIO
GPIO
GPIO
GPIO
J3-06
J3-08
J3-10
J3-12
J3-14
J3-16
External Use |
PORT
PTG3
PTG2
PTG1
PTG0
PTF0
PTH1
PTC2
PTC3
PTB4
PTB5
FUNCTION
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
FUNCTION
GPIO
GPIO
TM
PIN
J2-20
J2-18
J2-16
J2-14
J2-12
J2-10
J2-08
J2-06
J2-04
J2-02
PORT
PTA3
PTA2
PORT
PTB6*
PTB7*
PTI4
PTI5
PTI6
PTH5
J2
PTB2
PTB4
PTB3
PTB5
PTH2
PTC5
FUNCTION
D15
D14
A REF
GND
D13
D12
D11
D10
D9
D8
PIN
J2-19
J2-17
J2-15
J2-13
J2-11
J2-09
J2-07
J2-05
J2-03
J2-01
PIN
J3-02
J3-04
* For pin multiplex options
please review pinmap file
PTH2
PTE7
PTD3
PTD2
Jumper Settings for FRDM-KEAZ128
There is only one jumper: J104
It is to select Reset source:
1-2: Default
2-3: Reset signal direct to the MCU
when OpenSDA is not powered
TM
External Use |
6
Package Level Pinout Diagram – KEAZ128 (80 LQFP)
TM
External Use |
7
Package Level Pinout Diagram – KEAZ64 (64 LQFP)
TM
External Use |
8
Package Level Pinout Diagram – KEAZN32 (64 LQFP)
TM
External Use |
9
Step-by-Step Setup Instructions for S32 Design Studio IDE
In this quick start guide, you will learn
how to setup the FRDM-KEA board
with pre-loaded code example
Install Software and Tools
1
Install S32 Design Studio for ARM MCUs V1.x at
S32 Design Studio for ARM v1.0 for Windows or www.freescale.com/s32ds
Download the Software Installation Guide for S32DS which provides step by step
installation instructions
Power up FRDM-KEA Board
2
Follow step by step power and setup procedures on slides 12-14
Run the Pre-loaded Code Examples
3
Run the pre-loaded 2-in-1 code example project which utilizes the FRDM-KEA
potentiometer and the RGB LED.
Follow slides 15-16 to switch between code example #1 and #2
* To get back to Code example #1 press SW3 button
Learn More About the KEA
4
Install FreeMaster - free serial real-time GUI monitor tool
follow slides 32-46 from the Software Installation Guide
Read the release notes and documentation on www.freescale.com/KEA
TM
External Use |
10
Step-by-Step Setup Instructions for Kinetis Design Studio (KDS) IDE
In this quick start guide, you will learn
how to setup the FRDM-KEAZ128
board with pre-loaded code example
Install Software and Tools
1
Install Kinetis Design Studio Integrated Development Environment (IDE)
www.freescale.com/kds
Connect the USB Cable
2
Follow step by step power and setup procedures on slides 12-14
Using the Pre-loaded Code Example Project
3
Run the pre-loaded 2-in-1 code example project which utilizes the FRDM-KEA
potentiometer and the RGB LED.
Follow slides 15-16 to switch between code example #1 and #2
* To get back to Code example #1 press SW3 button
Learn More About the KEA
4
Install FreeMaster - free serial real-time GUI monitor tool
follow slides 32-46 from the Software Installation Guide
Read the release notes and documentation on www.freescale.com/KEA
TM
External Use |
11
Step 1: Power up the Board – FRDM-KEA Power Supplies
•
The FRDM-KEA evaluation board powers
from a USB or external 12V power supply
•
Connect the USB cable to a PC using
supplied USB cable or plug it into a socket
(12V power supply sold separately)
− External
− Only
power port is J16
use one power supply, not both
•
Connect other end of USB cable (microUSB)
to mini-B port on FRDM-KEA at J7
•
Allow the PC to automatically configure the
USB drivers if needed
•
Debug is done using OpenSDA through J7
TM
External Use |
12
J7
J16
Step 1: Power up the Board – Is it powered on correctly?
•
When powered through USB, LEDs D2 and D3 should light green
•
FRDM-KEA boards ship with a 2-in-1 demo code
example pre-installed
• When you power the board, it will default to the
Blinking LED demo
• The RGB LED D11 will blink
• If you see this initially when powered, the correct
firmware is running
TM
External Use |
13
Step 1: Power up the Board – Is it powered on correctly?
•
Switch between code example projects
using push buttons SW2 and SW3
•
The buttons are located on the edge of the
board opposite the microUSB port.
SW3
TM
External Use |
14
SW2
Step 2: Running Code Example #1 (Blinking LED Demo)
Code Example #1 allows D11 (RGB LED) to
illuminate in response to turning R13
(Potentiometer). The LED color will change as
the potentiometer position is adjusted
•
The Blinking LED Demo uses ADC and FTM
• FTM interrupts toggles the RGB LED D11 at a
frequency controlled by the value of the ADC
• ADC controls the blink period and LED selection
(red, green, or blue)
• Dialing the potentiometer R13 will cause D11 to
change frequency or color depending on the
resistance
R13
D11
TM
External Use |
15
Step 3: Running Code Example #2 (Dimming LED Demo)
Code Example #2 modulates the brightness of
LED as you turn the potentiometer
•
Press SW2
•
All three LEDs within D11 will turn on
•
This will combine to produce white light
•
The Dimming LED Demo uses RTC and ADC to
modulate LD brightness
•
RTC interrupt functions as a PWM and ADC value
determines duty-cycle. A long duty-cycle, means
LED is on for longer portion of period. Perceived by
the human eye as brighter light
•
Dial the potentiometer R13 and observe LED
change brightness
TM
External Use |
16
SDK Drivers
•
A step by step KEA SDK driver
Integration Guide in S32
Design Studio is available to
assist loading drivers and
code examples for each into a
S32DS project
TM
External Use |
17
Peripheral Drivers (SDK)
•
Continued…
−
ACMP
−
ICS_FEE
−
ADC_FIFO
−
ICS_FEI
−
ADC_Interrupt
−
WDOG
−
ADC_Polling
−
KBI
−
Bitband
−
PIT
−
BME
−
PMC
−
CRC
−
PWT
−
FLASH_FTMRE
−
RTC
−
FTM_Combine
−
SPI_MasterInt
−
FTM_DualEdge
−
SPI_MasterPoll
−
FTM_EPWM
−
SPI_Slave
−
FTM_OutputCompare
−
UART_Interrupt
−
GPIO
−
UART_Loopback
−
I2C_MasterInt
−
UART_Polling
−
I2C_MasterPoll
−
WDOG
−
I2C_Slave
Documentation and Reference Material
Documentation Links
• FRDM Factsheet
• KEA128 Sub-Family Datasheet
• KEA64 / KEAN32 Sub-Family Datasheet
• How to Install S32 Design Studio for ARM MCUs
• SDK Drivers for KEAZ128, KEAZ64 and KEAZN32
Application Notes
•
•
•
•
KEA Application Cookbook
KEA Family Appnote
DC Motor Control using PWT
Migrating from 8-bit to KEA
Reference Manuals
• KEA128 Sub-Family Reference Manual
• KEA64 /KEAN32 Sub-Family Reference Manual
TM
External Use |
18
Development Tools Ecosystem
IDE / Compilers & Debuggers
• Free S32 Design Studio IDE
• Processor Expert coming in 2016
• Free KDS IDE support w/ Processor Expert support
• CodeWarrior 10.6 IDE w/ Processor Expert support
• Keil w/ CMSIS compliant drivers
• IAR
• Cosmic IDE for Kinetis ARM based MCUs
Programmers
• OpenSDA
• P&E MultiLink
Support Tools:
• FREEMASTER run time debug monitor and
instrumentation/calibration tool
• MCAT – Motor Control Application Tool
• Automotive math and motor control library for Cortex®
M0+ based products
TM
External Use |
19
Kinetis KEA Family – Feature Set Comparison
FEATURES
MCU
Flash
RAM
EE
PROM
FREQ
MS-CAN
SCI
SPI
ATD
PWT
Flex-Tim
ACMP
IIC
GPIO
Packages
KEAZ128
128K
16K
emulate
48MHz
1
3
2
16c12b
1
6c+2c+2c
16b
2
2
Up to 71
64/80 LQFP
KEAZ64
64K
8K
emulate
48MHz
1
3
2
16c12b
1
6c+2c+2c
16b
2
2
Up to 71
64/80 LQFP
KEAZN64
64K
4K
256B
40MHz
0
3
2
16c12b
NA
6c+2c+2c
16b
2
2
Up to 57
32/64 LQFP
KEAZN32
32K
4K
256B
40MHz
0
3
2
16c12b
NA
6c+2c+2c
16b
2
2
Up to 57
32/64 LQFP
KEAZN16
16K
2K
256B
40MHz
0
3
2
16c12b
NA
6c+2c+2c
16b
2
2
Up to 57
32/64 LQFP
KEAZN8
8K
1K
emulate
48MHz
0
1
1
12c12b
1
6c+2c 16b
2
1
Up to 22
16 TSSOP/
24 QFN
Available Freescale Freedom development kit
TM
External Use |
20
Ordering Information
Hardware
Type
Part Number
Package
Pricing
Evaluation (EVB)
Freescale Freedom Board
FRDM-KEAZ128Q80
80 LQFP
$29
Evaluation (EVB)
Freescale Freedom Board
FRDM-KEAZ64Q80
64 LQFP
$29
Evaluation (EVB)
Freescale Freedom Board
FRDM-KEAZN32Q64
64 LQFP
$29
TM
External Use |
21
Introduction to OpenSDA:
1 of 2
OpenSDA is an open-standard serial and debug adapter. It 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. FRDM-KL26Z comes with the MSD Flash Programmer OpenSDA Application preinstalled.
Follow these instructions to run the OpenSDA Bootloader and update or change the installed OpenSDA Application.
Enter OpenSDA Bootloader Mode
Load an OpenSDA Application
1.
2.
3.
1.
4.
Unplug the USB cable if attached
Press and hold the Reset button (SW2)
Plug in a USB cable (not included) between a USB host
and the OpenSDA USB connector (labeled “SDA”)
Release the Reset button
A removable drive should now be visible in the host file
system with a volume label of BOOTLOADER. You are now
in OpenSDA Bootloader mode.
2.
3.
4.
IMPORTANT NOTE: Follow the “Load an OpenSDA
Application” instructions to update the MSD Flash
Programmer on your FRDM-KL26Z to the latest version. It is
likely that the version provided in this package is newer than
what was preprogrammed on your FRDM-KL26Z.
TM
External Use |
22
While in OpenSDA Bootloader mode, double-click
SDA_INFO.HTML in the BOOTLOADER drive. A web browser will
open the OpenSDA homepage containing the name and version of
the installed Application. This information can also be read as text
directly from SDA_INFO.HTML
Locate the OpenSDA Applications folder in the FRDM-KEA Quick
Start Package
Copy & paste or drag & drop the MSD Flash Programmer
Application to the BOOTLOADER drive
Unplug the USB cable and plug it in again. The new OpenSDA
Application should now be running and a FRDM-KEA drive should
be visible in the host file system
You are now running the latest version of the MSD Flash Programmer.
Use this same procedure to load other OpenSDA Applications.
Introduction to OpenSDA:
2 of 2
The MSD Flash Programmer is a composite USB application that provides a virtual serial port and an easy and convenient way to program
applications into the KEA MCU. It emulates a FAT16 file system, appearing as a removable drive in the host file system with a volume label
of FRDM-KEA. Raw binary and Motorola S-record files that are copied to the drive are programmed directly into the flash of the KEA and
executed automatically. The virtual serial port enumerates as a standard serial port device that can be opened with standard serial terminal
applications.
Using the MSD Flash Programmer
Using the Virtual Serial Port
1.
Locate the Precompiled Examples folder in the FRDMKEAZ128 Quick Start Package
Copy & paste or drag & drop one of the .srec files to the
FRDM-KEA drive
1.
The new application should now be running on the FRDM-KEA.
Starting with v1.03 of the MSD Flash Programmer, you can
program repeatedly without the need to unplug and reattach the
USB cable before reprogramming.
3.
2.
2.
4.
Determine the symbolic name assigned to the FRDM-KEAZ128 virtual
serial port. In Windows open Device Manager and look for the COM
port named “PEMicro/Freescale – CDC Serial Port”.
Open the serial terminal emulation program of your choice. Examples
for Windows include Tera Term, PuTTY, and HyperTerminal
Program one of the “code example programs” from the Code
Examples folder using the MSD Flash Programmer.
Configure the terminal program. Most embedded examples use 8 data
bits, no parity bits, and one stop bit (8-N-1). Match the baud rate to the
selected serial test application and open the port.
Press and release the Reset button (SW0) at anytime to restart the
example application. Resetting the embedded application will not
affect the connection of the virtual serial port to the terminal program.
Drag one of the .srec code examples from the KEA code example
folder onto the FRDM-KEA board over USB to reprogram the
preloaded code example to another example.
5.
NOTE: Flash programming with the MSD Flash Programmer is currently only
supported on Windows operating systems. However, the virtual serial port has
been successfully tested on Windows, Linux and Mac operating systems.
NOTE: Refer to the OpenSDA User’s Guide for a description of a known Windows
issue when disconnecting a virtual serial port while the COM port is in use.
TM
External Use |
23
TM
www.Freescale.com
© 2014 Freescale Semiconductor, Inc. | External Use
很抱歉,暂时无法提供与“FRDM-KEAZN32Q64”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+1410.49080
- 30+1304.37000