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

Javid picture Javid · Nov 22, 2014 · Viewed 25.7k times · Source

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?

Answer

Prof. Hell picture Prof. Hell · Aug 28, 2016

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

enter image description here