Model reference: Make variables used but not defined

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Model reference: Make variables used but not defined

Jump to solution
1,326 Views
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 Kudos
Reply
1 Solution
1,299 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,300 Views
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 Kudos
Reply
1,294 Views
ruihang_wu
Contributor III

I see. Thank you for your help.