Error encountered when creating PIL block for a simulink model with Motor control toolbox

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

Error encountered when creating PIL block for a simulink model with Motor control toolbox

978件の閲覧回数
qi_wei
Contributor I

I intended to do PIL for my Simulink model.

I created a template model ForPILCreate_Template.sltx, in which there is only one block MCD_MC9S12ZVMx_Config_Information inside. In this template model, all the configurations that are required for creating the PIL block are implemented.

Then I started the test.

Step 1, I created an empty model based on the template ForPILCreate_Template.sltx, saved it as simple_select_fun_example.slx.

Step2, In the model simple_select_fun_example.slx, I added the subsystem select_fun_subsys which needs to be tested, and also its corresponding inports & outports.

Step3, In the Toolbar, I clicked the button “Build” to start the process of creating a PIL block for model simple_select_fun_example.slx.

Step4, Finally, the build procedure finished. Although a PIL block was created, there are warning messages prompted in the Diagnostic Viewer. For detailed error information, please refer to the attached file “simple_select_fun_example_build_20190705_085636.txt”, see line50~line52 and line56~line62.

Would you please help me to figure out what does the error message mean? And how shall I solve it?

Thank you!

ラベル(1)
1 返信

853件の閲覧回数
paulvlase
NXP Employee
NXP Employee

Hi qi.wei@continental-corporation.com‌,

The toolbox tries to download the application to the board but fails, returning that exception.

When you run PIL simulation uncheck the Enable Download Code after Build option in Configuration Parameters -> Code Generation -> PIL and Download Config, and check the Enable PIL Mode Download option.

pastedImage_5.png

0 件の賞賛