Run a Sample Project with
Building a Project Using Eclipse* IDE
- Open a terminal session and source setvars.sh.
- From the same terminal session, launch the version of Eclipse that you chose for integration during installation. The Intel-provided Eclipse option is in<install_dir>/intel/oneapi/intel-eclipse-ide/latest/eclipse/, where<install_dir>is typically/opt/intel/oneapiwhen installed as root or a super user, and$HOME/intel/oneapiotherwise.
- From the top level menu bar, select. The samples window appears:
- ClickIntel® oneAPI IoT Tooklit.
- ClickIntel® C++ Compiler Classic.
- Click theHello IoT Worldsample.
- To build the project, first exclude the build folder by right clicking on the build folder and selecting.
- To run the application, click.A "Hello IoT" message appears in the Eclipse console.
- Begin debugging the application.The debugger displays a breakpoint at the start of code.
Running a Remote Sample on an Up Squared* Device
- Create a Connection within Eclipse by selecting theNew Connectionoption:
- Select the SSH Connection type and clickNext:
- Enter the Hostname and Username for your remote target. You can either use Key-based authentication or Password, depending on the configuration of the remote device.
- You may also be then prompted to set an Eclipse Secure Storage password. This protects the password you entered when stored on the disk. Enter the password and click OK.
- When connecting to the device for the first time, you should be prompted to trust the device. Click Yes to continue.
- From the top level menu bar, selectand select the UP Squared Built-in LEDs sample.
- In theProject Explorertree, right-click the Up Squared sample and then select .
- After the build command executes, in theProject Explorertree, expandDebugto see the binary. Right-click theup2-ledsbinary, and then selectRun Configurations.TheRun Configurationsdialog box opens.
- To create a remote run configuration, double-clickC/C++ Remote Applicationsto create the new run configuration, then populate the following fields.Some of the fields pre-populate based on your selection of the binary.
After the remote application launches, the multi-color LEDs on the UP Squared board blink continuously.A message about authorization on the target device may appear, but authorization may not be required. Allow a few seconds for the application to launch on the target.
- ForConnection, choose the new remote connection that you created.
- Choose a path for the binary on the remote UP Squared device (any directory that you can access will work).
- If multiple launchers are available, select theLegacylauncher to continue with SSH.
- ClickApplyand thenRun.