Hello. I've created a very simple hello world code to compile it in order to run it in a Verilog Simulator using the a Verilog Description of an ARM M0 (Design Start provided by ARM). I'm using Keil MDK, however I get this error which I have not been able to solve:
L6236E: No section matches selector - no section to be FIRST/LAST.
I've searched around and I have found that the problem is in the generated sct (Scatter File). The line poited by the error reads:
*.o (RESET, +First).
I think I'm supposed to add this option "--cpu Cortex-M0+" Somewhere, however I have not been able to understand why or where.
Also I'm specifying the target description of memories (Target Tab of the Target Dialog Box) and I have checked the "Use Memory Layout from Target Dialog" in the Linker Tab fo the Target Dialog Box). I would appreciate any help on the matter.
Thank you
Does your project contain a startup_architecture.s file, with a vector table in it?
It didn't. However It does now and It worked!! It compiled at least with zero errors.
Thank you!
However I did have to copy a whole bunch of .h files into the directory that contains ARMCM0.h or the program would keep telling me it could not find them.
Was there a better solution for this?
Yes, set up the Include Paths in the Options pane for the C compiler, so that is searches your project, and include directories for the files you use.