Model Referencing in NxP_MPC57x Toolbox

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

Model Referencing in NxP_MPC57x Toolbox

1,737 次查看
abhishek_kumar1
Contributor IV

Dear MBD Team

I am using NXP_MBDToolbox_MPC57xx(v 3.2.0).

I am not able to use reference model with this toolbox. 

1. Is it possible to use MODEL Referencing?

2. If yes, how?

I "Propogate Configuration to reference models". 

I get error : Error: no configuration block for MPC57xx! Please add this block first.

How can we have 2 configuration blocks? 

Please find attached example. 

Best Regards,

Abhishek KUMAR 

0 项奖励
回复
4 回复数

1,630 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @abhishek_kumar1 ,

I was able to reproduce the error you have reported on my side, so I have opened an internal ticket for that. 

Util we investigate what is causing this behavior, I've found a couple of workarounds for this. 

1. You can remove the Profiler0 output from the profiler block. by unchecking the "Profile Output" option in the block. This will no longer provide an output but you will be able to find the execution time in the FreeMaster project by typing the profile_buffer[0]

mariuslucianand_0-1626693432111.png

2. Treating the Subsystem of the referenced model as atomic subsystem. (Right clock on it and check the "treat as atomic unit")

mariuslucianand_1-1626693540756.png

I have also removed the Reference configuration from the top model, but this was required only for me to be able to generate the code.

Hope this helps,

Marius 

 

 

 

1,699 次查看
abhishek_kumar1
Contributor IV

Dear @mariuslucianand 

Thank you for the reply. 

When I build for the firrst time, everything works. 

When I cange the refrence Model, it does not rebuild. (error attched with model).

Steps I Try

1. Update the Models 

2. Clean the build environment (delete all files, folders from previous build)

3. Propogate the settings. 

 

Could you please have a look?

Best regards,

Abhishek KUMAR

0 项奖励
回复

1,717 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @abhishek_kumar1,

Nice to see you again in our community!

For the reference models on the MPC57xx, our toolbox's limitation is that you have to add our config block to each of the referenced models. The "Propagate Configuration to reference models" will sync the settings of all the reference models. Please see the multi_refs_top_filter_mpc57xx.mdl example in our toolbox.

Hope this helps,

Marius

 

 

1,674 次查看
abhishek_kumar1
Contributor IV

Dear @mariuslucianand 

Thank you for the reply. 

When I build for the first time, everything works. 

When I change the reference Model, it does not rebuild. (error attached with model).

Steps I Try

1. Update the Models 

2. Clean the build environment (delete all files, folders from previous build)

3. Propagate the settings. 

 

Could you please have a look?

Best regards,

Abhishek KUMAR

0 项奖励
回复