FRDM-K64 Basic examples using mbed

Document created by Pedro Augusto Panecatl Salas Employee on Jun 27, 2014Last modified by ebiz_ws_prod on Dec 13, 2017
Version 9Show Document
  • View in full screen mode

Welcome to the FRDM-K64 mbed workshop, in this page you will find all the code examples we will review on this session.



The program covers the following modules:


Depending on how fast we advance during the session some of the modules might be skipped; however here you can find both the source code and binary files ready to be flashed into the FRDM-K64 development board.





The FRDM-K64 is fully compatible with the Arduino rapid prototyping system, the following image depicts the board's pinout, the green labels can be used directly into your mbed proyects, they have already been defined in the headers and libraries in order to make development easier.


k64f arduino pinout.jpg


Sign up at

In order to create the projects covered on this session it is necessary to create an mbed user account, open the website and create a user account, if you have already signed up please log in.


Mbed debugging application
To enable the FRDM-K64 development board using the binary files generated by mbed it is necessary to update the board's firmware, follow the steps mentioned below in order to enable the board to be programmed:


  1. Press the board's reset button
  2. While pressing the reset button connect the board to your computer using the USB cable, it must be connected to the J26 USB connector.
  3. Once the unit has enumerated as "Bootloader", copy the 20140530_k20dx128_k64f_if_mbed.bin file into the unit
  4. Disconnect and reconnect the USB cable, the board must enumerate as "MBED"


Serial communication driver

To implement serial communication you need to install the serial driver in your computer, download the driver, once your board has enumerated as MBED execute the driver and wait for it to be finished, this might take a couple of minutes.



Serial terminal

In order to communicate with the board via serial port it is necessary to use a serial terminal, by default WIndows 7 and 8 do not have this application, XP does. If your OS does not feature a serial terminal, you can download the one at the bottom (Teraterm).



Your board is now ready to be programmed using mbed!

Original Attachment has been moved to:

Original Attachment has been moved to: mbedWinSerial_16466.exe