What is wrong with S32D compiling AUTOSAR_OS with DIAB compiler

cancel
Showing results for 
Search instead for 
Did you mean: 

What is wrong with S32D compiling AUTOSAR_OS with DIAB compiler

62 Views
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 Kudos
4 Replies

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

26 Views
lubo_NEW
Contributor III

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

0 Kudos

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

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