I can't building with ld error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi.

   

I have problem. FX3 firmware are not built by EZUSB with LD error.

   

curiously, I have succeed to build yesterday. but now I can't, I don't know what I changed my project.

   

Please let me know the problem. 

   

This is console log.

   

 

   

Building target: sdmap_v2.0.elf
Invoking: Cross ARM C Linker
arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g3 -T "/opt/Cypress/cyfx3sdk/fw_build/fx3_fw/fx3.ld" -nostartfiles -Xlinker --gc-sections -L"/opt/Cypress/cyfx3sdk/fw_lib/1_3_3/fx3_debug" -Wl,-Map,"sdmap_v2.0.map" -Wl,-d -Wl,--no-wchar-size-warning -Wl,--entry,CyU3PFirmwareEntry -o "sdmap_v2.0.elf"  ./fatfs/cyfx3s_blkdrvr.o ./fatfs/ff.o ./fatfs/sdmap_fatfs.o  ./sdmap_gpif.o ./sdmap_gpio.o ./sdmap_main.o ./sdmap_usb.o ./tpi_queue.o ./usb_descriptor.o   -lcyu3sport -lcyu3lpp -lcyfxapi -lcyu3threadx -lc -lgcc
/opt/Cypress/cyfx3sdk/fw_lib/1_3_3/fx3_debug/libcyfxapi.a(cyu3entry_armcc.o): In function `CyU3PFirmwareEntry':
e:\views\antioch_fx3_build_view_puri\software\products\usb30\sdk\firmware\src\system/cyu3entry_armcc.S:131: undefined reference to `CyU3PToolChainInit'
makefile:36: 'sdmap_v2.0.elf' 타겟에 대한 명령이 실패했습니다
/opt/Cypress/cyfx3sdk/fw_lib/1_3_3/fx3_debug/libcyfxapi.a(cyu3system.o): In function `CyU3PSysCheckBootState':
cyu3system.c:(i.CyU3PSysCheckBootState+0x68): undefined reference to `CyU3PMemCopy'
/opt/Cypress/arm-2013.11/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: sdmap_v2.0.elf: hidden symbol `CyU3PMemCopy' isn't defined
/opt/Cypress/arm-2013.11/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

   

make: *** [sdmap_v2.0.elf] 오류 1

   

 

   

What I miss it?

   

Regards.

   

Shin.

0 Likes
1 Reply
Anonymous
Not applicable

I found it, cyfx_gcc_startup.S and cyfxtx.c files are missing.