Getting Started with the FRDM-K64F

Last Modified: 2025-01-15 09:32:00

Contents of this document

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build, Run

1. Plug It In

1.1 Important Information Before Plugging In Your FRDM-K64F

GS-FRDM-K64F-MODAL10-FIG2

GS-FRDM-K64F-MODAL10-FIG2

GS-FRDM-K64F-MODAL10-FIG2

GS-FRDM-K64F-MODAL10-FIG2

GS-FRDM-K64F-MODAL10-FIG2

GS-FRDM-K64F-MODAL10-FIG2

Board Information

OpenSDA is a serial and debug adapter circuit that runs on a Kinetis K20 device built into many NXP development boards.

It allows users to download and debug programs onto the target K64F chip using only a USB cable.

Some FRDM-K64F boards may contain older OpenSDA firmware that is incompatible with Windows 10 due to changes made in how Windows handles Mass Storage Devices. This can potentially corrupt older versions of the OpenSDA firmware found on those FRDM-K64F boards.

The vast majority of FRDM-K64F boards currently being shipped from distributors will already have updated firmware that is not affected, but some older inventory may still contain the outdated firmware.

To ensure proper operation of the FRDM-K64F with Windows 10, disable Storage Services on your Windows 10 computer before plugging it in the first time and update the OpenSDA firmware if needed:

  1. Hold down the Windows logo key on your keyboard and press R to bring up the Windows Run prompt
  2. Type in services.msc and hold down Ctrl+Alt and hit Enter to launch the Services application in Administrator mode
  3. GS-FRDM-K64F-MODAL10-FIG1
  4. Once open, find the "Storage Services" item and double click on it to open it
  5. GS-FRDM-K64F-MODAL10-FIG2
  6. In the properties box that comes up, change the Startup type to “Disabled” and then click on "Stop". If both options are grayed out, make sure you started the Services program in Administrator mode
  7. GS-FRDM-K64F-MODAL10-FIG3
  8. Now take the FRDM-K64F board and hold down the reset button as you plug the board into your computer
  9. GS-FRDM-K64F-MODAL10-FIG4
  10. If the board enumerates as a drive named "MAINTENANCE" then your board has the latest firmware and no further action is needed. Skip to the last step (#10) to re-enable Storage Services
  11. If the board enumerates as a drive named something else, drag and drop this 0244_k20dx_bl_0x5000.bin file to that drive file to that drive. This will update the OpenSDA bootloader
  12. The board should now automatically re-enumerate as a drive named MAINTENANCE. Drag and drop this k20dx_frdmk64f_if_crc_legacy_0x5000.bin file to that MAINTENANCE drive to update the OpenSDA CMSIS-DAP application
  13. The board should automatically re-enumerate again and come up as a drive named FRDM-K64FD. The OpenSDA bootloader and OpenSDA application are now both up to date and will work correctly with Windows 10
  14. Re-enable the Storage Services by using the same steps as before to open up the Storage Services dialog box, change the startup type back to "Automatic (Delayed Start)" and click on "Start"

If you do not see any drive enumerate at all when plugging in the board in Step #6, the OpenSDA firmware may have been corrupted by Windows. The only way to fix this is to reprogram the K20 chip that the OpenSDA firmware runs on using an external debug tool. Instructions for this process can be found in this OpenSDA Community post.

1.2 Get Started with FRDM-K64F Development Platform

Let's take your FRDM-K64F for a test drive! You have the choice of watching the sequence in a short video or following the detailed actions list below.


  Diagnostic Test Release 201909XX
  CPU: NXP S32G
  Board: S32G274A Board

  MC_CGM_0 Clock Mux 0 -> XBAR_CLK (Core Clock)
  CORE_DFS_1 Clock -> MC_CGM_0 Clock Mux 0
  CORE_VCO Clock -> CORE_DFS_1 Clock
  FXOSC -> CORE_VCO Clock
  FXOSC: 40000000Hz
  CORE_VCO Clock: 2000000000Hz
  CORE_DFS Clock: 1000000000Hz
  XBAR_CLK: 500000000Hz

1.3 Attach the USB Cable

FRDM-K64F-GS-board


  Diagnostic Test Release 201909XX
  CPU: NXP S32G
  Board: S32G274A Board

  MC_CGM_0 Clock Mux 0 -> XBAR_CLK (Core Clock)
  CORE_DFS_1 Clock -> MC_CGM_0 Clock Mux 0
  CORE_VCO Clock -> CORE_DFS_1 Clock
  FXOSC -> CORE_VCO Clock
  FXOSC: 40000000Hz
  CORE_VCO Clock: 2000000000Hz
  CORE_DFS Clock: 1000000000Hz
  XBAR_CLK: 500000000Hz

1.4 Run the Out-of-Box Demo

FRDM-K64F-GS-board

Your FRDM-K64F comes loaded with a "bubble level" demo that leverages the onboard accelerometer. When the board is flat, the RGB LED is turned off and when the board is tilted, the red or blue LEDs gradually illuminate based on the degree of tilt on the X- and Y-axis.

FRDM-K64F-DEMO

Demo Not Working?

2. Get Software

Choose a Development Path

2.1 Installing Software

2.2 Jump-Start Your Design with the MCUXpresso SDK

Click below to download a preconfigured SDK release for the FRDM-K64F. Learn about SDK.

The MCUXpresso SDK is complimentary and includes full source code under a permissive open source license for all hardware abstraction and peripheral driver software.

MCUXPRESSO-SDK-TN

Get MCUXpresso SDK

3. Build, Run

Build and Run SDK Demos on the FRDM-K64F

3.1 Explore the MCUXpresso SDK Example Code

The MCUXpresso SDK comes with a long list of example applications code. To see what's available, browse to the SDK boards folder of your SDK installation and select your board, the FRDM-K64F <SDK_Install_Directory>/boards/frdmk64f.

To learn more about specific example code, open the readme.txt file in an example's directory.

3.2 Build, Run and Debug MCUXpresso SDK Examples

If one or more of the demo applications or driver examples sounds interesting, you're probably wanting to know how you can build and debug yourself. The Getting Started with MCUXpresso SDK guide provides easy, step-by-step instructions on how to configure, build and debug demos for all toolchains supported by the SDK.

Use the guide below to learn how to open, build and debug an example application using the MCUXpresso IDE.

Using a Different Toolchain?