Using SDK in IDE (Eclipse)

Installing Eclipse IDE

Eclipse is a Java-based application and it requires a Java runtime environment (JRE) to be installed in order to run. Install the default OpenJDK package with:

sudo apt install default-jre

Download Eclipse IDE installer for Linux 64-bit version from https://www.eclipse.org/downloads/

The name of downloaded file will be eclipse-inst-linux64.tar.gz. Extract the archive and :

cd eclipse-installer
./eclipse-inst

Select Eclipse IDE for C/C++ Developers and click INSTALL. After installation to Open Eclipse go to installation directory

./eclipse

Opening SDK Projects in Eclipse IDE

  • To open your VEGA SDK project in Eclipse IDE, goto File -> New -> Makefile Project with Existing Code

Open Makefile Project with Existing Code
  • Browse to existing code location,

../_images/eclipse-open-existing-project.png
  • Select ‘CROSS GCC’ option for toolchain indexer and click Finish button.

../_images/eclipse-import.png

Note

To Create a new project refer Creating a Project Section of Documentation.

Building SDK Projects in Eclipse IDE

In the Project Explorer tab right click and select Build Project to build the selected project.

Build Project in Eclipse

Selecting Clean Project will Clean the target program build directory.

Running SDK Projects in Eclipse IDE

  • In the Project Explorer tab right click and select Show in Local Terminal -> Terminal.

Eclipse Show Local Terminal

Warning

Before giving make upload command do all the steps in Setting Up Serial Device and Resetting Target Board subsections.

  • In Terminal Tab give command

make upload