. \OBJ\TEMPLET.SCT (7): Error:L6236E:No section matches selector-no sections to be first/last.

Source: Internet
Author: User


. \OBJ\TEMPLET.SCT (7): Error:L6236E:No section matches selector-no sections to be first/last.

This error has always occurred when using KEIL4 to compile the connection project, which is a bit strange; devices is 32f101rb, the boot file is. MDS, so


Flash selection should not be a problem. However, replace the. MDs with. HDS without error. Found on the Internet, try to configure the next linker, but still not.


Helpless under will. The SCT file was edited and blocked a line (full text below):


; *************************************************************
; Scatter-loading Description File generated by uvision * * *
; *************************************************************


Lr_irom1 0x08000000 0x00040000 {; load region size_region
Er_irom1 0x08000000 0x00040000 {; Load address = execution Address
*.O (RESET, +first)
* (inroot$ $Sections)
. Any (+ro)
}
Rw_iram1 0x20000000 0x0000c000 {; RW data
. Any (+RW +zi)
}
}

The third line of "*.O (RESET, +first)" is blocked here, as follows:

Lr_irom1 0x08000000 0x00040000 {; load region size_region
Er_irom1 0x08000000 0x00040000 {; Load address = execution Address
; *.O (RESET, +first) (Shield off)
* (inroot$ $Sections)
. Any (+ro)
}
Rw_iram1 0x20000000 0x0000c000 {; RW data
. Any (+RW +zi)
}
}


After the compile again without prompting the error, but still do not know what the meaning, not knowing will affect the use after, shelf bar


Hehe, the above procedure is completely wrong, this SCT file is 256KB Flash files, should use 128KB Flash files. Just in the net

Found the problem, the original: http://blog.21ic.com/user1/8088/archives/2011/86377.html.


The point is that the startup file in the Library HD.S option two options Include in Target build and always build, and Md.s does not select both.








Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.