Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:general_information:eclipse_new [2016/07/21 11:34] liedmannen:general_information:eclipse_new [2022/08/04 15:02] (current) – external edit 127.0.0.1
Line 22: Line 22:
   * Installed PTXdist    * Installed PTXdist 
   * Installed OSELAS toolchain   * Installed OSELAS toolchain
 +  * Installed Java Runtime Environment
  
 === Target === === Target ===
Line 72: Line 73:
 Select ** File -> New -> C Project** to create a new project Select ** File -> New -> C Project** to create a new project
  
-{{:intern:general_information:eclipse_1.jpg?nolink&500|}}+{{:en:general_information:eclipse_1.jpg?nolink&500|}}
  
 In the C Project window enter a name for the new project (in this case : example_1). In the C Project window enter a name for the new project (in this case : example_1).
 Select **Empty Project** as project type and check **Cross GCC** in the **Toolchains** section. Select **Empty Project** as project type and check **Cross GCC** in the **Toolchains** section.
  
-{{:intern:general_information:eclipse_2.jpg?nolink&500|}}+{{:en:general_information:eclipse_2.jpg?nolink&500|}}
    
 Click the **Next** button Click the **Next** button
Line 83: Line 84:
 In the following window keep in mind that both configurations **Debug** and **Release** are checked, then click on **Next**. In the following window keep in mind that both configurations **Debug** and **Release** are checked, then click on **Next**.
  
-{{:intern:general_information:eclipse_3.jpg?nolink&500|}}+{{:en:general_information:eclipse_3.jpg?nolink&500|}}
  
 In the next window you have to set the **Cross compiler prefix** and **Cross compiler path**. In the next window you have to set the **Cross compiler prefix** and **Cross compiler path**.
Line 96: Line 97:
   * Cross compiler path: **/opt/OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf/gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin**   * Cross compiler path: **/opt/OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf/gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin**
  
-{{:intern:general_information:eclipse_4.jpg?nolink&500|}}+{{:en:general_information:eclipse_4.jpg?nolink&500|}}
  
 Finally click on **Finish**, now the environment for our new project is created. Finally click on **Finish**, now the environment for our new project is created.
  
-{{:intern:general_information:eclipse_5.jpg?nolink&800|}}+{{:en:general_information:eclipse_5.jpg?nolink&800|}}
  
 First, a source file for new project must be created. Select **File->New->Source File** To create the source file. First, a source file for new project must be created. Select **File->New->Source File** To create the source file.
    
-{{:intern:general_information:eclipse_6.jpg?nolink&500|}}+{{:en:general_information:eclipse_6.jpg?nolink&500|}}
  
 enter a name for the **Source file** in the popup windows (including file extension). enter a name for the **Source file** in the popup windows (including file extension).
 In this case the **Source file** is named **"hello.c"** In this case the **Source file** is named **"hello.c"**
  
-{{:intern:general_information:eclipse_7.jpg?nolink&500|}}+{{:en:general_information:eclipse_7.jpg?nolink&500|}}
  
 Once the source file has been generated, it can be filled with code, in this tutorial, it is a simple "Hello World" application. Once the source file has been generated, it can be filled with code, in this tutorial, it is a simple "Hello World" application.
  
-{{:intern:general_information:eclipse_8.jpg?nolink&500|}}+{{:en:general_information:eclipse_8.jpg?nolink&500|}}
  
 As final step before compiling, we use two variables within the project. **example_1** must be clicked with the right mouse button, select **Properties** from the context menu. As final step before compiling, we use two variables within the project. **example_1** must be clicked with the right mouse button, select **Properties** from the context menu.
Line 119: Line 120:
 In the popup window expand the menu item **C/C%%++%% Build** and select **Settings**. In the popup window expand the menu item **C/C%%++%% Build** and select **Settings**.
  
-{{:intern:general_information:eclipse_9.jpg?nolink&500|}}+{{:en:general_information:eclipse_9.jpg?nolink&500|}}
  
  
Line 148: Line 149:
  
  
-{{:intern:general_information:eclipse_10.jpg?nolink&1000|}}+{{:en:general_information:eclipse_10.jpg?nolink&1000|}}
  
  
Line 157: Line 158:
  **Path and Symbols** section, enter the tab **Includes** and choose **GNU C** in the **Languages** section.    **Path and Symbols** section, enter the tab **Includes** and choose **GNU C** in the **Languages** section.  
  
-{{:intern:general_information:eclipse_11.png?nolink&1000|}}+{{:en:general_information:eclipse_11.png?nolink&1000|}}
  
 An entry must be added in the **Include directories** section to refer to the Kernel. Click on the **Add** button, in the popup window enter the path that refers to the kernel. In this tutorial: An entry must be added in the **Include directories** section to refer to the Kernel. Click on the **Add** button, in the popup window enter the path that refers to the kernel. In this tutorial:
Line 177: Line 178:
 Go to ** Window -> Show view -> Other...** to add the window for the RSE, then choose **Remote Systems** and in the dropdown menu **Remote Systems**. Go to ** Window -> Show view -> Other...** to add the window for the RSE, then choose **Remote Systems** and in the dropdown menu **Remote Systems**.
  
-{{:intern:general_information:eclipse_12.jpg?nolink&500|}}+{{:en:general_information:eclipse_12.jpg?nolink&500|}}
  
 Click on the Connection icon (marked with a red frame in the picture below) to add a new connection. Click on the Connection icon (marked with a red frame in the picture below) to add a new connection.
  
