This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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).

Parents
  • 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

Reply
  • 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

Children
No data