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

including source files

Hello,

I've a quick question. I have a number of source files which I want to use in my main file. How do I do this using uVision and assembly language?

I've tried
include "myfile.asm"

and then added the files using the edit file option. The translator automatically goes to A51 Assembler. However, this appears to be incorrect.

Could someone tell me exactly what I need to do?

much appreciated,

Karen.

  • If you've included the files within your "main" file, then you must only build the main file!

    By adding the "sub" files to your Project, you are telling uVision to build those files, and then the "main" file includes them as well!

    If you want to have the files listed in the Project just to make it easier for you to open them for editing, clear the 'Include in Target Build' and 'Always Build' options for those files;
    Or, put them in a separate Group, and disable those options for the Group.

    Note that you will not get valid source line number debug info for the included files - see "BTW2" in:
    http://www.keil.com/forum/msgpage.asp?MsgID=1807