Hello NXP MBDT Team,
I am using "NXP's Model-Based Design Toolbox for S32K1xx Toolbox" version 4.1.0 with MATLAB R2019a.
In my project, I am using model references (model within a model) to manage complexity. While generating code, using one of the example file (flexcan_s32k11x) without any modification, code generation works fine. When I add model reference (Convert flexcan_s32k11x/Rx_Complete/Switch Case Action Subsystem ID 0x3FE/Chart in Model Reference), code generation gives following error:
Error: Index exceeds the number of array elements (0).
After adding "MBD_S32K11x_Config_Information" block to model reference, error goes away. That makes me believe that it is much to add "MBD_S32K11x_Config_Information" block to each model reference at top level. However, in documentation, it suggests otherwise (it seems that adding this block to model is optional)
If set System Target File Manually, above error comes back.
In documentation:
Block Miscellaneous Details:
- Required System Target File is set automatically by adding Target Configuration Block into the model. If no Target Configuration Block in the model then System Target File should be set manually.
Any suggestion or workaround on how to avoid adding "Target Configuration Block" to each model reference? Is it possible?
-Chirag