Can not find Standard S32DS C Linker Setting

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

Can not find Standard S32DS C Linker Setting

1,590 次查看
port
Contributor I

Hi, 

I am trying to add library file. 

According to 'HOWTO_Add_a_static_library_file_into_S32DS_GCC_project' doc

I should add lib in 'S32DS C  Linker' like below

port_0-1610672088678.png

 

However, I cannot find tat setting category like below

I am using 2.1 ver for Power Architecture.

How can I find that

port_1-1610672202037.png

 

 

 

 

 

0 项奖励
回复
5 回复数

501 次查看
NXP2
Contributor I

Hello, I follow the normal methods of generating and adding static libraries. When I added static libraries, the following error appeared. May I ask what caused it?

Building target: BMS_2_2.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "BMS_2_2.elf" "@BMS_2_2.args"
arm-none-eabi-gcc.exe: error: : No such file or directory
make: *** [makefile:86: BMS_2_2.elf] Error 1
"make -j16 all" terminated with exit code 2. Build might be incomplete.

0 项奖励
回复

483 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not sure about your scenario, did you created new project (File -> New S32DS Project) or you added some library into existing one and compilation stops working? Can you please share more details? 

0 项奖励
回复

1,584 次查看
stanish
NXP Employee
NXP Employee

Hi Port,

the missing Linker project settings indicate this is a library project instead of an exectutable S32DS project.

The screenshot depicted in HOWTO document refers to the Executable project which adds a library.

Hope it helps.

Stan

 

 

0 项奖励
回复

1,559 次查看
port
Contributor I

Thank you for your answer. I am still trying

0 项奖励
回复

1,557 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

basically - there are two type of S32DS projects: Library (after build you get .a library archive file) and executable project (you get .elf executable file).

in library project there is no linker settings. Library is just set of functions.

Linker settings is necessary for executable (.elf) project. 

 

Hope it helps. 

 

0 项奖励
回复