FRDM-K82F
Overview
The FRDM-K82F is a low-cost development platform for Kinetis K80, K81, and K82 MCUs.
Form-factor compatible with the Arduino R3 pin layout
Peripherals enable rapid prototyping, including a six-axis digital accelerometer and magnetometer to create full eCompass capabilities, a tri-colored LED and two user push-buttons for direct interaction, 2x32 Mb QuadSPI external flash, FlexIO camera header, touchpads and headers for use with Bluetooth and 2.4 GHz radio add-on modules
OpenSDAv2.1, the NXP open source hardware embedded serial and debug adapter running an open source bootloader, offers options for serial communication, flash programming, and run-control debugging
Hardware
MK82FN256VLL15 MCU (150 MHz, 256 KB flash memory, 256 KB RAM, low-power, crystal-less USB, and 100 Low profile Quad Flat Package (LQFP))
Dual role USB interface with micro-B USB connector
RGB LED
FXOS8700CQ accelerometer and magnetometer
Two user push buttons
2x 32 Mb QSPI flash
Flexible power supply option - OpenSDAv2.1 USB, Kinetis K82 USB, and external source
Easy access to MCU input/output through Arduino R3 compatible I/O connectors
Programmable OpenSDAv2.1 debug circuit supporting the CMSIS-DAP Interface software that provides:
Mass storage device (MSD) flash programming interface
CMSIS-DAP debug interface over a driver-less USB HID connection providing run-control debugging and compatibility with IDE tools
Virtual serial port interface
Open source CMSIS-DAP software project
FlexIO header
For more information about the K82F SoC and FRDM-K82F board:
Supported Features
The frdm_k82f
board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo
-
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
ARM Cortex-M4F CPU1 |
|
ADC |
on-chip |
Kinetis ADC161 |
|
Clock control |
on-chip |
Kinetis System Integration Module (SIM) IP node1 |
|
on-chip |
Generic fixed factor clock provider4 |
||
on-chip |
NXP Kinetis Multipurpose Clock generator (MCG) IP node1 |
||
Counter |
on-chip |
NXP Periodic Interrupt Timer (PIT)1 |
|
on-chip |
Child node for the Periodic Interrupt Timer node, intended for an individual timer channel4 |
||
DMA |
on-chip |
NXP MCUX EDMA controller1 |
|
Flash controller |
on-chip |
NXP Kinetis Flash Memory Module A (FTFA)1 |
|
GPIO & Headers |
on-chip |
Kinetis GPIO5 |
|
on-board |
GPIO pins exposed on Arduino Uno (R3) headers1 |
||
I2C |
on-chip |
||
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
on-board |
Group of PWM-controlled LEDs1 |
||
MMU / MPU |
on-chip |
NXP System Memory Protection Unit (SYSMPU)1 |
|
MTD |
on-chip |
Flash node1 |
|
on-board |
Fixed partitions of a flash (or other non-volatile storage) memory1 |
||
on-board |
Properties supporting Zephyr spi-nor flash driver (over the Zephyr SPI API) control of serial flash memories using the standard M25P80-based command set1 |
||
Pin control |
on-chip |
NXP PORT Pin Controller5 |
|
on-chip |
NXP PORT Pin Controller1 |
||
PWM |
on-chip |
NXP FlexTimer Module (FTM) PWM controller1 |
|
RNG |
on-chip |
Kinetis TRNG (True Random Number Generator)1 |
|
RTC |
on-chip |
NXP Real Time Clock (RTC)1 |
|
Sensors |
on-board |
FXOS8700 6-axis accelerometer/magnetometer sensor1 |
|
Serial controller |
on-chip |
||
SPI |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM description1 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
on-chip |
NXP FlexTimer Module (FTM)3 |
||
USB |
on-chip |
NPX Kinetis USBFSOTG Controller in device mode1 |
|
Watchdog |
on-chip |
Kinetis watchdog1 |
Note
For additional features not yet supported, please also refer to the FRDM-K64F, which is the superset board in NXP’s Kinetis K series. NXP prioritizes enabling the superset board with NXP’s Full Platform Support for Zephyr. Therefore, the frdm_k64f board may have additional features already supported, which can also be re-used on this frdm_k82f board.
System Clock
The K82F SoC is configured to use the 12 MHz external oscillator on the board with the on-chip PLL to generate a 120 MHz system clock.
Serial Port
The K82F SoC has five UARTs. One is configured for the console, the remaining ones are not used.
USB
The K82F SoC has a USB OTG (USBOTG) controller that supports both device and host functions through its micro USB connector (J11). Only USB device function is supported in Zephyr at the moment.
Programming and Debugging
Build and flash applications as usual (see Building an Application and Run an Application for more details).
Configuring a Debug Probe
A debug probe is used for both flashing and debugging the board. This board is configured by default to use the OpenSDA DAPLink Onboard Debug Probe.
Early versions of this board have an outdated version of the OpenSDA bootloader and require an update. Please see the DAPLink Bootloader Update page for instructions to update from the CMSIS-DAP bootloader to the DAPLink bootloader.
Option 1: OpenSDA DAPLink Onboard Debug Probe (Recommended)
Install the pyOCD Debug Host Tools and make sure they are in your search path.
Follow the instructions in OpenSDA DAPLink Onboard Debug Probe to program the OpenSDA DAPLink FRDM-K82F Firmware.
Option 2: OpenSDA J-Link Onboard Debug Probe
Install the J-Link Debug Host Tools and make sure they are in your search path.
Follow the instructions in OpenSDA J-Link Onboard Debug Probe to program the OpenSDA J-Link Firmware for FRDM-K82F.
Add the arguments -DBOARD_FLASH_RUNNER=jlink
and
-DBOARD_DEBUG_RUNNER=jlink
when you invoke west build
to override the
default runner from pyOCD to J-Link:
# From the root of the zephyr repository
west build -b frdm_k82f samples/hello_world -- -DBOARD_FLASH_RUNNER=jlink -DBOARD_DEBUG_RUNNER=jlink
Configuring a Console
Regardless of your choice in debug probe, we will use the OpenSDA microcontroller as a usb-to-serial adapter for the serial console.
Connect a USB cable from your PC to J5.
Use the following settings with your serial terminal of choice (minicom, putty, etc.):
Speed: 115200
Data: 8 bits
Parity: None
Stop bits: 1
Flashing
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b frdm_k82f samples/hello_world
west flash
Open a serial terminal, reset the board (press the SW1 button), and you should see the following message in the terminal:
***** Booting Zephyr OS v1.14.0-xxx-gxxxxxxxxxxxx *****
Hello World! frdm_k82f
Debugging
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b frdm_k82f samples/hello_world
west debug
Open a serial terminal, step through the application in your debugger, and you should see the following message in the terminal:
***** Booting Zephyr OS v1.14.0-xxx-gxxxxxxxxxxxx *****
Hello World! frdm_k82f
Support Resources for Zephyr
MCUXpresso for VS Code, wiki documentation and Zephyr lab guides
NXP’s Zephyr landing page (including training resources)