Hello!
We are in the phase of starting/learning to use MBDT together with Matlab/Simulink targeting the S32K396 MCU.
Doing simple tests projects with the MBDT we can build and generate code but when we close and try to reopen a project the Matlab environment crashes when the Simulink model file is opened.
The crash occurs when a pop-up window labeled “Updating Dio2 configuration” (Dio2 being my project) and saying “Generating Dio2 configuration”.
Starting with all files but the .mdl and the .mex removed still yields the same crash result, however, if removing the .mex file Simulink model will open but with an incorrect default configuration. Anyway, this way the referred configuration can be changed to the correct on through the hardware settings.
On a MAC with Windows 11 emulation and same tool versions it is not even possible open the same Dio2.mdl standalone in a directory without crashing the same way.
We are three persons working on three different machines (PCs & MAC with Win 11 emul.) experiencing similar problems.
Just in case I had done something foolish in my simple test project I also tested this:
Starting from one of the example projects, s32k37x_s32k39x_dio_ebt, it will open, build and can be restarted again using the Tresos config tool. If I change to DS32 config tool and XS32K396-BGA-DC1 evb in hardware settings it will generate .mex file and build but when closing down and then reopening project it crashes in similar way as described above.
Is there any solution to this?
Case has been reported to Mathworks but they refer to NXP (naturally) hence this post.
We are using:
Windows 10 and 11
Matlab R2025b
Model-Based Design Toolbox for S32K3 1.7.0
S32 Design Studio for S32 Platform v3.6.3
RTD 6.0.0
Thanks in advance.