Product Release Announcement
Analog & Automotive Embedded Systems
NXP Model-Based Design Toolbox
for S32K3 – version 1.7.0
The Automotive Embedded Systems, Model-Based Design Tools Team at NXP Semiconductors, is pleased to announce the release of the Model-Based Design Toolbox for S32K3 version 1.7.0. This release supports automatic code generation for S32K3 peripherals and applications prototyping from MATLAB/Simulink for NXP S32K3 Automotive Microprocessors. This new product adds support for S32K310, S32K311, S32K312, S32K314, S32K322, S32K324, S32K328, S32K338, S32K341, S32K342, S32K344, S32K348, S32K358, S32K364, S32K366, S32K374, S32K376, S32K388, S32K394 and S32K396 MCUs, and part of their peripherals, based on RTD MCAL components (ADC, CAN, DIO, FEE, GPT, I2C, ICU, LIN, MEM, MCL, PWM, SPI, UART), and support for the GD3162 Gate Driver based on the S32K396 GD3162 Software. In this release, we have also updated the RTD, S32 Configuration Tools, AMMCLib, FreeMASTER, and MATLAB support for the latest versions. The product comes with over 180 examples, covering all the features and functionalities of the toolbox, including new demos for motor control applications.
Target audience:
This product is part of the Automotive SW – Model-Based Design Toolbox.
FlexNet Location:
https://nxp.flexnetoperations.com/control/frse/download?element=7608021
Technical Support:
NXP Model-Based Design Toolbox for S32K3 issues will be tracked through the NXP Model-Based Design Tools Community space.
Release Content:
Automatic C code generation from MATLAB® for NXP S32K3 derivatives:
S32K310
S32K311
S32K312
S32K314
S32K322
S32K324
S32K328
S32K338
S32K341
S32K342
S32K344
S32K348
S32K358
S32K364
S32K366
S32K374
S32K376
S32K388
S32K394
S32K396
Support for the following peripheral components and functions:
ADC
CAN
DIO
eTPU
FEE
GD3162
GPT
I2C
ICU
LIN
MCL (including DMA support)
MEM
Memory read/write
PWM
Profiler
Registers read/write
SPI
UART
New RTD version supported (6.0.0)
Integrates S32K396 GD3162 v2.0.2
The toolbox enables access to the GD3162 gate driver for S32K396 derivatives from Simulink models, by delivering a library block (Gd3162) that generates code on top of GD3162 components API.
New S32 Configuration Tools version supported (2024.R1.8)😎
Integration with EB tresos v29.0.0
Provides 2 modes of operation:
Basic – using pre-configured configurations for peripherals; useful for quick hardware evaluation and testing
Advanced – using S32 Configuration Tools or EB tresos to configure peripherals/pins/clocks
Default Configuration Project Templates targeting all the supported S32K3 derivatives
The toolbox delivers default configuration projects, available in both S32 Configuration Tools and EB tresos, covering an initial enablement of the on-board peripherals, pins, and clocks, for all the supported S32K3 derivatives. The desired template, which represents the starting point for enabling the hardware configuration of the application, can be selected via a dropdown widget.
Support for creating and using Custom Project Templates
The toolbox provides support to use and create custom project templates. This could be very useful when having a custom board design – offering the possibility to create the configuration for it only once. After it is saved as a custom project template, it can be used for every model that is being developed.
Such custom projects, addressing specific hardware designs are offered inside the current version of the toolbox to integrate the following EVBs:
MCTPTX1AK324
S32K344-WB
S32K396-BGA-DC1
MR-CANHUBK344, alongside a set of examples specifically created to target this hardware design and a series of articles (available on NXP Community) demonstrating how to use the toolbox features and functionalities for creating applications for custom boards.
The toolbox has been tested and validated on the official NXP Evaluation Boards
S32K31XEVB-Q100
S32K312EVB-Q172
XS32K3X2CVB-Q172
XS32K3X4EVB-Q257
XS32K3XXEVB-Q172
MR-CANHUBK344
S32K3X4EVB-T172
S32K344-WB
XS32K3X8CVB-Q172
S32K388EVB-Q289
XS32K396-BGA-DC
XS32K396-BGA-DC1
Integrates the Automotive Math and Motor Control Library release 1.1.41
All functions in the Automotive Math and Motor Control Functions Library v1.1.41 are supported as blocks for simulation and embedded target code generation.
FreeMASTER Integration
We provide several Simulink example models and associated FreeMASTER projects to demonstrate how our toolbox interacts with the real-time data visualization tool and how it can be used for tuning embedded software applications.
S32 Design Studio integration
We provide the feature of importing the code generated from a Simulink model inside the S32 Design Studio IDE. This functionality can be useful if the model needs to be integrated into an already existing project or for debug purposes.
Simulation modes
We provide support for the following simulation modes (each of them being useful for validation and verification):
Software-in-Loop (SIL)
Processor-in-Loop (PIL) including AUTOSAR SW-C deployment
External mode
GD3162 Applications
To demonstrate the integration and support of the GD3162 gate driver IC, we have included a reference Simulink application that configures six GD3162 devices in a daisy-chain topology using SPI communication. The setup enables sequential initialization, configuration, and status monitoring of each GD3162 device using the S32K396 as a controller MCU.
Motor Control Applications
The toolbox provides examples for 1-shunt and 2-shunt PMSM and BLDC motor control applications, supporting both S32 Configuration Tools and EB tresos. Each of the examples provides a detailed description of the hardware setup and an associated FreeMASTER project which can be used for control and data visualization. The toolbox also demonstrates the integration of the Motor Control Blockset in developing such applications.
For demonstrating the S32K3 eTPU Software integration, we have included a PMSM application where the FOC algorithm runs on the main CPU of the S32K396 MCU, while the analog sensing, software resolver, and PWM signals generation are offloaded to the eTPU co-processor.
The motor control applications were developed and validated on the MCSPTE1AK344 and MCSPTR2AK396 Motor Control kits.
Support for MATLAB versions
We added support for the following MATLAB versions:
R2021a
R2021b
R2022a
R2022b
R2023a
R2023b
R2024a
R2024b
R2025a
Examples for every peripheral/function supported
More than 180 examples showcasing:
I/O Control
Timers and scheduling
Communication (CAN, I2C, LIN, SPI, UART)
Memory handling
Motor Control applications (BLDC and PMSM)
AMMCLib
FreeMASTER
SIL / PIL / External mode
For more details, features, and how to use the new functionalities, please refer to the Release Notes and Quick Start Guides documents attached.
MATLAB® Integration:
The NXP Model-Based Design Toolbox extends the MATLAB® and Simulink® experience by allowing customers to evaluate and use NXP’s S32K3 MCUs and evaluation board solutions out-of-the-box. NXP Model-Based Design Toolbox for S32K3 version 1.7.0 is fully integrated with MATLAB® environment.
Target Audience:
This release (1.7.0) is intended for technology demonstration, evaluation purposes, and prototyping S32K3 MCUs and Evaluation Boards.
Useful Resources:
Examples, Trainings, and Support: https://community.nxp.com/community/mbdt
View full article