I am trying to use a Simulink configuration reference between multiple models so that they use the same configuration and mex file. I am converting a working configuration into a configuration reference, selecting it in another model file, and activating the configuration reference. However, I get an "error in mask initialization" on a FlexCAN block and the following error messages:
Failure in getHardwareName(0) : Dot indexing is not supported for variables of this type.
Failure in get_mex_settings(0) : Output argument "mexFile" (and possibly others) not assigned a value in the execution with "mbd_imxrt.utils.get_mex_config_name" function.
Failure in get_peripheral_mex_settings(0) : Dot indexing is not supported for variables of this type.
Failure in create_func_param(0) : Output argument "periph_settings" (and possibly others) not assigned a value in the execution with "mbd_imxrt.utils.get_peripheral_mex_settings" function.
I am working with an RT1176 processor. I can see in my hardware settings that I am pointing at the mex file I want to use. Does MBDT support configuration references?
已解决! 转到解答。
Hello,
Unfortunately, the IMXRT toolbox do not support reference configurations.
Best regards,
Sorin Bancila
Hello,
Add the MBDT Configuration Block (the main one for the RT1176) to your top-level model, even though you are using a Configuration Reference. This should properly initialize the environment and provide the data the FlexCAN block needs. Ensure the Configuration Reference is Active in the model containing the FlexCAN block.