-{{:intern:general_information:eclipse_13.jpg?nolink&1000|}}+{{:en:general_information:eclipse_13.jpg?nolink&1000|}}
  
 Choose the remote type in the new window. In the case of this tutorial **Linux** then click on **Next** Choose the remote type in the new window. In the case of this tutorial **Linux** then click on **Next**
  
-{{:intern:general_information:eclipse_14.jpg?nolink&500|}}+{{:en:general_information:eclipse_14.jpg?nolink&500|}}
  
 Set the connection parameter in the next window Set the connection parameter in the next window
  
-{{:intern:general_information:eclipse_15.jpg?nolink&500|}}+{{:en:general_information:eclipse_15.jpg?nolink&500|}}
  
   * **Host name:** enter host name or IP address of the target   * **Host name:** enter host name or IP address of the target
Line 201: Line 202:
 select **ssh.files** in the following window then click **Next**. select **ssh.files** in the following window then click **Next**.
  
-{{:intern:general_information:eclipse_16.jpg?nolink&500|}}+{{:en:general_information:eclipse_16.jpg?nolink&500|}}
  
  
Line 207: Line 208:
 Check **processes.shell.linux** in the following window and click **Next**.  Check **processes.shell.linux** in the following window and click **Next**. 
  
-{{:intern:general_information:eclipse_17.jpg?nolink&500|}}+{{:en:general_information:eclipse_17.jpg?nolink&500|}}
  
  
 check **ssh.shells** in the last windows and finally click **Finish**. check **ssh.shells** in the last windows and finally click **Finish**.
  
-{{:intern:general_information:eclipse_18.jpg?nolink&500|}}+{{:en:general_information:eclipse_18.jpg?nolink&500|}}
  
  
Line 219: Line 220:
 Open the debugger **Run -> Debug Configurations** Open the debugger **Run -> Debug Configurations**
  
-{{:intern:general_information:eclipse_19.jpg?nolink&800|}}+{{:en:general_information:eclipse_19.jpg?nolink&800|}}
  
  
Line 228: Line 229:
 **C/C%%++%% Application:** click **Search Project** and select the debug build from your project  **C/C%%++%% Application:** click **Search Project** and select the debug build from your project 
 **Project:** select the project you want to debug\\ **Project:** select the project you want to debug\\
-**Connection:** choose the [[intern:general_information:eclipse#Remote connection to the target|Connection]] that was created earlier in this tutorial.\\+**Connection:** choose the [[en:general_information:eclipse#Remote connection to the target|Connection]] that was created earlier in this tutorial.\\
 **Remote Absolute File Path for C/C:** enter the path where the application will be copied and executed on the target.\\ **Remote Absolute File Path for C/C:** enter the path where the application will be copied and executed on the target.\\
 **Commands to execute before application:** use this to launch a gdb server on the target before debugging.  **Commands to execute before application:** use this to launch a gdb server on the target before debugging. 
    
-{{:intern:general_information:eclipse_20.2.jpg?nolink&800|}}+{{:en:general_information:eclipse_20.2.jpg?nolink&800|}}
  
 After the command you want to execute you have to set the installation path of the application you want to debug and the port number, which you can find under Debug Configurations/ Debugger/ Gdbserver Settings. Gdbserver path is the same IP you have set during configuration of the remote system. After the command you want to execute you have to set the installation path of the application you want to debug and the port number, which you can find under Debug Configurations/ Debugger/ Gdbserver Settings. Gdbserver path is the same IP you have set during configuration of the remote system.
  
-{{:intern:general_information:eclipse_debugger_settings.jpg?nolink&800|}}+{{:en:general_information:eclipse_debugger_settings.jpg?nolink&800|}}
  
  
Line 244: Line 245:
 Check **Use configuration specific settings** and select **Legacy Remote Create Process Launcher** Check **Use configuration specific settings** and select **Legacy Remote Create Process Launcher**
 close the window by clicking **OK**. close the window by clicking **OK**.
-{{:intern:general_information:eclipse_21.jpg?nolink&800|}}+{{:en:general_information:eclipse_21.jpg?nolink&800|}}
  
 Select the **Debugger** tab from **Debug Configurations** main window.  Select the **Debugger** tab from **Debug Configurations** main window. 
 Now we have to set the **GDB debugger** in the case of this tutorial **arm-v7a-linux-gdb**. Now we have to set the **GDB debugger** in the case of this tutorial **arm-v7a-linux-gdb**.
  
-{{:intern:general_information:eclipse_22.jpg?nolink&800|}}+{{:en:general_information:eclipse_22.jpg?nolink&800|}}
  
  
 Switch to **Shared Libraries** tab inside the **Debugger** tab and add the path to the libraries in your system in the case of this tutorial **opt/OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf/gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/arm-v7a-linux-gnueabihf/lib**. Switch to **Shared Libraries** tab inside the **Debugger** tab and add the path to the libraries in your system in the case of this tutorial **opt/OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf/gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/arm-v7a-linux-gnueabihf/lib**.
  
-{{:intern:general_information:eclipse_23.jpg?nolink&800|}}+{{:en:general_information:eclipse_23.jpg?nolink&800|}}
  
 Finally click **Apply** and then **Debug** Finally click **Apply** and then **Debug**
  • Last modified: 2022/08/04 15:04