Reference to non-existent field 'info' using GFLIB block

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

Reference to non-existent field 'info' using GFLIB block

Jump to solution
3,381 Views
rafael_barbosa
Contributor IV

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

1 Solution
3,169 Views
paulvlase
NXP Employee
NXP Employee

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.

pastedImage_3.png

The static code metrics report is not generated anyway because Simulink fails to parse the compiler's C standard header files, like stdint.h.

pastedImage_5.png

I hope this helps you,

Paul

View solution in original post

6 Replies
3,169 Views
rafael_barbosa
Contributor IV

Hello,

I also tried to install the Model Based Design Toolbox 3.2.0 and the problem persists.

mariuslucianandrei

constantinrazvan.chivu

Can you support me with the blocking point?

Kind Regards, Rafael

0 Kudos
3,169 Views
mariuslucianand
NXP Employee
NXP Employee

paulvlase‌, can you comment on this?

Thank you,

Marius

0 Kudos
3,169 Views
rafael_barbosa
Contributor IV

Hi,

Do you have some updating on this topic?

It is quite urgent from my side.

Kind Regards, Rafael

0 Kudos
3,170 Views
paulvlase
NXP Employee
NXP Employee

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.

pastedImage_3.png

The static code metrics report is not generated anyway because Simulink fails to parse the compiler's C standard header files, like stdint.h.

pastedImage_5.png

I hope this helps you,

Paul

3,169 Views
dumitru-daniel_
NXP Employee
NXP Employee

paulvlase‌,

If this is a Simulink issue, please make sure our colleagues at MathWorks are aware. (brianmckay)

Best regards,

Daniel 

0 Kudos
3,169 Views
rafael_barbosa
Contributor IV

Hello Paul,

It worked fine.

This workaround is enough for me.

Thank you very much for the support!

Kind Regards, Rafael

0 Kudos