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).
The linker have tried to link in the C runtime library, but can't find any C program.
Ok, So how do i get rid of that error. I am completely new to MDK kit. Please help, Thanks in advance
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