Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
en:general_information:eclipse_new [2016/07/21 11:34] – liedmann | en:general_information:eclipse_new [2017/04/11 12:57] – changed link to pictures from :intern: to :en: liedmann | ||
---|---|---|---|
Line 72: | Line 72: | ||
Select ** File -> New -> C Project** to create a new project | Select ** File -> New -> C Project** to create a new project | ||
- | {{:intern: | + | {{:en: |
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: | + | {{:en: |
Click the **Next** button | Click the **Next** button | ||
Line 83: | Line 83: | ||
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: | + | {{:en: |
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 96: | ||
* Cross compiler path: **/ | * Cross compiler path: **/ | ||
- | {{:intern: | + | {{:en: |
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: | + | {{:en: |
First, a source file for new project must be created. Select **File-> | First, a source file for new project must be created. Select **File-> | ||
- | {{:intern: | + | {{:en: |
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 **" | In this case the **Source file** is named **" | ||
- | {{:intern: | + | {{:en: |
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: | + | {{:en: |
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 119: | ||
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: | + | {{:en: |
Line 148: | Line 148: | ||
- | {{:intern: | + | {{:en: |
Line 157: | Line 157: | ||
| | ||
- | {{:intern: | + | {{:en: |
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 177: | ||
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: | + | {{:en: |
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: | + | {{:en: |
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: | + | {{:en: |
Set the connection parameter in the next window | Set the connection parameter in the next window | ||
- | {{:intern: | + | {{:en: |
* **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 201: | ||
select **ssh.files** in the following window then click **Next**. | select **ssh.files** in the following window then click **Next**. | ||
- | {{:intern: | + | {{:en: |
Line 207: | Line 207: | ||
Check **processes.shell.linux** in the following window and click **Next**. | Check **processes.shell.linux** in the following window and click **Next**. | ||
- | {{:intern: | + | {{:en: |
check **ssh.shells** in the last windows and finally click **Finish**. | check **ssh.shells** in the last windows and finally click **Finish**. | ||
- | {{:intern: | + | {{:en: |
Line 219: | Line 219: | ||
Open the debugger **Run -> Debug Configurations** | Open the debugger **Run -> Debug Configurations** | ||
- | {{:intern: | + | {{:en: |
Line 228: | Line 228: | ||
**C/C%%++%% Application: | **C/C%%++%% Application: | ||
**Project: | **Project: | ||
- | **Connection: | + | **Connection: |
**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: | **Commands to execute before application: | ||
- | {{:intern: | + | {{:en: |
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/ | 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/ | ||
- | {{:intern: | + | {{:en: |
Line 244: | Line 244: | ||
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: | + | {{:en: |
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: | + | {{:en: |
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/ | 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/ | ||
- | {{:intern: | + | {{:en: |
Finally click **Apply** and then **Debug** | Finally click **Apply** and then **Debug** |