NXP

freescale Kinetis

TWR-K21F120M Quick Start Guide

Low-Power 32-bit ARM® Cortex®-M4 Core-Based MCUs with Floating Point Unit, USB Connectivity and Enhanced Security

Tower System Development Board Platform

Image of the TWR-K21F120M development board, showing its main components and connectors. The NXP logo is displayed in orange and yellow at the top left. To its right, the Freescale Kinetis logo is shown. The main title 'TWR-K21F120M Quick Start Guide' is prominent, followed by a subtitle describing the MCU's capabilities: 'Low-Power 32-bit ARM® Cortex®-M4 Core-Based MCUs with Floating Point Unit, USB Connectivity and Enhanced Security'. Below this, 'Tower System Development Board Platform' is presented. A diagonal orange shape covers the bottom right, overlaying a detailed image of the TWR-K21F120M development board, showing numerous electronic components, connectors, and silkscreen labels.

Get to Know the TWR-K21F120M Board

A detailed diagram of the front side of the TWR-K21F120M board is presented, with various components and connectors labeled. Key labels include: K21 Cortex Debug, VBAT Options, JM60 BDM, JM60 Bootloader Selection, Power/OSJTAG Micro-USB, Regulator Option Selector, RESET, K21 USB Micro OTG, General-Purpose TWRPI Plug-In, Potentiometer, LEDs, Accelerometer, SW3, SW2, Tamper Pins, and USB Option Selector. On the right side of the diagram, the Battery Receptacle and SD Card Receptacle are also indicated.

TWR-K21F120M Freescale Tower System Development Board Platform

The TWR-K21F120M board is designed to work either in standalone mode or as part of the Freescale Tower System, a modular development board platform that enables rapid prototyping and tool re-use through reconfigurable hardware. Begin constructing your Tower System evaluation board platform today by visiting freescale.com/Tower for additional Tower System boards and compatible peripherals.

Features

Step-by-Step Installation Instructions

In this Quick Start Guide, you will learn how to set up the TWR-K21F120M board and run the included demonstration software. For more detailed information, review the user manual at freescale.com/TWR-K21F120M.

  1. Download Software and Tools

    Download installation software and documentation under "Jump Start Your Design" at freescale.com/TWR-K21F120M.

  2. Install the Software and Tools

    Install the P&E Micro Kinetis Tower toolkit. The toolkit includes the OSJTAG and USB to serial drivers.

  3. Configure the Hardware

    Install the included battery into the battery receptacle to power the RTC. Then use the provided USB cable to connect the PC to the Power/OSJTAG USB Micro-B connector (J2). Allow the PC to automatically configure the USB drivers if needed.

  4. Tilt the Board

    Tilt the board side to side to see the LEDs on D5, D6, D8 and D9 light up as it is tilted. While the board is held flat, press SW2 and SW3 to toggle LEDs D5 and D9, respectively.

  5. Download the Freescale CodeWarrior IDE and MQX™ RTOS

    Download the Freescale CodeWarrior IDE and MQX RTOS by clicking the relevant links at freescale.com/CodeWarrior and freescale.com/MQX.

F120M Jumper Options

The following is a list of all jumper options on the TWR-K21F120M. The default installed jumper settings are indicated in the shaded boxes.

