Getting Started with the S32K14W Evaluation Board

Introduction to OpenSDA

OpenSDA is an open-standard serial and debug adapter. It bridges serial and debug communications between a USB host and an embedded target processor. OpenSDA software includes a flash-resident USB mass-storage device (MSD) bootloader and a collection of OpenSDA applications.

The S32K14WEVB-Q064 comes with the MSD Flash Programmer OpenSDA Application preinstalled.

Follow these instructions to run the OpenSDA Bootloader and update or change the installed OpenSDA Application.

Enter OpenSDA Bootloader Mode Load an OpenSDA Application
  1. Unplug the USB cable if attached.
  2. Set J104 on position 1-2.
  3. Press and hold the Reset (SW5)
  4. Plug in a USB cable (not included) between a USB host and the OpenSDA USB connector (labeled “SDA”).
  5. Release Reset

A removable drive should now be visible in the host file system with a volume label of BOOTLOADER. You are now in OpenSDA Bootloader mode.

Note: Follow the “Load an OpenSDA Application” instructions to update the MSD Flash Programmer on your S32K14WEVB-Q064 to the latest version.

  1. While in OpenSDA Bootloader mode, double-click SDA_INFO.HTML in the BOOTLOADER drive. A web browser will open the OpenSDA homepage containing the name and version of the installed application. This information can also be read as text directly from SDA_INFO.HTML.
  2. Locate the OpenSDA applications.
  3. Copy and paste or drag and drop the MSD Flash Programmer Application to the BOOTLOADER drive
  4. Unplug the USB cable and plug it in again. The new OpenSDA Application should now be running and a S32K14WEVB-Q064 drive should be visible in the host file system.

You are now running the latest version of the MSD Flash Programmer. Use this same procedure to load other OpenSDA Applications.

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 S32K1 MCU. It emulates a FAT16 file system, appearing as a removable drive in the host file system with a volume label of S32K14WEVB-Q064. Raw binary and Motorola S-record files that are copied to the drive are programmed directly into the flash of the S32K1 and executed automatically. The virtual serial port enumerates as a standard serial port device that can be opened with standard serial terminal applications.

Using the MSD Flash Programmer Using the Virtual Serial Port
  1. Locate the .srec file of your project, file is under the Debug folder of the S32DS project.
  2. Copy and paste or drag and drop one of the .srec files to the S32K14WEVB-Q064 drive.

The new application should now be running on the S32K14WEVB-Q064. Starting with v1.03 of the MSD Flash Programmer, you can program repeatedly without the need to unplug and reattach the USB cable before reprogramming.

Drag one of the .srec code for the S32K14W the S32K14WEVB-Q064 board over USB to reprogram the preloaded code example to another example.

  1. Determine the symbolic name assigned to the S32K14WEVB-Q064 virtual serial port. In Windows open Device Manager and look for the COM port named PEMicro/Freescale – CDC Serial Port.
  2. Open the serial terminal emulation program of your choice.

    Note: For Windows you can use Tera Term , PuTTY or HyperTerminal

  3. Press and release Reset (SW5) at any time to restart the example application. Resetting the embedded application will not affect the connection of the virtual serial port to the terminal program.
  4. It is possible to debug and communicate with the serial port at the same time. There is no need to stop the debug.

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

Get help

Forums

Connect with other engineers and get expert advice on designing with the S32K14WEVB-Q064 on one of our community sites.