Getting Started with the S32K312EVB-LQ100 Evaluation Board

最終更新日時: Oct 26, 2026 new サポート S32K312EVB-100LQ 車載向け汎用評価ボード

このドキュメントの内容

  • 1

    Out of the Box
  • 2

    Get Software
  • 3

    Plug It In

1. Out of the Box

The S32K312EVB-LQ100 is an evaluation board (EVB) based on the NXP S32K344 automotive microcontroller (MCU). The device features dual Arm® Cortex®-M7 cores, functional safety support up to ASIL-D, an integrated hardware security engine (HSE), advanced communication peripherals, floating-point support and low-power operating modes, making it suitable for automotive and industrial applications.

This guide will walk you through setting up the S32K312EVB-LQ100, preparing the required development tools as well as creating, configuring, building and running an application in S32 Design Studio (DS).

1.1 Get to Know the S32K312EVB-LQ100 Evaluation Board

To help familiarize you with the board, the figure below labels the evaluation board's (EVB) core components.

Figure 1. Board

Figure 1. Board

1.2 S32K312EVB-LQ100 Features

To help familiarize you with the features of the S32K312EVB-LQ100, the block diagram below provides an outline.

S32K344 Evaluation Board Block Diagram

S32K344 Evaluation Board Block Diagram

2. Get Software

To obtain the software needed to set up and use the evaluation board, you will first need to log in to NXP.com with your credentials.

2.1 Select Software Packages from Automotive Software Package Manager

In this step, you will locate the software needed for the S32K312EVB-LQ100. Go to the Automotive Software Package Manager and select "S32K3" as your device under "General Purpose MCUs."

Package Manager S32K3

Figure 2. Package Manager S32K3

To locate the software downloads needed for this EVB, you will unfold and browse through the menu selections to locate the "FRDM Automotive S32K3 + S32M27 Board Installation Package" bundle (found under "S32K3" which is found under "General-Purpose MCUs") and choose "S32 Design Studio and Configuration Tools" and "Real-Time Drivers." Other software packages listed under that specific category are optional.

Figure 3. Package Manager FRDM-A Bundle

Once you have selected the two items referenced in the previous step, you will click the button labeled "GENERATE BUNDLE INSTALLER" located below the drop-down menu.

Figure 4. Package Manager Generate Bundle Installer

Before you can use the software, you will be required to review the Export Control information and the Software License Agreement. Follow the wizard to complete the following steps:

  1. Review the Export Control information
  2. Review the entire Software License Agreement by scrolling to the bottom, then accept the agreement
  3. Close the wizard window after completing the required prompts

MultiInstaller

Figure 5. MultiInstaller

The FRDM Automotive Board Installation Package automatically installs and configures the required software, simplifying the setup process. (Refer to the screenshot above and the one below for examples).

MultiInstaller

Figure 6. MultiInstaller

2.2 Add GCC Toolchain Version 10.2

The latest version of S32 Design Studio includes the GNU Compiler Collection (GCC) 11.4 toolchain. To ensure full compatibility between the toolchain and the Real-Time Drivers (RTD), you will also need to install GCC 10.2.

To install the GCC 10.2 toolchain, select Help → S32DS Extensions and Updates from the S32 Design Studio top menu. In the S32DS Extensions and Updates dialog, locate and install GCC 10.2.

GCC 10.2

Figure 7. GCC 10.2

Adding Update Sites

Figure 8. Add Update Sites

3. Plug It In

In this step, to prepare the board for use you will connect the S32K312EVB-LQ100 evaluation board to your computer and power it on.

3.1 Check The Default Solder Jumper Positions in the S32K312EVB_LQ100 EVB

Refer to both the board layout image and the table below to locate the jumpers. The table named S32K312EVB-LQ100 Default Solder Jumper Settings provides additional detail fir each solder jumper, accordingly.

Figure 9. Default Solder Jumpers

Figure 9. Default Solder Jumpers
Jumper State Notes
SJ1 1-2 VDD_HV_A domain powered from USB
SJ2 1-2 VDD_HV_A domain voltage 5 V

3.2 Plug in the Power Supply and S32K3 Debug Interface

Next, you will power the board by connecting a USB Type-C to the J1 connector

Figure 10. S32K312EVB-LQ100 Connect USB Type-C

Figure 10. S32K312EVB-LQ100 Connect USB Type-C

You will know that the EVB is receiving power when the two orange LEDs (located near the voltage regulators and debug interface) light up. These LEDs indicate the presence of the VDD_HV_A supply voltages, letting you know that the S32K3 debug interface is ready.

