Matlab 2021a: iMXRT MBDT V1.2 - Crashes with code generation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Matlab 2021a: iMXRT MBDT V1.2 - Crashes with code generation

937件の閲覧回数
Sam_ECU
Contributor IV

Hello @nxa11767, @mariuslucianand 

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:
https://www.nxp.com/docs/en/quick-reference-guide/MBDT-IMXRT-QSG.pdf
https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Getting-started-with-NXP-i-MX-RT1xxx-Simul...

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?

Cheers.

タグ(2)
0 件の賞賛
5 返答(返信)

893件の閲覧回数
Sam_ECU
Contributor IV

As an information point.  It isn't listed in the Quickstart Guide that "MATLAB Support for MinGW-w64 C/C++ Compiler" is required:

Sam_ECU_0-1652267558011.pngSam_ECU_1-1652267600347.png

 

0 件の賞賛

910件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hello, @Sam_ECU 

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

Best regards,

Stefan

0 件の賞賛

903件の閲覧回数
Sam_ECU
Contributor IV

Hello @stefancinipeanu ,

Hello,

Sorry, I mistyped. I'm using V1.3.

I didn't have "MATLAB Support for MinGW-w64 C/C++ Compiler".

The issue is pretty well the same though.

Regards,
Sam

Sam_ECU_0-1652262349385.png

Sam_ECU_1-1652262520407.png

 

 

0 件の賞賛

878件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hello, @Sam_ECU 

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. 

Regards,

Stefan

 

0 件の賞賛

857件の閲覧回数
Sam_ECU
Contributor IV

Hello @stefancinipeanu,

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,

Sam

0 件の賞賛