cancel
Showing results for 
Search instead for 
Did you mean: 

Linking problem with ARM Realview RVCT linker

mifarelight
Associate II
Posted on December 21, 2006 at 13:16

Linking problem with ARM Realview RVCT linker

4 REPLIES 4
mifarelight
Associate II
Posted on October 18, 2006 at 03:47

I try to compile and link the example project in folder Keil\ARM\RV30\Example\ST\STR71xLib\GPIO.

I got error list below:

Build target 'STR71x Debug'

 

assembling STR71x.s...

 

compiling 71x_it.c...

 

compiling Retarget.c...

 

compiling main.c...

 

linking...

 

.\output\GPIO.axf: error: L6008U: Could not recognize the format of member 71x_lib.o from STR71xD.LIB.

 

Target not created

When I search the errors & warnings in RVCT 2.2 document, REALVIEW explained:

L6008U: Could not recognize the format of member from .

 

The linker can recognize library member objects in the ELF file format. The specified library member is either corrupt, or is in a file format that the linker cannot recognize. The file could be a AOF or ALF format which was produced by SDT. These file formats became deprecated in RVCT 2.1 and obsolete in 2.2.

I don't know what caused the error. RVCT linker? or .lib file from ST?

Thanks for any suggestion. :-[

[ This message was edited by: light on 18-10-2006 07:19 ]

mifarelight
Associate II
Posted on November 11, 2006 at 23:37

Anybody?

mifarelight
Associate II
Posted on December 21, 2006 at 13:00

I solved the problem a few days ago.

After I installed a toolkit that was released by Keil, all works.

Quote:

Tool Version Numbers:

Toolchain Path: BIN30

C Compiler: ARM/Thumb C/C++ Compiler, RVCT3.0 [Build 942] for uVision

Assembler: ARM/Thumb Macro Assembler, RVCT3.0 [Build 942] for uVision

Linker/Locator: ARM Linker, RVCT3.0 [Build 942] for uVision

Librarian: ARM Archiver, RVCT3.0 [Build 942] for uVision

Hex Converter: ARM FromELF, RVCT3.0 [Build 942] for uVision

CPU DLL: SARM.DLL V3.02a

Dialog DLL: DARMST.DLL V1.04i

Target DLL: BIN\AGDIRDI.DLL V1.06c

Dialog DLL: TARMST.DLL V1.04i

Special thanks to Zouhair.

[ This message was edited by: light on 21-12-2006 17:40 ]

mifarelight
Associate II
Posted on December 21, 2006 at 13:16

The only warning is

Quote:

main.c(30): warning: #951-D: return type of function ''main'' must be ''int''

Then I changed the return type to ''int'', huhu...