EmbDev.net

Forum: ARM programming with GCC/GNU tools KEIL Linker Issue: LPC2148


Author: Krishna Rao Racharla (Company: KRTECH) (krao_embsys)
Posted on:

Rate this post
0 useful
not useful
I have a problem when i am building my project in KEIL v4.60 for target 
LPC2148. i am getting following errors:
voice.axf: Warning: L6310W: Unable to find ARM libraries.
voice.axf: Error: L6411E: No compatible library exists with a definition 
of startup symbol __main.

i am getting this error even when build KEIL Example project also.
Please some one tell me why this error is popping up? and in order to 
correct what should i do?

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Check the folder-settings in 
Project->Manage->Components...->Folders/Extensions

The forum at keil.com is a better place to ask such questions.

Author: W.S. (Guest)
Posted on:

Rate this post
0 useful
not useful
SET ARMHOME=E:\KEIL41\ARM
SET PATH=%ARMHOME%\BIN40
SET ARMCONF=%ARMHOME%\BIN
SET ARMDLL=%ARMHOME%\BIN40
SET ARMINC=%ARMHOME%\RV31\INC
SET ARMLIB=%ARMHOME%\RV31\LIB

should solve the problem.

W.S.

Author: Pipper (Guest)
Posted on:

Rate this post
0 useful
not useful
I'm sitting on this f*****g error since a couple of days. For those 
working with cmd or any shell check your libraries path if they're 
conform using keywords  --verbose or --info libraries in your flags.

Author: W.S. (Guest)
Posted on:

Rate this post
0 useful
not useful
Pipper wrote:
> I'm sitting on this f*****g error since a couple of days.

And do you have a question about? Look a little above, I posted already 
the necessary environment. You need only to edit the home dir 
("ARMHOME=E:\KEIL41\ARM") according to your actual directories, where 
the Keil is installed to.

kind regards
W.S.

Author: robo (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi Friends,

I'm using the LPC2148 development board in that currently working on
the USB boot loader.

For this I'm using the   GCC compiler. and downloaded the GCC related 
files
from the https://launchpad.net/gcc-arm-embedded.

when I build my code that time I'm getting error in the linking time as-
"arm-none-eabi-gcc: error: unrecognized command line option 
'--gc-sections'"

how to solve this error?
please help me.


Thanks
Robo

Author: W.S. (Guest)
Posted on:

Rate this post
0 useful
not useful
robo wrote:
> when I build my code that time I'm getting error in the linking time as-
> "arm-none-eabi-gcc: error: unrecognized command line option
> '--gc-sections'"

Download the (meanwhile old) "Lernbetty" project from the 
mikrocontroller.net site. There you will find the command line options 
for GCC as well as for the KEIL. You also will see there, how to link 
without a self written linker-file (the GCC linker has some linker 
scripts builtin).

W.S.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.