Getting error in Model Based Design Toolbox for S32K series with MATLAB 2013b

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Getting error in Model Based Design Toolbox for S32K series with MATLAB 2013b

跳至解决方案
1,144 次查看
hemantsindkar
Contributor III

Hi,

I am using Model Based Design Toolbox for S32K series with MATLAB 2013b. When I try to build sample "program mbd_s32k14_examples", I am getting error. 

pastedImage_3.png

How to fix this error?

Thanks

Hemant

1 解答
1,000 次查看
hemantsindkar
Contributor III

Hi Daniel,

Yes I observed after fixing one error other error comes in 2013b. So I updated my MATLAB with 2017a. Now it's working fine.

Thanks

Hemant

在原帖中查看解决方案

2 回复数
1,000 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi hemantsindkar‌,

The Model Based Design Toolbox for S32K has been tested with Matlab releases starting with 2015b to 2017a

We usually support the last 4 Matlab releases - since Mathworks is constantly changing code generation with various improvements that sometimes breaks the backward compatibility.

Nonetheless, in case you can't update to a newer version there is a way to make the 2013b release to work with S32K.

In this particular case  the problem is cause by the Code Replacement Library that is set to NONE. All you have to do is to open the Simulink model and go to Model Configuration Parameters -> Code Generation -> Interface and there on the Code Replacement Library options to choose an ARM Cortex type.

Capture.JPG

This will allow you to build the models.

Anyhow - please be aware that you might run into other potential issues (we will try to support you as much as we can) by staying with Matlab 2013b release. 

Hope this helps!

Daniel

0 项奖励
回复
1,001 次查看
hemantsindkar
Contributor III

Hi Daniel,

Yes I observed after fixing one error other error comes in 2013b. So I updated my MATLAB with 2017a. Now it's working fine.

Thanks

Hemant