Hello all.
Till now I coded all my projects for LPC2129 (ARM7TDMI MCU) using Keil C compiler. I have very good assembler skills so I would like to code some assembly.
The problem is:: When I try to compile something simple
*********************** AREA MAIN,CODE MOV R1,#3 END ********************** Error are: *** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: ?C?INIT ADDRESS: 00000104HProblem is in the startup code which is written to start executing "C main" function. I found this code in // Enter the C code LDR R0,=?C?INIT TST R0,#1 ; Bit-0 set: INIT is Thumb LDREQ LR,=exit?A ; ARM Mode LDRNE LR,=exit?T ; Thumb Mode BX R0 ENDP
How can I modify startup.s to start executing program from my asm source file ? Let's say main.s
Thanks very much !