Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Error in linking! - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error in linking! Rate Topic: -----

#1 User is offline   jishnu 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-December 10

Posted 11 December 2010 - 06:55 PM

Hello,

I have compiled a sample program in ARM assembly language for LPC2148 using the Keil MDK . After compilation the following error was reported.

Build target 'Target 1'
linking...
abc.axf: Warning: L6665W: Neither Lib$$Request$$armlib Lib$$Request$$cpplib defined, not searching ARM libraries.
abc.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.
Target not created
<br clear="all"> How can I recover from this error???

Sample Progarm:
GLOBAL Reset_Handler
AREA Reset, CODE, READONLY

Reset_Handler
MOV r0, #0x11
MOV r1, r0, LSL #1
MOV r2, r1, LSL #1

stop B stop
END

0

#2 User is offline   mharnisch 

  • Contributor
  • PipPip
  • Group: Members
  • Posts: 80
  • Joined: 11-April 08

Posted 12 December 2010 - 03:09 PM

View Postjishnu, on 11 December 2010 - 06:55 PM, said:

abc.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.

The MDK startup code, which you are presumably linking along with your own code, contains a hard coded B __main (or similar). Since you are apparently trying to write your own startup code, it may be a good idea to delete MDK's from your project -- you don't need it. Define your own Reset_Handler as entry point in your program, perhaps using the ENTRY directive in the assembler source code.

Regards
Marcus
0

#3 User is offline   jishnu 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-December 10

Posted 12 December 2010 - 05:17 PM

Hello,

Thanks a lot for the valuable information. The code got successfully linked and I am able to invoke the debugger now. :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic