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
  • Hi! first of all thanks for your help!

    1) my startup file call _start and not _main (is for GCC compiler not for RealView compiler).

    3) I tried to insert in my project_name.s a global label and under your suggestion, I have tried to export but nothing still work.

    Seems as the compiler would have a main function! but I'm in assembler!!

    an other suggest?

Reply
  • Hi! first of all thanks for your help!

    1) my startup file call _start and not _main (is for GCC compiler not for RealView compiler).

    3) I tried to insert in my project_name.s a global label and under your suggestion, I have tried to export but nothing still work.

    Seems as the compiler would have a main function! but I'm in assembler!!

    an other suggest?

Children