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

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

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

261 Views
lizhichaosdut
Contributor III

lizhichaosdut_0-1700479879099.png

attachment  is the Project,thanks!

 

0 Kudos
1 Reply

192 Views
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 Kudos