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

for solution of error

hi, I typed the following code in my keil uvision 4 and it was showing the error
ANSHL.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

code: AREA A,CODE,READONLY EXPORT Reset_Handler
Reset_Handler
Entry;
start MOV R0,#0x7fffffff mov r1,#0x43000000 mov r2,#0x4
loop mov r1,r1,lsr #1 movs r0,r0,asr #1 addcs r1,r1,#0x80000000 subs r2,r2,#1 bne loop
STOP B STOP END

so can you please tell me the solution of this error.

  • You might have better scribbled something of this sort:

    @$%#%^GSDVGNHGBHRYBTY&^#$%^#$%^#$T^TRJH FGJNDFGSJSGJHSHGJHDG
    fGHDFHSDGYH$%^$%YHDFGHGHSSD
    RFGSDFDGSHGYH$%&&%^&R&TRJFJF
    

    Do you see the difference?

  • 1) Do you really think that "for solution of error" is a good description that gives readers an idea about the contents of this thread? Couldn't "error" relate to just about anything?

    2) You post code - but didn't you see a note just above the message box about how to post source code? The sentence that started with "Place source code ..."

    3) The scatter file complains that it doesn't know what code area you want to link first in the created binary. Guess what happens if you try a search for error L6236E on this site (remember to include the forum when searching) or even easier if you go all the way out to Google?

    4) Your scatter file (which you have looked at?) wants to know what to place first. It probably have a line (why not possibly line 7, since the error seems to indicate line 7?) looking like:

    *.o (RESET, +First)
    


    Your assembler code probably don't have any section named RESET, so no section that may be placed first.

    5) If you had looked at the sample startup files that gets installed with the tools, you would probably have found a line looking like:

                    AREA    RESET, DATA, READONLY
    


    just above the interrupt vector table. Do you have any interrupt vector table somewhere in your assembler file, or just a Reset_Handler?

    For some reason, most problems can be solved quite easilly all alone, with some help of Google, and by maybe peeking a little at the Keil documentation or the supplied sample code. It doesn't hurt to try.

  • Its really helpful,thank you for reply