Hi @nofake_drstrang ,
On some of our toolboxes, we placed the required settings (target mcu, toolchain flags, etc.) for building the model inside the main config block. As a result, you had to add the main config block inside the referenced models otherwise, the build would fail because it can't retrieve these settings.
On S12Z, these settings are placed in the model configuration set. But another functionality of the main config block is to help you set up your model.
To build the model you need to select the system target file that corresponds to your mcu family, from the Model Configuration dialog (Ctrl+E) -> Code Generation panel. You can add the main config block, and it will do that automatically. Or you can skip adding this block and select the desired system target file by hand.
In your case it works with and without because the correct system target file is already selected in the model configuration set.
You can add the main config block only to set up the model and remove it, and your model will still build successfully.
The referenced models are intentionally supported by our toolbox, but we didn't test referenced models with referenced config set.
Regards,
Paul