TM
External Use
11
Introduction to OpenSDA
The MSD Flash Programmer is a composite USB application that provides a virtual serial port and an easy and convenient
way to program applications into the KV31F MCU. It emulates a FAT16 file system, appearing as a removable drive in the
host file system with a volume label of FRDM-KV31F. Raw binary and Motorola S-record files that are copied to the drive are
programmed directly into the flash of the KL27 and executed automatically. The virtual serial port can be opened with
standard serial terminal applications.
Using the MSD Flash Programmer
Using the Virtual Serial Port
1
2
1
2
3
4
5
2 of 2
The new application should now be running on the FRDM-
KV31F. And you can program repeatedly without the need
to unplug and reattach the USB cable before
reprogramming.
Program rtc_func.srec example to replace the out-of-box
demo on your FRDM-KV31F.
Locate the
Precompiled Examples
folder in the
FRDM-KV31F Quick Start Package.
Copy & paste or drag & drop one of the
.srec
files
to the
FRDM-KV31F
drive.
Determine the symbolic name assigned to the
FRDM-KV31F virtual serial port. In Windows
and look for the COM port named
“PEMicro/Freescale – CDC Serial Port”.
Open the serial terminal emulation program of your
choice. Examples for Windows include
, and
Program one of the “serial test” applications from the
Precompiled Examples
folder using the MSD
Flash Programmer.
NOTE:
Refer to the
OpenSDA User’s Guide
for a
description of a known Windows issue when disconnecting
a virtual serial port while the COM port is in use.
Configure the terminal program. Most embedded
examples use 8 data bits, no parity bits, and one
stop bit (8-N-1). Match the baud rate to the selected
serial test application and open the port.
Press and release the Reset button (SW1) at
anytime to restart the example application. Resetting
the embedded application will not affect the
connection of the virtual serial port to the terminal
program.
NOTE:
Flash programming with the MSD Flash Programmer is currently only supported on Windows operating systems.
However, the virtual serial port has been successfully tested on Windows, Linux and Mac operating systems.