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

8051 linking EROR: "L6320w" reset_handler

hi, im an 8051 noob and trying to run this example program supplied by ARM for students;

AREA eval_proj, CODE
ENTRY
LDR r1, =0x03FF5008 ; r1 = IOPDATA address
LDR r3, [r1] ; r3 = memory[IOPDATA]
LDR r2, =0x10 ; r2 = LED offset
AND r3, r3, #0 ; r3 = 0x0 (light LED0)
Loop LDR r5, =0x0500000 ; r5 = delay counter STR r3, [r1], #0 ; IOPDATA = r3
B Delay
Resume ADD r3, r3, r2 ; add offset ADDS r4, r3, #-256 ; if r3 = 256 BNE Loop ; done SWI 0x11 ; terminate program

Delay SUBS r5, r5, #1 ; delay loop BNE Delay B Resume END

the program compiles but i keep getting the error:

eval_proj.axf: Error: L6320W: Ignoring --entry command. Cannot find argument 'Reset_Handler'.
eval_proj.axf: Warning: L6320W: Ignoring --first command. Cannot find argument 'Reset_Handler'.

although one is a warning the file is not linking and therefore i cannot debug it. i think i need to change something in the configuration

help please! chris!

Parents
  • That's ARM code - why have you titled your thread "8051...", and selected C51 as the toolset?

    Obviously, ARM code won't work on an 8051, nor with the C51 tools!

    Also, please take care to read the instructions for posting source code:

    www.danlhenry.com/.../keil_code.png

    Note that TABs don't work (well) - use spaces instead,

    and don't forget to check it in the 'Preview'...

Reply
  • That's ARM code - why have you titled your thread "8051...", and selected C51 as the toolset?

    Obviously, ARM code won't work on an 8051, nor with the C51 tools!

    Also, please take care to read the instructions for posting source code:

    www.danlhenry.com/.../keil_code.png

    Note that TABs don't work (well) - use spaces instead,

    and don't forget to check it in the 'Preview'...

Children