Undefined reference error using GDFLIB

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

Undefined reference error using GDFLIB

ソリューションへジャンプ
1,538件の閲覧回数
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 解決策
1,421件の閲覧回数
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 返答(返信)
1,422件の閲覧回数
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.

1,421件の閲覧回数
rafael_barbosa
Contributor IV

Dear constantinrazvan.chivu‌,

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

Kind Regards, Rafael

0 件の賞賛
返信
1,421件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

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

Kind regards,

Razvan.

0 件の賞賛
返信
1,421件の閲覧回数
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