Product Release Announcement
Automotive Processing
NXP Model-Based Design Toolbox
for S32M2xx – version 1.0.0 RTM
The Automotive Processing, Model-Based Design Tools Team at NXP Semiconductors, is pleased to announce the release of the Model-Based Design Toolbox for S32M2xx version 1.0.0. This release supports automatic code generation for S32M2xx peripherals and applications prototyping from MATLAB/Simulink for NXP S32M2xx Automotive Microprocessors. This new product adds support for S32M41, S32M242, S32M43, S32M244, S32M274, S32M276 MCUs and part of their peripherals, based on RTD MCAL components (ADC, AE, DIO, CAN, DPGA, GDU, GPT, MCL, PWM, MCU, PORT, QDEC, UART). In this release, we have also added support for FreeMASTER, AMMCLib, and MATLAB support for the latest versions. The product comes with over 60 examples, covering all supported peripherals, and Simulink simulation modes Software-in-the-Loop, Processor-in-the-Loop, and External Mode.
Target audience:
This product is part of the Automotive SW – S32M2 Standard Software Package.
FlexNet Location:
https://nxp.flexnetoperations.com/control/frse/download?element=3785898
Technical Support:
NXP Model-Based Design Toolbox for S32M2xx issues will be tracked through the NXP Model-Based Design Tools Community space.
https://community.nxp.com/community/mbdt
Release Content
Automatic C code generation from MATLAB® for NXP S32M2xx derivatives:
S32M241
S32M242
S32M243
S32M244
S32M274
S32M276
Support for the following peripherals (MCAL components):
ADC
AE
DIO
CAN
DPGA
GDU
GPT
MCL
PWM
MCU
PORT
QDEC
UART
Provides 2 modes of operation:
Basic – using pre-configured configurations for peripherals; useful for quick hardware evaluation and testing
Advanced – using S32 Configuration Tool or EB Tresos to configure peripherals/pins/clocks
Integrates the Automotive Math and Motor Control Library version 1.1.34:
All functions in the Automotive Math and Motor Control Functions Library v1.1.34 are supported as blocks for simulation and embedded target code generation.
Integration with FreeMASTER
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.
Support for MATLAB® versions
R2021a
R2021b
R2022a
R2022b
R2023a
R2023b
Support for custom board initialization
Toolbox generates the components’ peripherals initialization function calls as configured in the Board Initialization window, which can be customized to each Simulink model. This feature allows users to set a custom order for the components initialization, the insertion of the Custom code sequences, or share the custom initialization with multiple Simulink models via the Export and Import functionality.
Support for custom default project configuration
The toolbox provides support for users to create their custom default project configurations. This could be very useful when having a custom board design – only needing to create the hardware configuration once. After it is saved as a custom default project, it can be used for every model that is being developed.
Integration with S32 Config Tools version v1.7:
Integration with S32 Design Studio
The toolbox automatically generates the <model_name>_Config folder, next to the Simulink model location, providing the user the opportunity to easily import the generated code from Simulink into S32 Design Studio. Each time the code is generated, the <model_name>_Config folder is updated with the new changes. The toolbox also provides a mechanism to launch an S32 Design Studio instance, with the imported generated code project in the Project Explorer tab from S32DS.
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)
External mode
Support for profiling in PIL mode:
Examples for every peripheral/function supported:
We have added over 60 examples, including:
CDD Blocks (Ae, Dpga, Gdu, Mcl, Qdec)
Communication (Can, Uart)
AMMCLib
IO Blocks (Adc, Dio, Pwm)
ISR Blocks (Hardware Interrupt Handler)
MCAL Blocks (Gpt)
Utility Blocks (FreeMASTER)
Software-in-the-Loop / Processor-in-the-Loop / External mode
For more details, features, and how to use the new functionalities, please refer to the Release Notes document attached.
MATLAB® Integration
The NXP Model-Based Design Toolbox extends the MATLAB® and Simulink® experience by allowing customers to evaluate and use NXP’s S32M2xx MCUs and evaluation board solutions out-of-the-box with:
Model-Based Design Toolbox for S32M2xx version 1.0.0 is fully integrated with MATLAB® environment in terms of installation:
Target Audience
This release (1.0.0) is intended for technology demonstration, evaluation purposes, and prototyping of S32M2xx MCUs and Evaluation Boards.
Useful Resources
Examples, Training, and Support: https://community.nxp.com/community/mbdt
View full article