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.
Your FRDM-K64F comes loaded with a "bubble level" demo that leverages the on-board 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.
The Kinetis Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.
Click below to download a pre-configured SDK release for the FRDM-K64F
You can also use the online MCUXpresso web tool to create a custom SDK package for the FRDM-K64F using the SDK builder.
NXP offers a complimentary toolchain called MCUXpresso (MCUX).
Want to use a different toolchain?
The MCUXpresso Config Tool is an integrated suite of configuration tools that guides users in creating new KSDK projects, and also provides pin and clock tools to generate initialization C code for custom board support.
Many of the example applications output data over the MCU UART so you'll want to make sure that the driver for the board's virtual COM port is installed. Before you run the driver installer, you MUST have the board plugged in to your PC.
With the serial port driver installed, run your favorite terminal application to view the serial output from the MCU's UART. Configure the terminal to 115200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the FRDM-K64F's virtual COM port, open the device manager and look under the "Ports" group.
Not sure how to use a terminal application? Try one of these tutorials:
The Kinetis 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.
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 Kinetis 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?
Use the MCUXpresso Config tool to create a new project using the instructions below.
Now, let’s use the Pins tool that is part of the MCUXpresso Config package to show how to add a new GPIO pin to your project to blink an LED.
Next use the Clocks tool that is part of the MCUXpresso Config package to change the clock settings and change the rate that the LED blinks.
With the application modified, you will see the FRDM-K64F’s red LED slowly blinking. You can also view terminal output using the terminal program.
The MCUXpresso configuration tools provide intuitive interfaces to create the custom clock and pin configurations for your design and generate source code that can be added into your project.
This tool assigns signals to pins, set electrical properties, and generate initialization code.https://mcuxpresso.nxp.com/en/pins
This tool sets up the system clocks and generate initialization code.https://mcuxpresso.nxp.com/en/clock