FRDM-K22F

The FRDM-K22F is an ultra-low-cost development platform for Kinetis K Series K2x (K22F) MCUs built on ARM® Cortex™-M4 processor. Features include easy access to MCU I/O, battery-ready, low-power operation, a standard-based form factor with expansion board options and a built-in debug interface for flash programming and run-control. The FRDM-K22F is supported by a range of NXP and third-party development software.

Overview

The FRDM-K22F is an ultra-low-cost development platform for the latest Kinetis K22 MCUs. The FRDM-K22F hardware is form-factor compatible with the Arduino™ R3 pin layout, providing a broad range of expansion board options.

/media/uploads/GregC/frdm-k22f_headers.png

The FRDM-K22F is feature packed with a lot of peripherals to enable rapid prototyping, including a six-axis digital accelerometer and magnetometer to create full eCompass capabilities, a tri-colored LED, two user push-buttons for direct interaction and feedback, and connectivity options using onboard Ethernet port and headers for use with Bluetooth and 2.4 GHz radio add-on modules. The FRDM-K22F platform features OpenSDAv2, the NXP open source hardware embedded serial and debug adapter running an open source bootloader. This circuit offers several options for serial communication, flash programming, and run-control debugging. The FRDM-K22F is supported by a range of NXP and third-party development software.

/media/uploads/GregC/frdm-k22f_peripherals.png

The FRDM-K22F is fully supported in the mbed platform, so it gets access to the tools and SDK that provides experienced embedded developers with powerful and productive tools for building proof-of-concepts. The pinout above shows the commonly used interfaces and their locations. Note that all the numbered pins (PTXX) can also be used as DigitalIn and DigitalOut interfaces.



Features




Firmware

FirmwareUpdate

A new interface firmware image is necessary to mbed-enable NXP FRDM boards




Getting Started with mbed

1. Connect your microcontroller to a PC

Use the USB lead to connect your mbed to a PC. The status light will come on, indicating it has power. After a few seconds of activity, the PC will recognise the mbed Microcontroller as a standard USB drive.

/media/uploads/dan/winxp-disk.png/media/uploads/dan/mac-disk.png
Windows XP exampleMac OS X example

Go to the new USB Drive, and click MBED.HTM to open it in a web browser.

If you do not have an mbed account, choose "Signup", and create your mbed Account. Otherwise, log in with your normal username and password.

This will give you access to the website, tools, libraries and documentation.




PC Configuration

Your mbed Microcontroller can appear on your computer as a serial port. On Mac and Linux, this will happen by default. For Windows, you need to install a driver:

Windows

See Windows-serial-configuration for full details about setting up Windows for serial communication with your mbed Microcontroller

From a host PC to communicate with mbed you will need a terminal application. This allows the mbed Microcontroller to print to your PC screen, and for you to send characters back to your mbed.

Some terminal programs (e.g. TeraTerm) list the available serial ports by name. However, if you do need to know the identity of the serial port so that you can attach a terminal or an application to it:

WindowsMacLinux
Find the identity of the COM port by opening ''Device Manager''. To do this navigate ''Start -> Control Panel -> System -> Hardware -> Device Manager''.To find the device name under Mac OS X, use the command ''ls /dev/tty.usbmodem*''To find the device name under Linux, use the command ''ls /dev/ttyACM*''
windowsmaclinux




Downloading A program

1. Save a program binary (.bin) to the FRDM Platform

Download the appropriate "Hello World!" binary:

Note: the source code for this program will be seen in the next section.

Save the program binary file to your mbed Microcontroller Disk, just like you would with a normal USB disk. The Status LED will flash as the PC writes the file to the Microcontroller disk.

blink

2. Press the Reset Button

When the Reset Button in pressed, the newest program on the mbed Microcontroller Disk will be loaded in to the microcontroller FLASH memory. The Status LED will flash as this happens.

When the program is has been loaded onto the microcontroller, it will then start it running.

3. Hello World!

The microcontroller is now running the program; flashing LED1 forever! If you reset the microcontroller, or disconnect and reconnect the power, the program will simply restart.

4. To download a different program

It is the newest program on the mbed Microcontroller that is run after reset. We can therefore download a new program or overwrite an existing one to update the program that will run.




Hello World!

Import programmbed_blinky

The example program for mbed pin-compatible platforms




Where Next

Follow the guide to creating your own programs using the online compiler




Technical Reference

Power

Schematics

Data Sheets

Interface Firmware

 Buy Now


Please log in to start a discussion or ask a question.

Discussion topics

TopicRepliesLast post
Conflict between I2C pins on Arduino-compatible header and OpenSDA UART interface 0 09 Aug 2016 by Mac Lobdell

Questions

See more related questions