JumperOptionSettingDescription
J6JTAG Board Power SelectionONConnect OSJTAG 5 V output (P5V_TRG_USB) to JTAG port (supports powering board from JTAG pod supporting 5 V supply output)
OFFDisconnect OSJTAG 5 V output (P5V_TRG_USB) from JTAG port
J7VBAT Power Source1-2Connect VBAT to onboard 3.3 V or 1.8 V supply
2-3Connect VBAT to the higher voltage between MCU supply (MCU_ PWR) or coin cell supply (VBATD)
J8MCU Power Connection1-2Connect onboard 3.3 V or 1.8 V supply (V_BRD) to MCU VDD
2-3Connect K21 USB regulator output to MCU VDD
J9OSJTAG Bootloader SelectionONOSJTAG bootloader mode (OSJTAG firmware reprogramming)
OFFDebugger mode
J10General-Purpose TWRPIONConnect onboard 1.8 V or 3.3 V supply (V_BRD) to TWRPI 3 V power (GPT_VBRD)
OFFDisconnect from-board 1.8 V or 3.3 V supply (V_BRD) to TWRPI 3 V power (GPT_VBRD)
J11V_BRD Power Enable1-2OSJTAG 5 V output (P5V_TRG_USB) connected to onboard regulator input (VREG_IN)
5-6VBUS signal on micro-USB connector J19 connects to K21_VREGIN to allow standalone USB operation
6-8VBUS signal from Tower elevator connector connects to K21_VREGIN to allow USB operation with complete Tower System
J12Potentiometer ConnectionONConnect potentiometer to ADC0_SE12
OFFDisconnect potentiometer from ADC0_SE12
J13GPIO RESET_OUT_B connection1-2Connect PTA14 to RESET_OUT_B signal
2-3Connect PTA17 to RESET_OUT_B signal
OFFLeave RESET_OUT_B signal disconnected
J15LED Connections1-2Connect PTD4 to green LED (D5)
3-4Connect PTD5 to yellow LED (D6)
5-6Connect PTD6 to red LED (D8)
7-8Connect PTD7 to blue LED (D9)
OFFDisconnect PTD[4:7] from associated LED
J16SDHC CardOFF10K pulldown resistor is disconnected from CD/DATA3 line
ON10K pulldown resistor is connected to CD/DATA3 line to allow card detection
J17V_BRD Power Source (Board Power Selector)1-2Connect K21 USB regulator output (VOUT_3V3) to onboard supply (V_BRD)
3-5Connect 3.3 V onboard regulator output (P3V3) to onboard supply (V_BRD)
5-7Connect 1.8 V onboard regulator output (P1V8) to onboard supply (V_BRD)
J18Accelerometer IRQ Connection1-2Connect PTB0 to INT1 pin of accelerometer
3-4Connect PTB1to INT2 pin of accelerometer
OFFDisconnect PTB0 and/or PTB1 from INT1 and/or INT2 of accelerometer
J21USB ID ConnectionONConnect PTD7 to USB ID pin
OFFDisconnect PTD7 from USB ID pin
J22USB Power EnableONConnect PTC9 to USB power enable on power switch MIC2026
OFFDisconnect PTC9 from USB power enable on power switch MIC2026
J23USB OverCurrent FlagONConnect PTC8 to overcurrent flag on power switch MIC2026
OFFDisconnect PTC8 from overcurrent flag on power switch MIC2026
J24USB Connection1-2USB micro J19
2-3USB mini J14 on TWR-SER
JP1Tamper Connections2-3JP1-1 through JP1-6 are connected to the MCU Tamper pins TAMPER0 through TAMPER5, respectively

Get Started

Download installation software and documentation under "Jump Start Your Design" at freescale.com/TWR-K21F120M.

Visit freescale.com/TWR-K21F120M, freescale.com/K20 or freescale.com/Kinetis for more information on the TWR-K21F board.

Support

Visit freescale.com/support for a list of phone numbers within your region.

Warranty

Visit freescale.com/warranty for complete warranty information.

For more information, visit freescale.com/Tower

Join the online Tower community at towergeeks.org

PDF preview unavailable. Download the PDF instead.

TWRK21F120MQSG Adobe PDF Library 10.0.1

Related Documents

PreviewTWR-MPC5125 Quick Start Guide - NXP
A quick start guide for setting up and running the TWR-MPC5125 module, a single board computer within the Freescale Tower System, designed for high-resolution display applications.
PreviewNXP S32K148-T-BOX Telematics Box Reference Design Board Overview
This document provides an overview of the NXP S32K148-T-BOX Telematics Box Reference Design Board, detailing its main features, hardware components, software architecture, and compatibility. It is based on the S32K148 MCU and designed for automotive applications.
PreviewNXP i.MX RT1170 Crossover MCU Family Fact Sheet
Fact sheet detailing the NXP i.MX RT1170 Crossover MCU family, highlighting its high performance, real-time capabilities, low power consumption, and integration features for applications like edge computing, industrial control, and IoT.
PreviewNXP MIMXRT1170 EVK Board Hardware User's Guide
Comprehensive hardware user's guide for the NXP MIMXRT1170 Evaluation Kit (EVK), detailing its specifications, features, power management, connectivity, and PCB information for embedded system development.
PreviewNXP MCSXTE2BK142 Motor Control Development Board Quick Start Guide
Get started with the NXP MCSXTE2BK142 Motor Control Development Board. This guide covers hardware overview, features, step-by-step setup, and I/O pin allocation for S32K142-based automotive motor control applications.
PreviewFRDM-RW612 Board User Manual
This user manual provides a comprehensive guide to the NXP FRDM-RW612 board, a low-cost design and evaluation board based on the RW612 MCU. It details the board's overview, functional description, power supplies, clocks, interfaces (USB, Ethernet, I2C, SPI), memory, headers, RF front-end, MCU-Link debug probe, and operating conditions. The manual also includes information on supported debug scenarios, MCU-Link host driver installation, firmware updates, and related documentation.
PreviewNXP AN14716: Migration Guide from i.MX RT1170A to i.MX RT1170B
This application note provides a comprehensive migration guide for users transitioning from the i.MX RT1170A to the i.MX RT1170B. It details silicon changes, datasheet updates, reference manual modifications, errata corrections, SDK changes, and tool updates necessary for a smooth migration. Key differences in part numbers, electrical specifications, and timing parameters are highlighted to assist engineers in adapting their projects.
PreviewMCUXpresso IDE User Guide - NXP Semiconductors
A comprehensive user guide for the MCUXpresso Integrated Development Environment (IDE) from NXP Semiconductors. This guide covers features, setup, debugging, and project creation for NXP's ARM-based microcontrollers.