Connect the board the PC via the USB cable between the OpenSDA USB port on the board and the USB connector on the PC.
Kinetis MCU boards are supplied with OpenSDA firmware pre-loaded. For software development on the MCU board, make sure the latest OpenSDA driver is on the Freedom development board. This allows debugging, flash programming and serial communication over a USB cable. Find the latest OpenSDA firmware for the boards here:
For the example, FRDM-K64F, go to this website and choose board FRDM-K64F to get the latest OpenSDA firmware.
The output data from the provided example applications is provided over the MCU UART. This requires that the driver for the board’s virtual COM port is installed. The board MUST be plugged into the PC before the driver installer is run.
The links for the latest OpenSDA Windows serial port drivers are provided on the same web:
OpenSDA Update to the boards
For the example, FRDM-K64F, go to this website and choose board FRDM-K64F. In the coming webpage, click on Arm CMSIS-DAP serial drivers to download Windows Serial Port Drivers.
Once the Windows Serial Port Drivers are installed on the PC, determine the port number of the FRDM board’s virtual COM port by opening the device manager and looking under the "Ports" group.
Note: All the Serial Port Drivers are included and installed automatically when installing MCUXpresso IDE. Skip this step and jump to section 2 if MCUXpresso IDE is planned to install.
Choose Part Number
Click on Download SDK. A pop-up window SDK Downloads will show when the package is built successfully. Click on Download SDK Archive to download the package. The package is provided as a zip file.
NXP offers a complimentary toolchain called MCUXpresso IDE.
Once the SDK installation is completed, click on ‘Import SDK examples’.
Note: Once, the freedom_bootloader example is imported successfully, the MCUXpresso IDE automatically creates the corresponding standalone project in your workspace.
In downloaded package, Windows blhost is located at middleware\mcu-boot\bin\Tools\blhost\win.
Open a command prompt and run blhost to initiate communication and inject commands to the bootloader. For instance, you can connect to bootloader over UART with an option "-p" and run blhost command get-property to get some information from bootloader.
Type blhost -p COM21 -- get-property 12 to get memory regions reserved by the Bootloader
Type blhost -p COM21 -- get-property 1 to get current bootloader version
For more details, please refer to blhost User’s Guide.
Option A: Use the MCUXpresso IDE to clone an example project.
Option B: Use the MCUXpresso Config Tool to clone an existing MCUXpresso SDK example for use with third party IDEs.
Now, let’s use the Pins tool that is part of the MCUXpresso Config Tool 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 Tool to change the clock settings and change the rate that the LED blinks.
With the application modified, you will see the FRDM-K64F’s blue LED slowly blinking. You can also view terminal output using the terminal program.
Explore beyond the FRDM-K64F by adding other NXP solutions to your project and interact with our worldwide design community
Explore the world with a full assortment of NXP sensor solutions. From accelerometers, pressure sensors, touch sensors, and many more, NXP has a sensor solution for your project. Find out more at http://nxp.com/sensors
Near Field Communication is a simple, intuitive technology that lets you interact securely with the world around you with a simple touch. Learn more about NXP’s NFC solutions at http://nxp.com/nfc
Connect with other engineers and get expert advice on designing with Kinetis MCUs and MCUXpresso Software and Tools. Join the community discussion in one of our two dedicated communities: Kinetis MCU Community or MCUXpresso Software and Tools Community