Model reference: Make variables used but not defined

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

Model reference: Make variables used but not defined

跳至解决方案
1,839 次查看
ruihang_wu
Contributor III

I am trying to use model references in my project. If I compile the model without any references it works fine. But if I convert a subsystem to a model reference, error occur when compiling.

ruihang_wu_0-1619115083334.png


I have double checked the system target file and the template makefile on the model reference are the same as the main project file. Is there anything I need to change when creating a model reference?

 

I have attached a simple test model where the error occurs during build

0 项奖励
回复
1 解答
1,812 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ruihang_wu,

I am sorry for my delayed answer. Unfortunately, when it comes to reference models, the limitation we have on the S32K toolbox is that our main Configuration Block must also be in the reference models, even the referenced block has no NXP block in it. This should not affect the simulation.

Hope this helps,

Marius

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,813 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ruihang_wu,

I am sorry for my delayed answer. Unfortunately, when it comes to reference models, the limitation we have on the S32K toolbox is that our main Configuration Block must also be in the reference models, even the referenced block has no NXP block in it. This should not affect the simulation.

Hope this helps,

Marius

0 项奖励
回复
1,807 次查看
ruihang_wu
Contributor III

I see. Thank you for your help.