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

error: L6236E: No section matches selector - no section to be FIRST/LAST

Hello, I'm using the ADICUP3029 developmentboard with Keil uv5. I cannot get the example programm successfully compiled because of the error L6236E: No section matches selector - no section to be FIRST/LAST. I've searched for solutions and I think the problem is with the scatter file but I actually don't ready unterstand the mechanism in it. Could anyone help me? Thanks.

Startup documents are already included

The scatter file

The RESET Area

The configuration form Options->Linker

Hiere I can choose bewteen "xxx Debug" and "xxx Release", is this relevant?

Parents
  • The error states that no object is being linked in to be placed FIRST (or LAST),

    From the scatter file, you can see that any object with an ELF section named "RESET" should be placed there.

    This is defined in the 'AREA' line of the vector table source above, however it is being removed by the linker. This is because it needs to be defined as an ENTRY point.

    I recommend in the Linker options > MIsc controls section illustrated above to add the command option:

    --entry=Reset_Handler

    Regards, Ronan

Reply
  • The error states that no object is being linked in to be placed FIRST (or LAST),

    From the scatter file, you can see that any object with an ELF section named "RESET" should be placed there.

    This is defined in the 'AREA' line of the vector table source above, however it is being removed by the linker. This is because it needs to be defined as an ENTRY point.

    I recommend in the Linker options > MIsc controls section illustrated above to add the command option:

    --entry=Reset_Handler

    Regards, Ronan

Children