Failure in mbd_s32k_copy_required_files: Index exceeds the number of array elements (0)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Failure in mbd_s32k_copy_required_files: Index exceeds the number of array elements (0)

ソリューションへジャンプ
1,756件の閲覧回数
viet
Contributor II

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

viet_0-1627547962869.png

the model setting : 

viet_1-1627548008000.png


i have no idea with the error, i can run SiL with this model without any error. 

Thanks a lot for support.
Viet

0 件の賞賛
返信
1 解決策
1,736件の閲覧回数
mariuslucianand
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,711件の閲覧回数
viet
Contributor II

thanks the issue was solved

0 件の賞賛
返信
1,737件の閲覧回数
mariuslucianand
NXP Employee
NXP Employee

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

0 件の賞賛
返信