Model reference: Make variables used but not defined

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

Model reference: Make variables used but not defined

ソリューションへジャンプ
1,261件の閲覧回数
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,234件の閲覧回数
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,235件の閲覧回数
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,229件の閲覧回数
ruihang_wu
Contributor III

I see. Thank you for your help.