Dear community !
I running into the problem when generate the code for my model (the error log attached in this post : Usage_StateFlow_NxpMBD_20210729_143008).
My model is including : Stateflow + UART NXP MBD.
The target hardware : NXPS32K118 Development Kit.
The matlab version : 2021b.
NXP ModelToobox version : 4.2.0
the model setting :
i have no idea with the error, i can run SiL with this model without any error.
Thanks a lot for support.
Viet
Solved! Go to Solution.
Hello @viet
From the log you have attached I found that at some point you have a file which is shadowed by another file. Basically you have a model with the same name as another model and this might be causing your issue. Please try unique names for the reference models or the ones you have in path.
Warning:The file containing block diagram 'stateflow_uart' is shadowed by a file of the same name higher on the MATLAB path. This can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink documentation.
Regards,
Marius
thanks the issue was solved
Hello @viet
From the log you have attached I found that at some point you have a file which is shadowed by another file. Basically you have a model with the same name as another model and this might be causing your issue. Please try unique names for the reference models or the ones you have in path.
Warning:The file containing block diagram 'stateflow_uart' is shadowed by a file of the same name higher on the MATLAB path. This can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink documentation.
Regards,
Marius