Simulink build error with example code, MC9s12zvm

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

Simulink build error with example code, MC9s12zvm

跳至解决方案
1,139 次查看
1123600177
Contributor I

Hi:

     I want to use a MC9s12zvm MCU for motor control with MBD approach.  First, MCToolbox and mcd_s12z_path.m are loaded into matlab. Then the freescale CW MCU v11.1 is installed. I also added the enviroment variable : CW_TOOL = D:\Freescale\"CW MCU v11.1". However, when the examples model, adc.mdl, is building, the build error has happended. ‘### Build procedure for model: 'adc' aborted due to an error.’ is found in Diagnostic Viewer.  all diagnostic message is added to the appendix. Thus, how to solve this problem? or this model has been built successfully?.  Besides, NXP Toolbox is found in Simulin Library Browser. So, how to creat a toolbox?

pastedImage_1.png

pastedImage_2.png

标签 (1)
标记 (2)
0 项奖励
1 解答
973 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 1123600177@qq.com‌,

As the S12ZVM toolbox is an older toolbox, we haven't update it to newer CW versions. The one that was tested on was CW v10.6. The errors might be due to that - could you share the model you are trying to build?

Another thing I'd like to mention - could you set the CW_TOOL to D:\Freescale\CW MCU v11.1 instead of D:\Freescale\"CW MCU v11.1" ? (without the "").

Also, could you send us the output of the following command (ran in MATLAB terminal) ?

ver

Kind regards,

Razvan.

在原帖中查看解决方案

0 项奖励
3 回复数
974 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 1123600177@qq.com‌,

As the S12ZVM toolbox is an older toolbox, we haven't update it to newer CW versions. The one that was tested on was CW v10.6. The errors might be due to that - could you share the model you are trying to build?

Another thing I'd like to mention - could you set the CW_TOOL to D:\Freescale\CW MCU v11.1 instead of D:\Freescale\"CW MCU v11.1" ? (without the "").

Also, could you send us the output of the following command (ran in MATLAB terminal) ?

ver

Kind regards,

Razvan.

0 项奖励
973 次查看
1123600177
Contributor I

Hello@Constantin Razvan Chivu
         When the  D:\Freescale\CW MCU v11.1 instead of D:\Freescale\"CW MCU v11.1", the model has been build completed successfully.Thanks You!

0 项奖励
974 次查看
constantinrazva
NXP Employee
NXP Employee

Hello 1123600177@qq.com‌,

Glad to hear that! Just as a disclaimer - with this version of CW there might be some blocks that don't compile - please let us know if you encounter such issues and we'll see if we can provide a fix. I also know that CW v10.6 is no longer available to download, so I understand why you can't use it.

Kind regards,

Razvan.

0 项奖励