What is wrong with S32D compiling AUTOSAR_OS with DIAB compiler

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

What is wrong with S32D compiling AUTOSAR_OS with DIAB compiler

1,613件の閲覧回数
lubo_NEW
Contributor III

The AUTOSAR_OS file compiled in the S32DS project is about to be generated
There's an error
dld.exe: error: -Xstop-on-redeclaration is on. Linking aborted111.png

0 件の賞賛
返信
4 返答(返信)

1,581件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Ah, sorry, I haven't checked thoroughly. Looks like VTABLE and _start are redefined in your project. Cause these objects are already defined in OS code, you need to remove the code created by S32DS (./src/vector.c and ./Project_Setting/Startup_Codes/startup.c)

0 件の賞賛
返信

1,576件の閲覧回数
lubo_NEW
Contributor III

I'm sorry. I looked at it again. It's a double definition

0 件の賞賛
返信

1,603件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

This option should not be appeared in the Linker options list. See the linking option in compiler_options.mak file, which is marked with ldopt keyword:

nxf48630_0-1614061009601.png

So you need to modify the linking option list in your S32DS project in order to match with the list in the sample application.

0 件の賞賛
返信

1,599件の閲覧回数
lubo_NEW
Contributor III

Thank you for your reply. After reading the makefile for a long time, I am a little confused.
Could you please give me more details about how to match it in S32DS

0 件の賞賛
返信