MBDT Configuration Reference

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

MBDT Configuration Reference

Jump to solution
639 Views
SecularC
Contributor I

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? 

0 Kudos
Reply
1 Solution
421 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

Unfortunately, the IMXRT toolbox do not support reference configurations. 

 

Best regards,

Sorin Bancila

View solution in original post

0 Kudos
Reply
2 Replies
414 Views
freya652rey
Contributor I

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.

0 Kudos
Reply
422 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

Unfortunately, the IMXRT toolbox do not support reference configurations. 

 

Best regards,

Sorin Bancila

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2195149%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMBDT%20Configuration%20Reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195149%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20use%20a%20Simulink%20configuration%20reference%20between%20multiple%20models%20so%20that%20they%20use%20the%20same%20configuration%20and%20mex%20file.%20I%20am%20converting%20a%20working%20configuration%20into%20a%20configuration%20reference%2C%20selecting%20it%20in%20another%20model%20file%2C%20and%20activating%20the%20configuration%20reference.%20However%2C%20I%20get%20an%20%22error%20in%20mask%20initialization%22%20on%20a%20FlexCAN%20block%20and%20the%20following%20error%20messages%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFailure%20in%20getHardwareName(0)%20%3A%20Dot%20indexing%20is%20not%20supported%20for%20variables%20of%20this%20type.%3CBR%20%2F%3EFailure%20in%20get_mex_settings(0)%20%3A%20Output%20argument%20%22mexFile%22%20(and%20possibly%20others)%20not%20assigned%20a%20value%20in%20the%20execution%20with%20%22mbd_imxrt.utils.get_mex_config_name%22%20function.%3CBR%20%2F%3EFailure%20in%20get_peripheral_mex_settings(0)%20%3A%20Dot%20indexing%20is%20not%20supported%20for%20variables%20of%20this%20type.%3CBR%20%2F%3EFailure%20in%20create_func_param(0)%20%3A%20Output%20argument%20%22periph_settings%22%20(and%20possibly%20others)%20not%20assigned%20a%20value%20in%20the%20execution%20with%20%22mbd_imxrt.utils.get_peripheral_mex_settings%22%20function.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20am%20working%20with%20an%20RT1176%20processor.%20I%20can%20see%20in%20my%20hardware%20settings%20that%20I%20am%20pointing%20at%20the%20mex%20file%20I%20want%20to%20use.%20Does%20MBDT%20support%20configuration%20references%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MBDT%20Configuration%20Reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EAdd%20the%20MBDT%20Configuration%20Block%20(the%20main%20one%20for%20the%20RT1176)%20to%20your%20top-level%20model%2C%20even%20though%20you%20are%20using%20a%20Configuration%20Reference.%20This%20should%20properly%20initialize%20the%20environment%20and%20provide%20the%20data%20the%20FlexCAN%20block%20needs.%26nbsp%3BEnsure%20the%20Configuration%20Reference%20is%20Active%20in%20the%20model%20containing%20the%20FlexCAN%20block.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202625%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MBDT%20Configuration%20Reference%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202625%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20the%20IMXRT%20toolbox%20do%20not%20support%20reference%20configurations.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESorin%20Bancila%3C%2FP%3E%3C%2FLINGO-BODY%3E