I'm trying to work with MBDToolbox_IMXRT1xxx_V1.2 and Matlab 2021a.
I'm trying to work though some of the examples but as soon as I try to build the code Matlab crashes.
MBDToolbox_S32K1xx works without issue.
I've followed the instructions below:
To try and resolve the issue, I've:
- Uninstalled and reinstalled Matlab
- Uninstalled and reinstalled the toolbox
- Change the directory for the toolbox.
Attached are the crash reports and images of my system+settings.
How can I resolve the issue?
I was not able to replicate this issue on my side. Can you check if you have installed the Embedded Coder Support Package for ARM Cortex-M Processors and MATLAB Support for MinGW-w64 C/C++ Compiler?
Also, you can try to download the latest NXP MBDToolbox for iMXRT V1.3
Sorry for the delayed response. I have looked into this issue deeper and It looks like a MATLAB bug. Some MATLAB users had encountered similar problems, described in this MathWorks thread (https://www.mathworks.com/matlabcentral/answers/1699530-simulink-crashing-suddenly-from-yesterday?s_...).
What I suggest to do is to check your MATLAB R2021a updates and to update the existing installation to the latest one, which is R2021a Update 6. You can do this by clicking the bell button on the up right side pane of MATLAB. (https://www.mathworks.com/help/matlab/matlab_env/check-for-software-updates.html#:~:text=On%20the%20...).
After the update is installed, restart MATLAB and run again the mbd_imxrt_path.m script.
Let me know if it worked. Also, you could try to install the IMXRT toolbox on R2021b and give it a try.
Before trialling the iMXRT-Toolbox I also updated Matlab. I've reinstalled my older version of Matlab and the Toolbox is working fine.
It does appear to be a bug in Matlab 2021a.
Thanks for the help,