Simulink build error with example code, MC9s12zvm

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

Simulink build error with example code, MC9s12zvm

ソリューションへジャンプ
2,206件の閲覧回数
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 解決策
2,040件の閲覧回数
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 返答(返信)
2,041件の閲覧回数
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 件の賞賛
返信
2,040件の閲覧回数
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 件の賞賛
返信
2,041件の閲覧回数
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 件の賞賛
返信