Create/Build/Deploy a Project using Eclipse

This section describes the steps required to create/build/deploy a new project.

Creating a new Project

  1. On Eclipse, click file -> New -> Project…
  2. Select “C Project”, then click “Next”.
  3. Type a name for the new project: “helloworld”
  4. Click the Yocto Project ADT Project” folder
  5. Select “Hello World ANSI C Autotools Project”, then click “Next"
  6. Add other information like “Author”, Copyright notice” etc. and click “Finish”
  7. At this point, the “helloworld” project has been created.


Building the Project

  1. On Eclipse, in Project Explorer on the left hand side, right click on the project "helloworld" and click on "Reconfigure Project". This only needs to be done when some project configuration changes or when the project is created.
  2. Click Project -> Build Project
  3. The binary file for the program will be created.


Set the target for debugging

  1. Connect the target board with the development machine.
  2. Check the IP address of the target board and note it down.
  3. Check that the “TCF-agent” is running on the target using the following command ps -A | grep tcf
  4. If its not running, start the service using
  5. $ sudo /etc/init.d/tcf-agent start


Deploying the Project

  1. On Eclipse, click Run -> debug configurations.
  2. On the left area, unfold “C/C++ Remote Application”
  3. Look for the project to bring the settings to the right area.
  4. On the “Connection” field, select the target board configuration. If you want to create a new one follow the steps below.
  5. Assign the application an absolute path i.e. path on the target board’s filesystem (e.g. /home/root/hello_world_rg_10_20) and then click “Apply”.



  6. On the same window, click “Debug” to run the application on the target board.
  7. The first time it is executed, a login dialog is displayed. Log in with credentials for the target board and then click “OK”.
  8. Eclipse will ask you if you want to change the interface layout. Accept it.
  9. At this point the program will start with a breakpoint on main.