about the linker error of eclipse------Cross ARM C can not generate ELF file

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

cross mob
Anonymous
Not applicable

 Dear All:

   

I am pretty new to develop USB3.0 on Eclipse platform. after installed the FX3 development tools.

   

appling Cross ARM compiler for this project, choose arm926ej-s as the processor.

   

My processing :  1: New C++ project

   

                               2: import exsiting code 

   

                              3: start  bulding project.

   

                              4: 

   

 it fault to generate ELF file,

   

is there any thing worng with the setting?

   

is anybody can give me information for solve the such kind problem?

   

Thank you for visting my message.

   

compiler message as below

   
    ****************************************************************************************   
   
    
     11:59:36 **** Build of configuration Debug for project change ****    
    
     cs-make all     
    
     'Building file: ../cyfx3s_fatfs/cyfx3s_blkdrvr.c'    
    
     'Invoking: Cross ARM C Compiler'    
    
     arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -E -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\u3p_firmware\inc" -MMD -MP -MF"cyfx3s_fatfs/cyfx3s_blkdrvr.d" -MT"cyfx3s_fatfs/cyfx3s_blkdrvr.o" -c -o "cyfx3s_fatfs/cyfx3s_blkdrvr.o" "../cyfx3s_fatfs/cyfx3s_blkdrvr.c"    
    
     'Finished building: ../cyfx3s_fatfs/cyfx3s_blkdrvr.c'    
    
     ' '    
    
     'Building file: ../cyfx3s_fatfs/cyfx3s_fatfs.c'    
    
     'Invoking: Cross ARM C Compiler'    
    
     arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -E -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\u3p_firmware\inc" -MMD -MP -MF"cyfx3s_fatfs/cyfx3s_fatfs.d" -MT"cyfx3s_fatfs/cyfx3s_fatfs.o" -c -o "cyfx3s_fatfs/cyfx3s_fatfs.o" "../cyfx3s_fatfs/cyfx3s_fatfs.c"    
    
     'Finished building: ../cyfx3s_fatfs/cyfx3s_fatfs.c'    
    
     ' '    
    
     'Building file: ../cyfx3s_fatfs/cyfx_gcc_startup.S'    
    
     'Invoking: Cross ARM GNU Assembler'    
    
     arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -x assembler-with-cpp -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\u3p_firmware\inc" -MMD -MP -MF"cyfx3s_fatfs/cyfx_gcc_startup.d" -MT"cyfx3s_fatfs/cyfx_gcc_startup.o" -c -o "cyfx3s_fatfs/cyfx_gcc_startup.o" "../cyfx3s_fatfs/cyfx_gcc_startup.S"    
    
     'Finished building: ../cyfx3s_fatfs/cyfx_gcc_startup.S'    
    
     ' '    
    
     'Building file: ../cyfx3s_fatfs/cyfxtx.c'    
    
     'Invoking: Cross ARM C Compiler'    
    
     arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -E -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\u3p_firmware\inc" -MMD -MP -MF"cyfx3s_fatfs/cyfxtx.d" -MT"cyfx3s_fatfs/cyfxtx.o" -c -o "cyfx3s_fatfs/cyfxtx.o" "../cyfx3s_fatfs/cyfxtx.c"    
    
     'Finished building: ../cyfx3s_fatfs/cyfxtx.c'    
    
     ' '    
    
     'Building file: ../cyfx3s_fatfs/ff.c'    
    
     'Invoking: Cross ARM C Compiler'    
    
     arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -E -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\u3p_firmware\inc" -MMD -MP -MF"cyfx3s_fatfs/ff.d" -MT"cyfx3s_fatfs/ff.o" -c -o "cyfx3s_fatfs/ff.o" "../cyfx3s_fatfs/ff.c"    
    
     'Finished building: ../cyfx3s_fatfs/ff.c'    
    
     ' '    
    
      'Building target: change.elf'    
    
      'Invoking: Cross ARM C Linker'    
    
      arm-none-eabi-gcc -mcpu=arm926ej-s -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Xlinker --gc-sections -s -Wl,-Map,"change.map" -Xlinker --cref -o "change.elf"  ./cyfx3s_fatfs/cyfx3s_blkdrvr.o ./cyfx3s_fatfs/cyfx3s_fatfs.o ./cyfx3s_fatfs/cyfx_gcc_startup.o ./cyfx3s_fatfs/cyfxtx.o ./cyfx3s_fatfs/ff.o       
    
      ./cyfx3s_fatfs/cyfx3s_blkdrvr.o: file not recognized: File format not recognized    
    
      collect2: ld returned 1 exit status    
    
      cs-make: *** [change.elf] Error 1    
    
          
    
     11:59:37 Build Finished (took 1s.241ms)    
   
   
    *************************************************************************************************************************   
   
    
      My development evironment as below:    
    
     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<    
    
        OS, win7_64bits personal    
    
       C/C++ Deveplopment tools                8.5.0.201409172108                                                Eclipse CDT    
    
       Eclipse Standard/SDK                                                              2.0.1.20130919-0803    
    
       GNU ARM C/C++ Cross Compiler                      1.12.1.201412191510                                                                    Liviu Ionescu    
    
       Zylin Embedded CDT                           4.18.1                                                                                                                      ZYLIN    
    

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

   
0 Likes
1 Reply
Anonymous
Not applicable

 That's strange. Can you upload your project here? I'll take a look.

0 Likes