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

Creating a new Assembly project

Hi to all!
I'm trying to create a new project with µVision3 using only assembler language.
I used an existing Startup.s and Target.ld files for GCC compiler, but it doesn't work if my main is "project_name.s" with a "main:" label (the error is: undefined reference to 'main'). Otherwise, if I include a "project_name.c" file with a main function, It works.
Thanks to all
Fabrizio

Parents
  • 1) Are you calling __main from the startup file? You do not need to do this if you are using all assembly language, this is the C entry point.

    2) __main calls main (see above)

    3) Did you EXPORT main in the assemly language file? If you do not then the linker will not see it as a global function.

Reply
  • 1) Are you calling __main from the startup file? You do not need to do this if you are using all assembly language, this is the C entry point.

    2) __main calls main (see above)

    3) Did you EXPORT main in the assemly language file? If you do not then the linker will not see it as a global function.

Children