Keil Logo

initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
dur tar
Posted
11-Apr-2011 17:30 GMT
Toolset
ARM
New! initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

Hi, I am new to keil and facing issue when running an Assembly language program as shown below..

AREA ARMex, CODE, READONLY ; Name this block of code ARMex ENTRY ; Mark first instruction to execute
start MOV r0, #10 ; Set up parameters MOV r1, #3 ADD r0, r0, r1 ; r0 = r0 + r1
stop MOV r0, #0x18 ; angel_SWIreason_ReportException END ; Mark end of file

Error Message:initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

Read-Only
Author
Per Westermark
Posted
11-Apr-2011 22:10 GMT
Toolset
ARM
New! RE: initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

The linker have tried to link in the C runtime library, but can't find any C program.

Read-Only
Author
dur tar
Posted
12-Apr-2011 04:13 GMT
Toolset
ARM
New! RE: initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

Ok, So how do i get rid of that error. I am completely new to MDK kit. Please help, Thanks in advance

Read-Only
Author
dur tar
Posted
13-Apr-2011 19:44 GMT
Toolset
ARM
New! RE: initial.axf: Error: L6218E: Undefined symbol main (referred from rtentry2.o).

I have included following files to my SourceGroup1

|--- startup_ARMCM3
|--- system_ARMCM3.c |---armcm3.h |---core_cm3.h |---stdint.h |---core_cminstr.h |---core_cmfunc.h |---system_armcm3.h

Do you expect me to include any other files?

-Thanks

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

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

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.