You copied the Doc URL to your clipboard.

Building the project

You can add source files to your project and build the application using the compiler in DS-5. After a successful build, you can create a debug configuration and run the application on the target.

Procedure

  1. In the Project Explorer view, right-click your project, for example hello_world, and the select File > New > Source File.
  2. In the New Source File dialog, enter the file name hello.c.
  3. Click Finish to create the source file and open it in the code editing view. The source file is visible in the Project Explorer view, under the hello_world project.
  4. Add the following code to the new source file, and save the file.
    #include <stdio.h>
    int main()
    {
      printf("Hello world\n");
      return 0;
    }
  5. In the Project Explorer view, right-click on the hello_world project and select Build Project.

The axf file contains both the object code and debug symbols that enable the debugger to perform source-level debugging.

Figure 4-6 Compiled axf file

Compiled axf file

Was this page helpful? Yes No