Hello,
I am using the Simulink (MATLAB 2018B) with the Model Based Design Toolbox 3.0.0 for MPC5744P target.
I can't generate code due to the following error:
### Build procedure for model: 'ERROR_Example' aborted due to an error.
Failure in mbd_mpc574x_make_rtw: Reference to non-existent field 'info'.Reference to non-existent field 'info'.Component:Simulink | Category:Block diagram error
Please see the example model attached.
Really simple example.
Can you support me why there is this error?
Regards, Rafael
已解决! 转到解答。
Hi rafael.barbosa@chassisbrakes.com,
I can reproduce your error on my side too. It seems to be an exception inside Simulink.
Because the error doesn't say too much about what it caused and I don't have access to the Simulink code to debug it, I can only give you right now a workaround to be able to build the model.
The workaround is to go to Configuration Parameters > Code Generation > Report and uncheck the Static code metrics option.
The static code metrics report is not generated anyway because Simulink fails to parse the compiler's C standard header files, like stdint.h.
I hope this helps you,
Paul
Hello,
I also tried to install the Model Based Design Toolbox 3.2.0 and the problem persists.
Can you support me with the blocking point?
Kind Regards, Rafael
Hi rafael.barbosa@chassisbrakes.com,
I can reproduce your error on my side too. It seems to be an exception inside Simulink.
Because the error doesn't say too much about what it caused and I don't have access to the Simulink code to debug it, I can only give you right now a workaround to be able to build the model.
The workaround is to go to Configuration Parameters > Code Generation > Report and uncheck the Static code metrics option.
The static code metrics report is not generated anyway because Simulink fails to parse the compiler's C standard header files, like stdint.h.
I hope this helps you,
Paul
If this is a Simulink issue, please make sure our colleagues at MathWorks are aware. (brianmckay)
Best regards,
Daniel