3. Create a "Hello world" application

This tutorial demonstrates how to create and launch your first application on your device using Eclipse and Digi plug-ins.

Before starting development for your ConnectCore platform, make sure your device is correctly connected, powered, and running. See Step 2: Set up the hardware and Step 3: Program the Yocto firmware.

Once your device is ready for development, follow these steps:

3.1. Create the project

  1. Select File > New > Project to open the New Project wizard
  2. Select C Project under the C/C++ category.
  3. Click Next. The C Project wizard opens.

  1. Type hello_world in the Project name text box.
  2. In the Project type list, expand the Executable category.
  3. Select the Hello World ANSI C Project.
  4. Select DEY Cross GCC from the Toolchains list.
  5. Click Finish to create the project.
    The hello_world project appears in the Project Explorer view.

3.2. Build the project

  1. Select the hello_world project in the Project Explorer view.
  2. Click the Build Active Configuration toolbar button .
    The build output appears in the Console view. The application binary is generated inside the Debug project directory.

3.3. Launch the application

  1. Select the hello_world project in the Project Explorer view.
  2. Right click and select Run As > DEY C/C++ Remote Application from the context menu. The Connection dialog opens.
  3. Select a connection to your device:
    1. Click New Connection. The New Connection wizard opens.
    2. Select Generic Connection. Click Next.
    3. Click Browse to look for devices. The Select Target dialog opens. It lists all the targets in the neighborhood with their corresponding IP.
    1. Select your device. Click OK.
    2. You can also change the default connection name in the Connection Name text box.
    3. Click Finish to create the connection.
  4. Select the new created connection and click OK.
    The application is automatically transferred to the device and executed.
    When the application is launched, the Terminal view displays the "Hello world" message.

You have successfully created and executed a Hello World application in your ConnectCore device. Follow the next steps to create another application to interact with your hardware.

 

© 2018 Digi International Inc. All rights reserved.
3. Create a "Hello world" application updated on 24 January 2018 10:24:40 AM