<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://socialledge.com/sjsu/index.php?action=history&amp;feed=atom&amp;title=Eclipse_%3A_New_Project_%26_Tricks</id>
		<title>Eclipse : New Project &amp; Tricks - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://socialledge.com/sjsu/index.php?action=history&amp;feed=atom&amp;title=Eclipse_%3A_New_Project_%26_Tricks"/>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=Eclipse_:_New_Project_%26_Tricks&amp;action=history"/>
		<updated>2026-05-11T01:16:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://socialledge.com/sjsu/index.php?title=Eclipse_:_New_Project_%26_Tricks&amp;diff=1357&amp;oldid=prev</id>
		<title>Preet at 15:16, 1 September 2012</title>
		<link rel="alternate" type="text/html" href="http://socialledge.com/sjsu/index.php?title=Eclipse_:_New_Project_%26_Tricks&amp;diff=1357&amp;oldid=prev"/>
				<updated>2012-09-01T15:16:58Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The easiest way to create a new project in Eclipse is:&lt;br /&gt;
*  Copy and paste the folder of a sample project.&lt;br /&gt;
*  Rename the folder that you copied to your new project name.&lt;br /&gt;
*  In Eclipse, go to '''File''' -&amp;gt; '''Import'''&lt;br /&gt;
*  Click on '''General''' -&amp;gt; '''Existing Projects into Workspace'''&lt;br /&gt;
*  Hit '''Next''' -&amp;gt; '''Browse''' and find your copied folder&lt;br /&gt;
*  Click '''Finish'''&lt;br /&gt;
&lt;br /&gt;
== Create New Project ==&lt;br /&gt;
At minimum, you need a Linker file (loader.ld) and a specific startup file for a new project.  You can copy '''loader.ld''' and '''cr_startup_lpc175x.cpp''' from the sample project into your new project.  To create a new project, follow the steps below:&lt;br /&gt;
*  Go to '''File''' -&amp;gt; '''New''' -&amp;gt; '''C++ Project'''&lt;br /&gt;
*  Under '''ARM Cross Target Application''' click on '''Empty Project'''&lt;br /&gt;
*  On the right side, choose '''ARM Windows GCC (Yagarto)'''&lt;br /&gt;
*  Click '''Finish'''&lt;br /&gt;
&lt;br /&gt;
[[File:eclipse_yagarto.png|center|frame|Development Package uses Yagarto toolchain]]&lt;br /&gt;
&lt;br /&gt;
=== Configure Project Settings ===&lt;br /&gt;
After you create a new project, you've still got several settings to configure!&lt;br /&gt;
*  Right click on your project and go to '''Properties'''&lt;br /&gt;
*  Browse to '''C/C++ Build''' --&amp;gt; '''Settings'''&lt;br /&gt;
*  Click on '''Target Processor''' on the right side and select '''cortex-m3'''&lt;br /&gt;
*  Click on '''Debugging''' and change the '''Debug level''' to '''none'''&lt;br /&gt;
*  Click on '''ARM Yagarto Windows GCC Compiler''' --&amp;gt; '''Directories'''&lt;br /&gt;
*:  Include the directories of your project&lt;br /&gt;
*:  This is so that you will have to #include file's absolute path&lt;br /&gt;
*:  Repeat the same thing for '''ARM Yagarto Windows GCC C++ Compiler'''&lt;br /&gt;
*  Click on '''ARM Yagarto Windows GCC C++ Compiler''' --&amp;gt; '''Miscellaneous'''&lt;br /&gt;
*:  Put check-mark on '''Do not use exceptions'''&lt;br /&gt;
*:  Put check-mark on '''Do not use RTTI'''&lt;br /&gt;
*  You may want to turn on optimizations to '''Os'''&lt;br /&gt;
*: C Optimizations are at '''ARM Yagarto Windows GCC Compiler''' --&amp;gt; '''Optimizations'''&lt;br /&gt;
*: C++ Optimizations are at '''ARM Yagarto Windows GCC C++ Compiler''' --&amp;gt; '''Optimizations'''&lt;br /&gt;
[[File:eclipse_cortex.png|center|frame|Select Processor Type]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Most important project settings involve linker/loader file:'''&lt;br /&gt;
*  Go to '''ARM Yagarto Windows GCC C++ Linker'''&lt;br /&gt;
**  Click on '''General''' and if your '''loader.ld''' file is at project root, type in '''../loader.ld''' next to '''Script file (-T)'''&lt;br /&gt;
**  Put check-mark on '''Do not use standard start files'''&lt;br /&gt;
[[File:eclipse_linker.png|center|frame|Linker Settings]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
== Eclipse Tricks ==&lt;br /&gt;
*  Rename:&lt;br /&gt;
*:  Highlight the name to change then '''Ctrl+Shift+R'''&lt;br /&gt;
*:  Rename occurs globally in your project for all files.&lt;br /&gt;
*  Auto Indent:&lt;br /&gt;
*:  Highlight the code to fix the indentation and press '''Ctrl+I'''&lt;br /&gt;
*  Reformat Code:&lt;br /&gt;
*:  If a lot of code is not formatted, press '''Ctrl+Shift+F'''&lt;/div&gt;</summary>
		<author><name>Preet</name></author>	</entry>

	</feed>