Product Release Announcement
Automotive Embedded Systems
NXP Model-Based Design Toolbox
for S32M2 – version 1.1.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 S32M2 version 1.1.0. This release supports automatic code generation for S32M2 peripherals and applications prototyping from MATLAB/Simulink for NXP S32M2 Automotive Microprocessors. This 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, Can_Trcv, DPGA, GDU, GPT, LIN, LIN_Trcv, MCL, PWM, MCL, MCU, PORT, QDEC, SPI, UART). In this release, we have also added support for FreeMASTER, AMMCLib, and MATLAB support for the latest versions. The product comes with over 85 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 – Model-Based Design Toolbox.
FlexNet Location:
https://nxp.flexnetoperations.com/control/frse/download?element=6481361
Technical Support:
NXP Model-Based Design Toolbox for S32M2 issues will be tracked through the NXP Model-Based Design Tools Community space.
Release Content:
Automatic C code generation from MATLAB® & Simulink® for NXP S32M2 derivatives:
S32M241
S32M242
S32M243
S32M244
S32M274
S32M276
Support for the following peripherals (MCAL components):
ADC
AE
CAN
CAN_Trcv
DIO
DPGA
GDU
GPT
ISR
LIN
LIN_Trcv
MCL
MCU
MEMORY
PROFILER
PWM
PORT
QDEC
SPI
UART
Profiler in PIL mode
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
Provides Motor Control examples
MBDT for S332M2 1.1.0 provides examples for PMSM sensorless, open loop and closed-loop hall sensors motor control applications, supporting S32 Configuration Tools. Each of them has a detailed description of the hardware setup and an associated FreeMASTER project which can be used for control and data visualization.
Integrates the Automotive Math and Motor Control Library version 1.1.38
All functions in the Automotive Math and Motor Control Functions Library v1.1.38 are supported as blocks for simulation and embedded target code generation.
Integration with FreeMASTER
MBDT for S332M2 1.1.0 delivers 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 Custom Default Project
MBDT for S332M2 1.1.0 provides support for users to create their own custom default project. This could be very useful when having a custom board design – the configuration for it needing to be created only once. After that configuration is saved as a custom default project, it can be used for other models that are developed.
Support for custom board initialization
MBDT for S332M2 1.1.0 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.
Integration with S32 Config Tools version v1.7
Integration with S32 Design Studio
MBDT for S332M2 1.1.0 automatically generates the <model_name>_Config folder, next to the Simulink model location, providing 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. 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
Toolbox provides 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 application execution profiling
Custom Linker File and Startup Code
Users can choose to use custom files for this process, from the Build Options group which can be found in the Target Hardware Resources, as illustrated in the image below.
Examples for every peripheral/function supported
We have added over 60 examples, including:
CDD Blocks (Ae, Dpga, Gdu, Mcl, Qdec)
Communication (Can, Lin, Spi, Uart)
AMMCLib
IO Blocks (Adc, Dio, Pwm)
ISR Blocks (Hardware Interrupt Handler)
MCAL Blocks (Gpt)
Utility Blocks (FreeMASTER, Memory, Profiler, Registers)
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 and Quick Start Guides documents attached.
MATLAB® Integration
Support for MATLAB® versions
R2021a
R2021b
R2022a
R2022b
R2023a
R2023b
R2024a
R2024b
The NXP Model-Based Design Toolbox extends the MATLAB® and Simulink® experience by allowing customers to evaluate and use NXP’s S32M2 MCUs and evaluation board solutions out-of-the-box with:
Target Audience
This release (MBDT for S32M2 1.1.0) is intended for technology demonstration, evaluation purposes, and prototyping of S32M2 MCUs and Evaluation Boards.
Useful Resources
Examples, Trainings, and Support: https://community.nxp.com/community/mbdt
DEMO Motor Control Rapid Prototyping on NXPs S32M2 with MathWorks and the Model-Based Design Toolbox
This training shows how to design and develop motor control algorithms with Simulink® (MathWorks) and the Model-Based Design Toolbox for S32M2.
Presentation introduces NXP’s S32M2 family, an integrated solution for 12V Motor Control and show how to access and configure the MCU peripherals making the Simulink® model hardware-aware and ready to generate, build and deploy the application on the target. The FreeMASTER software tool is used to control and monitor the algorithms running on the S32M2.
First application focuses on a simple scalar control (also known as open-loop control or Volts per Hertz control) algorithm for a permanent magnet synchronous motor (PMSM).
Second application shows how MATLAB and Simulink works together with the MBDT for S32M2 focusing on a workflow of implementing a predictive maintenance motor control application. Toolbox is used to acquire data from an accelerometer mounted on the motor. The motor is spinning at various speeds, and the vibrations are monitored using FreeMASTER. Data is transferred to MATLAB, where is preprocessed and a Support Vector Machine is trained. Then the resulted classifier is transferred to Simulink where together with the Model-Based Design Toolbox for S32M2 code is generated and deployed on the MCU.
For more details about the demo mentioned above, please check this webinar a full demo description.
記事全体を表示