Search code examples
armkeil

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


I'm new to ARM programming using Keil Microvision V5.12 compiler. I can't compile a simple assembly project getting this error:

.\Objects\learn.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

I've tried searching and couldn't find any solution for this problem.

This is what I do:

  1. Create a project (without the startup file)
  2. Add a new assembly file (learn.s)
  3. Click Build Target.

Can anybody help?


Solution

  • I Added this answer for newbies,
    So, After create new project do same as picture:

    enter image description here