Using Eclipse/3
From Manuals
(→Creating a New Managed Make Project) |
|||
| (2 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
=Development= | =Development= | ||
==Creating a New Standard Make Project== | ==Creating a New Standard Make Project== | ||
| - | A new project can be created using | + | A new project can be created using standard makefiles. Makefiles will need to be created and added to the project manually. Select ‘File’, ‘New’, ‘Project’ and expand ‘C/C++’ to select ‘C Project.’ To select a standard makefile project, expand ‘Makefile project’ and select ‘Empty Project.’ Specify the project name, the toolchain you will be using, and click ‘Finish.’ If the toolchain you are using is not listed, such as devkitARM, simply select one of the other ARM GCC toolchains. |
| - | [[Image: | + | [[Image:Standard_make.png|center|frame|alt=External Tools Configuration|Figure 3 – Creating a new standard make project]] |
| - | + | ||
If your toolchain was listed in the step above, you can step this step. If your toolchain was not listed, select your project in the Project Explorer and select ‘Project’, ‘Properties’ from the File menu. Expand ‘C/C++ Build,’ select ‘Discovery Options’ and change the ‘Compiler invocation command’ to the gcc command associated with your toolchain for both the Assembler and C Compiler tools. | If your toolchain was listed in the step above, you can step this step. If your toolchain was not listed, select your project in the Project Explorer and select ‘Project’, ‘Properties’ from the File menu. Expand ‘C/C++ Build,’ select ‘Discovery Options’ and change the ‘Compiler invocation command’ to the gcc command associated with your toolchain for both the Assembler and C Compiler tools. | ||
| - | Figure 4 | + | [[Image:Toolchain_settings.png|center|frame|alt=External OpenOCD Configuration|Figure 4 - Specifying the toolchain's compiler]] |
To add a makefile, select ‘File,’ ‘New,’ ‘Other’ and expand ‘General’ to select ‘File.’ Hit next, enter the name of your makefile, and click Finish. To add a source file, select ‘File,’ ‘New,’ ‘Source File’ and specify the name of the source file with extension. | To add a makefile, select ‘File,’ ‘New,’ ‘Other’ and expand ‘General’ to select ‘File.’ Hit next, enter the name of your makefile, and click Finish. To add a source file, select ‘File,’ ‘New,’ ‘Source File’ and specify the name of the source file with extension. | ||
| + | |||
==Creating a New Managed Make Project== | ==Creating a New Managed Make Project== | ||
New projects can also be created using managed make files which are automatically created and maintained by Eclipse. To create a new managed make project, select ‘File,’ ‘New,’ ‘Project’ and expand ‘C/C++’ to select ‘C Project.’ Click Next and select ‘Empty Project’ under ‘ARM Cross Target Application.’ Specify the name and the toolchain this project will be using and select Finish. | New projects can also be created using managed make files which are automatically created and maintained by Eclipse. To create a new managed make project, select ‘File,’ ‘New,’ ‘Project’ and expand ‘C/C++’ to select ‘C Project.’ Click Next and select ‘Empty Project’ under ‘ARM Cross Target Application.’ Specify the name and the toolchain this project will be using and select Finish. | ||
| - | Figure 5 | + | [[Image:Managed_make.png|center|frame|alt=Debug Configurations|Figure 5 - Creating a new managed make project]] |
| - | If your toolchain was listed in the step above, you can | + | If your toolchain was listed in the step above, you can skip this step. If your toolchain was not listed follow the steps as directed for standard makefile projects and these as well. In the Project Properties, select ‘Settings’ under ‘C/C++ Build,’ change the configuration setting to ‘[ All configurations ]’ and specify the correct command for your toolchain for each of the GNU ARM tools. |
| + | [[Image:Toolchain_commands.png|center|frame|alt=Toolchain Commands|Figure 6 - Specifying the toolchain commands]] | ||
Figure 6 – Specifying the toolchain commands | Figure 6 – Specifying the toolchain commands | ||
Current revision as of 15:02, 19 January 2012
Contents |
Development
Creating a New Standard Make Project
A new project can be created using standard makefiles. Makefiles will need to be created and added to the project manually. Select ‘File’, ‘New’, ‘Project’ and expand ‘C/C++’ to select ‘C Project.’ To select a standard makefile project, expand ‘Makefile project’ and select ‘Empty Project.’ Specify the project name, the toolchain you will be using, and click ‘Finish.’ If the toolchain you are using is not listed, such as devkitARM, simply select one of the other ARM GCC toolchains.
If your toolchain was listed in the step above, you can step this step. If your toolchain was not listed, select your project in the Project Explorer and select ‘Project’, ‘Properties’ from the File menu. Expand ‘C/C++ Build,’ select ‘Discovery Options’ and change the ‘Compiler invocation command’ to the gcc command associated with your toolchain for both the Assembler and C Compiler tools.
To add a makefile, select ‘File,’ ‘New,’ ‘Other’ and expand ‘General’ to select ‘File.’ Hit next, enter the name of your makefile, and click Finish. To add a source file, select ‘File,’ ‘New,’ ‘Source File’ and specify the name of the source file with extension.
Creating a New Managed Make Project
New projects can also be created using managed make files which are automatically created and maintained by Eclipse. To create a new managed make project, select ‘File,’ ‘New,’ ‘Project’ and expand ‘C/C++’ to select ‘C Project.’ Click Next and select ‘Empty Project’ under ‘ARM Cross Target Application.’ Specify the name and the toolchain this project will be using and select Finish.
If your toolchain was listed in the step above, you can skip this step. If your toolchain was not listed follow the steps as directed for standard makefile projects and these as well. In the Project Properties, select ‘Settings’ under ‘C/C++ Build,’ change the configuration setting to ‘[ All configurations ]’ and specify the correct command for your toolchain for each of the GNU ARM tools.
Figure 6 – Specifying the toolchain commands
Build Configurations
Build configurations provide a way to change how projects are built. If you create a new managed make project, Debug and Release build configurations are created automatically for you. If you create a new standard make project, a Default build configuration is created automatically.
To create a new build configuration, go to your project properties, select ‘C/C++ Build,’ ‘Manage Configurations…’ and click ‘New.’ Specify a name for the build and a configuration in which to base it on. The new configuration can then be modified in ‘C/C++ Build’ settings. To specify the build configuration as active, simply select it and click ‘Set Active’ in the ‘Manage Configurations…’ settings.




