Undefined reference error using GDFLIB

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

Undefined reference error using GDFLIB

Jump to solution
996 Views
rafael_barbosa
Contributor IV

Hello,

I am using the MBD toolbox 3.0.0 and the target micro-controller is MPC5744P.

I can generate code using GDFLIB blocks (thanks Reference to non-existent field 'info' using GFLIB block ), however I can't debug it (neither flash it in the micro) using S32 Design Studio.

I am using the block GDFLIB_FilterMA_FLT in Simulink. 

After code generation and importing the project in S32 Design Studio, I am getting the following error when building project:

pastedImage_7.png

Can you support me with this problem?

Please see the example model attached.

paulvlase‌ 

mariuslucianandrei

1 Solution
879 Views
constantinrazva
NXP Employee
NXP Employee

Hello rafael.barbosa@chassisbrakes.com ,

This issue is due to missing library from linker arguments. It is an older issue that was fixed in the more recent releases, but the workaround is simply: you right click on the project that you have imported into S32 Design Studio, go to C/C++ Build -> Settings -> Standard S32DS C Linker -> Libraries, and add the following (from the green + signs), as in the picture below:

":MPC574xP_AMMCLIB.a"   -- add this to Libraries

"{TOOLBOX_DIR}\mbdtbx_mpc574x\AMMCLIB_MPC574xP\lib\s32ds_ppc"   -- add this to Library search path

pastedImage_1.png

This should do the trick - let me know if you have further issues with it.

Kind regards,

Razvan.

View solution in original post

4 Replies
880 Views
constantinrazva
NXP Employee
NXP Employee

Hello rafael.barbosa@chassisbrakes.com ,

This issue is due to missing library from linker arguments. It is an older issue that was fixed in the more recent releases, but the workaround is simply: you right click on the project that you have imported into S32 Design Studio, go to C/C++ Build -> Settings -> Standard S32DS C Linker -> Libraries, and add the following (from the green + signs), as in the picture below:

":MPC574xP_AMMCLIB.a"   -- add this to Libraries

"{TOOLBOX_DIR}\mbdtbx_mpc574x\AMMCLIB_MPC574xP\lib\s32ds_ppc"   -- add this to Library search path

pastedImage_1.png

This should do the trick - let me know if you have further issues with it.

Kind regards,

Razvan.

879 Views
rafael_barbosa
Contributor IV

Dear constantinrazvan.chivu‌,

Thank you very much for the support, it is working now.

Kind Regards, Rafael

0 Kudos
879 Views
constantinrazva
NXP Employee
NXP Employee

Glad to hear that rafael.barbosa@chassisbrakes.com !

Kind regards,

Razvan.

0 Kudos
879 Views
mariuslucianand
NXP Employee
NXP Employee

Hello rafael.barbosa@chassisbrakes.com‌,

For this question, constantinrazvan.chivu‌ can help you with that :smileyhappy:.

Thank you, Razvan!

Marius