How to solve the link Promble of a Port from CodeWarrior2.1 to S32DS PA with SPC5604B?

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

How to solve the link Promble of a Port from CodeWarrior2.1 to S32DS PA with SPC5604B?

271 次查看
lizhichaosdut
Contributor III

lizhichaosdut_0-1700479879099.png

attachment  is the Project,thanks!

 

0 项奖励
1 回复

202 次查看
stanish
NXP Employee
NXP Employee

Hello,

Thank you for your question.

The linking problem is related to the included libraries which were compiled in CodeWarrior. The object code is not compatible between CodeWarrior (mwcceppc) and S32DS (gcc) compiler and therefore the linking fail.

From the listing I can see there are not just standard libraries (Runtime.*.a, MSL_C.*.c) but also some custom libs (libbsw.a)

I'd recommend you to get rid of standard libs and replace them with EWL libs compiled by S32DS gcc compiler (c:\NXP\S32DS_Power_v2.1\S32DS\build_tools\e200_ewl2\lib\*.a)

and also rebuild the custom libraries in S32DS (gcc) compiler.

Then you should be able to build/link your project correctly in S32DS.

 

Hope it helps.

Stan

0 项奖励