You also have the option to program the S32K3 MCU using the 10-pin Arm Cortex Debug Connector. To use this option, connect an external debug interface to connector J4, located above the S32K3 MCU.

Create Application Project

In this step, you will use S32 DS to create and configure an application project for the S32K312EVB-LQ100 EVB.

Create New S32DS Project

Follow the steps below to create your new S32DS project. Refer to the screenshots beneath each step for examples.

  1. Open S32 Design Studio. From the top menu, select File → New → S32DS Application Project
  2. S32DS New Application Project

    Figure 11. S32DS New Application Project
  3. Enter a project name (without spaces), select the S32K344 derivative and select GCC 10.2 as the toolchain
  4. S32DS New Application Project

    S32DS New Application Project
  5. Select Debugger and RTD Drivers as the Platform SDK, then select Finish to create the project
  6. S32DS New Application Project

    S32DS New Application Project

Configure Pins

Follow the steps below to configure the pins on the board. Refer to the screenshots beneath each step for examples.

  1. Expand the project file folder, then double-click the .mex file to open the project configuration in the Configuration Tool
  2. MEX file

    MEX file
  3. Select the LQFP 100 package
  4. Select Package

    Select Package
  5. Configure the PTA13 pin, which is connected to the green LED, as a GPIO output
  6. Select GREEN_LED pin

    Figure 16. Select GREEN_LED pin
  7. Enter an identifier for PTA13 (without spaces), such as GREEN_LED
  8. Select Identifier

    Figure 17. Select Identifier

Add Driver and Generate Configuration Files

Follow the steps below to add the drivers needed and generate the configuration files for your project. Refer to the screenshots beneath each step for examples.

  1. Switch to the "Peripherals" perspective, then add the Siul2_Dio driver to the application
  2. Peripherals Perspective

    Figure 18. Peripherals Perspective
    Figure 19. Add Siul2_Dio Driver
  3. Verify that the correct project is selected, then select "Update Code" to generate the configuration files
  4. Update Code

    Update Code

Edit Code

Follow the steps below to edit the application code. Refer to the screenshots beneath each step for examples.

  1. Revert to the C/C++ perspective
  2. C Cpp Perspective

    Figure 21. C Cpp Perspective
  3. Edit main.c file in src folder, including the Port and Dio drivers
  4. /* Including necessary configuration files. */
    #include "Mcal.h"
    
    #include "Siul2_Port_Ip.h"
    #include "Siul2_Dio_Ip.h"
    
    volatile int exit_code = 0;
    
    /* User includes */
  5. Enter the command line for pin initialization
  6. int main(void)
    {
        /* Write your code here */
        Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals,
        g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
        for(;;)
        {
        }
        return exit_code;
    }
  7. Finally, add the command shown below to toggle the GREEN_LED pin
  8. int main(void)
    {
        /* Write your code here */
        Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals,
        g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
        for(;;)
        {
            Siul2_Dio_Ip_TogglePins(GREEN_LED_PORT, 1<<(GREEN_LED_PIN));
        }
        return exit_code;
    }

Build and Run Application Project

Now, you will take your S32K312EVB-LQ100 EVB for a test drive. Follow the instructions in each subsection to build the application, upload it to the S32K344 and also debug the code in S32 Design Studio.

Build and Upload Software

Open the Debug Configurations menu, then select one of the predefined debug configurations to build the application and upload it to the S32K344 microcontroller (MCU).

Debug Menu

Figure 22. Debug Menu

Debug Configuration

Figure 23. Debug Configuration

Debug Code

S32 Design Studio switches to the Debug perspective. Select Step Over or press F6 to step through the code.

Step Over

Figure 24. Step Over

The green LED should now be toggling in a continuous loop.

Add Clock Initialization Code (Optional)

Similar to the "Edit Code" step in the previous section, you may update the code for clock initialization.

/* Including necessary configuration files. */
#include "Mcal.h"

#include "Siul2_Port_Ip.h"
#include "Siul2_Dio_Ip.h"

#include "Clock_Ip.h"

volatile int exit_code = 0;
/* User includes */
int main(void)
{

    Clock_Ip_StatusType ClockStatus;
    ClockStatus = Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);

    /* Write your code here */
    Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_BOARD_InitPeripherals,
    g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals);
    
    for(;;)
    {
        Siul2_Dio_Ip_TogglePins(GREEN_LED_PORT, 1<<(GREEN_LED_PIN));
    }
    return exit_code;
}