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?
已解决! 转到解答。
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.
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.
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!
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.