.elf not found

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

.elf not found

3,993 次查看
lixu
Contributor II

Hi,

I am using S32DS working on MPC5748G.

The same project I was debugging, the first time it successfully, but the second time it showed :    

make: *** [makefile:80: lwip_uart_.elf] 

D:\S32_DS\workspaceS32DS.power.21\lwip_uart_\Debug_FLASH\lwip_uart_.elf not found

Indeed my .elf files have disappeared under this path. 

Could you tell me how to solve this problem, please.

Thanks and best regards,

Li Xu

0 项奖励
回复
10 回复数

3,958 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

are you able to recompile the project? If yes, then simply compile it and the elf is automatically generated by default.

best regards,

Peter

0 项奖励
回复

3,950 次查看
lixu
Contributor II
 
0 项奖励
回复

3,954 次查看
lixu
Contributor II

compile failed. It shows:

make: *** [makefile:80: lwip1.elf] Error 1    lwip1    C/C++Problem

D:\S32_DS\workspaceS32DS.power.21\lwip1\Debug_FLASH\lwip1.elf not found

 

0 项奖励
回复

3,945 次查看
petervlna
NXP TechSupport
NXP TechSupport

Its hard to say.

Could you share whole output from console? So I can see where is the issue?

best regards,

Peter

0 项奖励
回复

3,941 次查看
lixu
Contributor II

it shows:

17:58:23 **** Incremental Build of configuration Debug_FLASH for project lwip1 ****
make -j8 all
Building target: lwip1.elf
Invoking: Standard S32DS C Linker
powerpc-eabivle-gcc -o "lwip1.elf" "@lwip1.args"
./SDK/middleware/tcpip/tcpip_stack/apps/udpecho/udpecho.o:(.bss.buffer+0x0): multiple definition of `buffer'
./SDK/middleware/tcpip/tcpip_stack/apps/secure_socket/secure_socket.o:(.bss.buffer+0x0): first defined here
d:/s32_ds/s32ds/build_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: Warning: size of symbol `buffer' changed from 80 in ./SDK/middleware/tcpip/tcpip_stack/apps/secure_socket/secure_socket.o to 256 in ./SDK/middleware/tcpip/tcpip_stack/apps/udpecho/udpecho.o
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:80: lwip1.elf] Error 1

17:58:24 Build Finished (took 1s.273ms)

0 项奖励
回复

3,895 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

your project can't be compiled because of linker error(s). You need to fix the multiple "buffer" definition first. 

 

It is your custom project or example? 

 

Jiri 

0 项奖励
回复

3,891 次查看
lixu
Contributor II

Hi,

Yes, that's the question.

I always thought it was an error during "debug", so I always thought it had nothing to do with the code. But it was actually an error during "building".

Thank you very much for your reminding.

best regards,

Li Xu

0 项奖励
回复

3,975 次查看
lixu
Contributor II

1

0 项奖励
回复

3,979 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

elf file is a product of compilation. So I guess you cleared your build and then elf is deleted.

Simply compile the project with elf as output file set.

You can have a look on out HOW TO guides:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32DS-list-of-HOWTOs/ta-p/1113475

 

best regards,

Peter

 

0 项奖励
回复

3,972 次查看
lixu
Contributor II

Hi,

I haven't found a solution in the above website.

Please explain it  again.

 

best regards,

Li Xu

0 项奖励
回复