Getting Started with the S32K31XEVB-Q100 Evaluation Board for General Purpose | NXP Semiconductors

Getting Started with the S32K31XEVB-Q100 Evaluation Board for General Purpose

Contents of this document

  • 1

    Out of the Box
  • 2

    Get Software
  • 3

    Plug It In
  • 4

    Create Application
  • 5

    Build, Run

1. Out of the Box

1.1 Get to Know the S32K31XEVB-Q100 Evaluation Board

S32K31XEVB-Q100 Evaluation Board Callouts

S32K31XEVB-Q100 Evaluation Board Callouts

1.2 Block Diagram Features

S32K31XEVB-Q100 Features

S32K31XEVB-Q100 Features

2. Get Software

2.1 Get the Integrated Development Environment (IDE)

Download and install S32 Design Studio IDE for S32 Platform. Click S32 Design Studio for S32 Platform v.3.5.

Then click S32 Design Studio v3.5 Windows installer.

S32 Design Studio for S32 Platform v.3.5

S32 Design Studio for S32 Platform v.3.5

2.2 Install the S32K3xx Development Package and RTD

  1. Go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue. Install S32K3xx Development Package
  2. Continue with the installation of Real-Time Drivers for S32K3xx

2.3 For AUTOSAR® Users - Download and Install Elektrobit Tresos Studio and Real-Time Drivers

  1. Download and install Automotive SW - Elektrobit tresos Studio / AUTOSAR Configuration Tool from the S32K3 Standard Software package
  2. Select the version that you prefer and start the installation
  3. Download and install also the Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M from the S32K3 Standard Software package
  4. Then search for the file S32K3 Real-Time Drivers AUTOSAR R21-11 Version 3.0.0 P10
  5. Finally, start the installation
  6. Note: You will receive an activation code via email. The Instalator will ask for the EB Tresos installation directory on your disk - that saves time in configuration. If you installed RTD prior to EB tresos, create a SW32K3_RTD_4.4_x.y.z.link file in: C:\EB\tresos\links folder with the content: "path=C:/NXP/SW32K3_RTD_4.4_x.y.z", where x,y,z refers to the installed RTD version.

    Optionally select additional software tools from the S32K3 Standard Software tools list.

2.4 Get FreeMASTER Run-Time Debug Tool

S32K31XEVB-Q100 performs better when using the FreeMASTER Run-Time Debugging Tool.

The FreeMASTER communication driver for S32K3 microcontrollers is also needed; download updatesite file with the FreeMASTER communication driver from the Automotive SW → S32K3 → S32 FreeMASTER link in the SW32K3-STDSW-D.

  1. Open the S32DS Extensions and Updates dialog (menu → Help → S32DS Extensions and Updates), click Add Update Sites link and navigate to the FreeMASTER communication driver for S32K3 (zip file starting with "com.") on your disk
  2. Install FreeMASTER Communication driver for S32K3

3. Plug It In

3.1 Set Up Jumpers in the S32K31XEVB-Q100 Evaluation Board

GS-S32K31XEVB-Q100-IMG11

GS-S32K31XEVB-Q100-IMG11
Default Jumper settings
Jumper State Notes
J11 CLOSED Disabled FS23 watchdog after power-up
J15 1-2 Select voltage level for FS23 DEBUG pin
J10 1-2 3V3 SMPS powered from VBAT
J16 CLOSED Peripherals powered for the VDD_HV_A domain
J17 CLOSED MCU Current monitoring Shunt Bypass
J22 1-2 5 V for VDD_HV_A
J26 1-2 5 V from FS23 SBC HBUCK V1
J30 CLOSED 3V3 powered from SMPS

3.2 Plug in the Power Supply

  1. Switch SW1 to the OFF position (fully to the right)
  2. GS-S32K31XEVB-Q100-IMG12

    GS-S32K31XEVB-Q100-IMG12
  3. Connect the 12 V power supply adapter and switch SW1 to the ON position (fully to the left)
  4. GS-S32K31XEVB-Q100-IMG13

    GS-S32K31XEVB-Q100-IMG13
  5. When power is applied to the EVB, Three orange LED's adjacent to the voltage regulators show the presence of the supply voltages (12 V, 5 V and 3.3 V)

3.3 Debugger Connection

  1. Connect a micro-USB cable to the J41 connector to debug via the on-board S32K3 debugger
  2. GS-S32K31XEVB-Q100-IMG14

    GS-S32K31XEVB-Q100-IMG14
  3. Or use one of the available JTAG connectors for debugging via an external S32K3 debugger
  4. GS-S32K31XEVB-Q100-IMG15

    GS-S32K31XEVB-Q100-IMG15

4. Create Application

4.1 Create New S32DS Project

  1. Open S32DS and from the menu, go to: File → New → S32DS Application Project. Fill in the project name(without spaces) and select S32K311 derivative
  2. Select RTD drivers as Platform SDK and finish project creation

4.2 Set Pins

  1. Double-click on project mex file
  2. Select the 100HDQFP package
  3. Set PTB9 pin (connected to Green LED) as GPIO Output
  4. Define PTB9 Identifier (without spaces). For example "GREEN_LED"

4.3 Add Driver and Generate Configuration Files

Switch to the Peripherals perspective and add Siul2_Dio driver to the application.

Ensure that you configure the appropriate project and click on the Update Code button for generating configuration files.

4.4 Edit Code

  1. Return back to the C/C++ perspective
  2. Edit main.c file in src folder and include the Port and Dio drivers
  3. Enter the command line for pin initialization
  4. And finaly also the command for toggling with GREEN_LED pin

5. Build, Run

5.1 Upload Software

Use Debug Configuration menu and select one of predefined debug configurations for building and uploading software into MCU.

5.2 Debug Code

The S32DS will switch into the Debug perspective where you Step Over (F6) your code.

The green LED will now be toggling in an endless loop.

5.3 Optional - Add Clock Initialization Code

Similarly to previous steps, you may add the code for Clock initialization.