Undefined reference error using GDFLIB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Undefined reference error using GDFLIB

跳至解决方案
1,032 次查看
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 解答
915 次查看
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.

在原帖中查看解决方案

4 回复数
916 次查看
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.

915 次查看
rafael_barbosa
Contributor IV

Dear constantinrazvan.chivu‌,

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

Kind Regards, Rafael

0 项奖励
915 次查看
constantinrazva
NXP Employee
NXP Employee

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

Kind regards,

Razvan.

0 项奖励
915 次查看
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