ARM Technical Support Knowledge Articles


Applies to: uVision IDE


Information in this article applies to:


I have several C files that must be compiled with the SRC directive. How do I include these files and their .SRC files in a project in uVision?


The following list of steps shows you how to add a C file to your project, compile it with the SRC directive, assemble the .SRC file, and include it in the program linkage:

  1. Add the C file to your project. If you are adding a .C66 or a .C51 file (as is necessary for some Real-Time Kernels), you must specify that the file is a C Source File.
    Adding the C File
  2. Right-click on the file in the project window and select Options for File... This displays the options dialog box.
    Right-click on the Source File
  3. From the Properties tab, make sure that Generate Assembler SRC File and Assemble SRC File are both checked. Note that by default these checkboxes are greyed out but checked. There must be a black check on a white background to be checked.
    Set the Options
  4. Build your project as normal and uVision compiles the C file with the SRC directive specified on the command line. An .SRC file is generated and uVision assembles that file and includes it in your program's linkage.

Alternatively, you may add a file group to your project, add the C files to the group, and set the Generate Assembler SRC File and Assemble SRC File options once for the whole group.



Article last edited on: 2008-05-05 09:15:23

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential