boards/nxp/frdm_k82f/doc/index.rst
.. zephyr:board:: frdm_k82f
Overview
The FRDM-K82F is a low-cost development platform for Kinetis K80, K81, and K82 MCUs.
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:
FlexIO header
For more information about the K82F SoC and FRDM-K82F board:
K82F Website_K82F Datasheet_K82F Reference Manual_FRDM-K82F Website_FRDM-K82F User Guide_FRDM-K82F Schematics_.. zephyr:board-supported-hw::
.. note::
For additional features not yet supported, please also refer to the
:zephyr:board: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.
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.
The K82F SoC has five UARTs. One is configured for the console, the remaining ones are not used.
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
.. zephyr:board-supported-runners::
Build and flash applications as usual (see :ref:build_an_application and
:ref:application_run for more details).
A debug probe is used for both flashing and debugging the board. This board is
configured by default to use the :ref: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.
opensda-daplink-onboard-debug-probe (Recommended)Install the :ref:pyocd-debug-host-tools and make sure they are in your search
path.
Follow the instructions in :ref:opensda-daplink-onboard-debug-probe to program
the OpenSDA DAPLink FRDM-K82F Firmware_.
opensda-jlink-onboard-debug-probeInstall the :ref:jlink-debug-host-tools and make sure they are in your search
path.
Follow the instructions in :ref:opensda-jlink-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:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: frdm_k82f :gen-args: -DBOARD_FLASH_RUNNER=jlink -DBOARD_DEBUG_RUNNER=jlink :goals: build
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.):
Here is an example for the :zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: frdm_k82f :goals: flash
Open a serial terminal, reset the board (press the SW1 button), and you should see the following message in the terminal:
.. code-block:: console
***** Booting Zephyr OS v1.14.0-xxx-gxxxxxxxxxxxx ***** Hello World! frdm_k82f
Here is an example for the :zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: frdm_k82f :goals: debug
Open a serial terminal, step through the application in your debugger, and you should see the following message in the terminal:
.. code-block:: console
***** Booting Zephyr OS v1.14.0-xxx-gxxxxxxxxxxxx ***** Hello World! frdm_k82f
.. include:: ../../common/board-footer.rst.inc
.. _FRDM-K82F Website: https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kinetis-k82-k81-and-k80-mcus:FRDM-K82F
.. _FRDM-K82F User Guide: https://www.nxp.com/webapp/Download?colCode=FRDMK82FUG
.. _FRDM-K82F Schematics: https://www.nxp.com/downloads/en/schematics/FRDM-K82F-SCH.pdf
.. _K82F Datasheet: https://www.nxp.com/docs/en/data-sheet/K82P121M150SF5.pdf
.. _K82F Reference Manual: https://www.nxp.com/webapp/Download?colCode=K82P121M150SF5RM
.. _DAPLink Bootloader Update: https://os.mbed.com/blog/entry/DAPLink-bootloader-update/
.. _OpenSDA DAPLink FRDM-K82F Firmware: https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/k20dx_frdmk82f_if_crc_legacy_0x8000.bin
.. _OpenSDA J-Link Firmware for FRDM-K82F: https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K82F