We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi friends,
I am a beginner. I typed a program and after translating i get no error. But i get an error as shown below, while building hex file for that program.
The error is
filename.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
Hi CKT_lover,
Welcome to the world of Arm devices.
For Posterity, You can read more about this error in "4.2 List of the armlink error and warning messages" of this guide:
http://www.keil.com/support/man/docs/armerr/armerr_dom1365073159742.htm
"The scatter file specifies a section to be +FIRST or +LAST, but that section does not exist, or has been removed by the linker because it believes it to be unused. Use the linker option --info unused to reveal which objects are removed from your project. Example:"
+FIRST
+LAST
--info unused
(Aside - think of a scatterfile sort of like a "linker file" http://www.keil.com/support/man/docs/armlink/armlink_pge1362075656353.htm )
The Keil tools create a scatterfile for you, so you don't have to worry about it. The default scatterfile wants to put the Reset Vector (and by extension the rest of the vector table) first in the ROM memory, because that is just what you do for Arm devices.
If the linker can't find the symbol marked as +FIRST anywhere in your project, you get this error.