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

.\Objects\CortexM3.axf: Error: L6218E: Undefined symbol main (referred from __rtentry2.o).

-------------------------------------------

PRG_MEM EQU 0x00000400 AREA ARM_PRG, CODE,READONLY, align = 2
Memory SPACE PRG_MEM

Myfunct PROC ;MOV R0 ,#0

ENDP -----------------------------------
i am getting error while build , and i am using .s exn file
please help

  • Add a .C file containing main(), or define a main function within your .S assembler only file to keep the linker happy.

    There might be an option to stop the linker pulling the C run-time startup code, consider reading the manuals/documentation

    Read the posting instructions for source code too.

    The CM3 will require a vector table in order to execute code.