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
902 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
1 Solution
875 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
2 Replies
876 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
870 Views
ruihang_wu
Contributor III

I see. Thank you for your help.