Quick Start Guide for S32K14W EVBs

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

RTD Examples

Kickstart your RTD journey with these handy examples. We've rounded up some of the most common use cases to get you inspired and moving forward.

Users can copy the path directly into their window once the RTD is downloaded.

RTD Examples

ADC

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Adc_TS_T40D2M30I0R0\examples\S32DS\S32K1\Adc_example_S32K144W

ADC PDB IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Adc_TS_T40D2M30I0R0\examples\S32DS\S32K1\Adc_Pdb_Ip_example_S32K144W

CAN

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Can_43_FLEXCAN_TS_T40D2M30I0R0\examples\S32DS\S32K1\Can_example_S32K144W

FLEXCAN IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Can_43_FLEXCAN_TS_T40D2M30I0R0\examples\S32DS\S32K1\FlexCAN_Ip_example_S32K144W

CRC

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Crc_TS_T40D2M30I0R0\examples\S32DS\S32K1\Crc_Example_S32K144W

CRC IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Crc_TS_T40D2M30I0R0\examples\S32DS\S32K1\Crc_Ip_Example_S32K144W

DIO

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Dio_TS_T40D2M30I0R0\examples\S32DS\S32K1\Dio_Example_S32K144W

GPIO DIO IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Dio_TS_T40D2M30I0R0\examples\S32DS\S32K1\Gpio_Dio_Ip_Example_S32K144W

EEP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Eep_TS_T40D2M30I0R0\examples\S32DS\S32K1\Eep_Example_S32K144W

FTFC EEP IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Eep_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftfc_Eep_Ip_Example_S32K144W

FEE

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Fee_TS_T40D2M30I0R0\examples\S32DS\S32K1\Fee_Example_S32K144W

FLS

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Fls_TS_T40D2M30I0R0\examples\S32DS\S32K1\Fls_Example_S32K144W

FTFC IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Fls_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftfc_Ip_Example_S32K144W

FTM GPT

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Gpt_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftm_Gpt_Example_S32K144W

GPT

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Gpt_TS_T40D2M30I0R0\examples\S32DS\S32K1\Gpt_example_S32K144W

LPIT GPT

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Gpt_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lpit_Gpt_Example_S32K144W

I²C

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2c_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2c_Example_S32K144W

I²C IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2c_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2c_Ip_Example_S32K144W

I2S leader

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2s_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2s_Flexio_to_Flexio_Example_Master_S32K144W

I2S follower

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2s_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2s_Flexio_to_Flexio_Example_Slave_S32K144W

I2S IP leader

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2s_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2s_Flexio_to_Flexio_Ip_Example_Master_S32K144W

I2S IP follower

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\I2s_TS_T40D2M30I0R0\examples\S32DS\S32K1\I2s_Flexio_to_Flexio_Ip_Example_Slave_S32K144W

FTM ICU IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Icu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftm_Icu_Ip_BlinkLed_S32K144W

ICU

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Icu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Icu_BlinkLed_S32K144W

PORT CI ICU IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Icu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Port_Ci_Icu_Ip_BlinkLed_S32K144W

LIN

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Lin_43_LPUART_FLEXIO_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lin_Flexio_MasterFrameTransfer_S32K144W

LIN IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Lin_43_LPUART_FLEXIO_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lin_Ip_FrameTransfer_S32K144W

LIN LPUART

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Lin_43_LPUART_FLEXIO_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lin_Lpuart_MasterFrameTransfer_S32K144W

DMA IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Mcl_TS_T40D2M30I0R0\examples\S32DS\S32K1\Dma_Ip_DmaTransfer_S32K144W

MCL DMA

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Mcl_TS_T40D2M30I0R0\examples\S32DS\S32K1\Mcl_DmaTransfer_S32K144W

CLOCK IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Mcu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Clock_Ip_Example_S32K144W

MCU

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Mcu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Mcu_Example_S32K144W

POWER IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Mcu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Power_Ip_Example_S32K144W

FTM OCU IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Ocu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftm_Ocu_Ip_Example_S32K144W

OCU

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Ocu_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ocu_Example_S32K144W

MPU IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Platform_TS_T40D2M30I0R0\examples\S32DS\S32K1\Mpu_Ip_Example_S32K144W

PLATFORM MPU HLD

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Platform_TS_T40D2M30I0R0\examples\S32DS\S32K1\Platform_Mpu_Hld_Example_S32K144W

PORT CI PORT IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Port_TS_T40D2M30I0R0\examples\S32DS\S32K1\Port_Ci_Port_Ip_Example_S32K144W

PORT

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Port_TS_T40D2M30I0R0\examples\S32DS\S32K1\Port_Example_S32K144W

FTM PWM IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Pwm_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftm_Pwm_Ip_Example_S32K144W

PWM

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Pwm_TS_T40D2M30I0R0\examples\S32DS\S32K1\Pwm_example_S32K144W

FTM QDEC IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Qdec_TS_T40D2M30I0R0\examples\S32DS\S32K1\Ftm_Qdec_Ip_Example_S32K144W

QDEC

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Qdec_TS_T40D2M30I0R0\examples\S32DS\S32K1\Qdec_Example_S32K144W

RM DMAMUX

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Rm_TS_T40D2M30I0R0\examples\S32DS\S32K1\Rm_DMAMUX_Example_S32K144W

LPSPI IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Spi_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lpspi_Flexio_Ip_Transfer_S32K144W

LPSPI half-duplex

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Spi_TS_T40D2M30I0R0\examples\S32DS\S32K1\Lpspi_Ip_HalfDuplexTransfer_S32K144W

SPI half-duplex

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Spi_TS_T40D2M30I0R0\examples\S32DS\S32K1\Spi_HalfDuplexTransfer_S32K144W

SPI

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Spi_TS_T40D2M30I0R0\examples\S32DS\S32K1\Spi_Transfer_S32K144W

LPUART

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Uart_TS_T40D2M30I0R0\examples\S32DS\S32K1\LpuartFlexio_Uart_Ip_Example_S32K144W

UART

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Uart_TS_T40D2M30I0R0\examples\S32DS\S32K1\Uart_Example_S32K144W

WDOG

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Wdg_TS_T40D2M30I0R0\examples\S32DS\S32K1\Wdg_Example_S32K144W

WDOG IP

C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Wdg_TS_T40D2M30I0R0\examples\S32DS\S32K1\Wdog_Ewm_Ip_Example_S32K144W

Support

Forums

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