Getting Started with the S32K14W-Q064 Evaluation Board

Last Modified: 2021-09-16 11:43:52Supports S32K14W-Q064 Evaluation Board for Automotive General Purpose

Contents of this document

  • 1

    Out of the Box
  • 2

    Get Software
  • 3

    Plug It In
  • 4

    Build, Run

1. Out of the Box

You can watch the video or follow the below step-by-step guide to set up your S32K14WEVB-Q064 Evaluation Board:

1.1 Get to Know the Evaluation Board

S32K144WEVB-GS-IMG-SPECS

1.2 Understanding the Header/Pinout

S32K144WEVB-GS-IMG-SPECS-TABLE_1

S32K144WEVB-GS-IMG-SPECS-TABLE_1

2. Get Software

2.1 Get the Integrated Development Environment (IDE)

S32K14WEVB-Q064 performs better when using S32 Design Studio for the S32 Platform.

DOWNLOAD S32 DESIGN STUDIO IDE

2.2 Install S32K1 Drivers

Run the S32 Design Studio, Go to menu → Help → S32DS Extension and Updates.

Install S32K1xx development package and continue in installation either with SDK or with RTD drivers.

Getting Started with the S32K14W Evaluation Board
Getting Started with the S32K14W Evaluation Board
Getting Started with the S32K14W Evaluation Board

2.3 Get the Run-Time Debugging Tool

S32K14EVB-Q064 evaluation board performs better when using the FreeMASTER tool for run-time debugging.

You can also download and install the FreeMASTER Communication Driver (source code already included in the example project).

DOWNLOAD FREEMASTER TOOL - Link

3. Plug It In

3.1 Set Up Jumpers in the S32K14WEVB-Q064 Evaluation Board

Jumper Configuration Description
J10 2-3 MCU Voltage [5V]
J15 CLOSED MCU Current Measurement Pins
J104 1-2 RESET Push Button [Bypass to MCU]
J107 2-3 Power Source [USB]
J108 CLOSED LIN Mode [Master]
Getting Started with the S32K14W Evaluation Board

3.2 Connect the Debugger Cable

Connect the S32K14WEVB-Q064 board to the PC using the micro USB cable.

S32K144WEVB-GS-IMG-USB-CONNECTED

3.3 Test Your Board With the Out the Box Demo Software

4. Build, Run

4.1 Create an S32DS Project from Example

Open S32DS and from the menu, go to File → New → S32DS Project from Example

S32K144WEVB-GS-IMG-S32DSCREATE-1

Select for example ADC project either from SDK or from RTD

Getting Started with the S32K14W Evaluation Board
Getting Started with the S32K14W Evaluation Board

4.2 Configure and Build Project

The SDK project might be built directly via “Build button”

Getting Started with the S32K14W Evaluation Board

While RTD project needs to generate the configuration. Double-click on mex file to open Configuration Tool and click on the Update Code button for configuration files generation.

Getting Started with the S32K14W Evaluation Board
Getting Started with the S32K14W Evaluation Board
Getting Started with the S32K14W Evaluation Board

Once you finish your code/configuration modification, click on built button.

Getting Started with the S32K14W Evaluation Board

4.3 Load Code into MCU

In the S32 Design Studio menu click Run → Debug Configuration and select the appropriate predefined debug configuration and click on Debug to start loading built code into MCU.

Getting Started with the S32K14W Evaluation Board

4.4 Debug the Code

The S32DS will switch into debug perspective and you may use the debug buttons/keys to walk through the example code.

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 2-3
  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.

  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
  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

Support

Forums

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