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

Getting error on building

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.

Parents
  • 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:"

    (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. 

Reply
  • 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:"

    (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. 

Children
No data