Eclipse Installation for NXP LPC2103 (Windows)
{autotoc enabled=yes}
Installation of gcc compiler for Windows
We choice an existing gcc toolchain that is well maintain. It called "devkitARM", which is using by those NDS homebrew programmer. On Windows, it using a Installer/Updater to do the installation.
1) First, download the Updater at: http://devkitpro.org/
2) Run the Updater.
3) Select "Download and install".
4) Select Keep or Remove downloaded files as your wish.
5) Select the component needed. For ARM complie, we just need Minimal System (msys), devkitARM (gcc), Insight (gdb front-end).
6) Final, select the destination folder. Please use the default "C:\devkitPro". If you install to other place, you need to modify the Eclipse project provided later to match your chose.
7) After the installation, let's try it at a DOS prompt.
Installation of Eclipse
1) Download the Eclipse IDE for C/C++ Developers from http://www.eclipse.org/downloads/.
2) Install the Eclipse IDE.
3) Prepare a workspace for you ARM development, example: D:\MyArmProjects
4) Create the TEMP directory C:\Temp if it isn't exist.
5) Download the Eclipse Workspace preferences file "ARM_EclipsePreferences.zip" and decompress to your hard disk (example: D:\Temp).
6) Download the example project example_eclipse_20110120.tar.bz2 and decompress it to your hard disk (example: D:\Temp\example).
7) Start the Eclipse and select the new created workspace.
8) After Eclipse started, a Welcome screen will show. Just close it and get into the IDE.
9) Click [File] -> [Import] to popup the Import Dialog. Select [General] -> [Preferences] and then click [Next].
10) Select the Eclipse Workspace preferences file "ARM_EclipsePreferences.epf", then click [Finish].
11) Your Eclipse workspace is ready. Next is import the example project.
12) Click [File] -> [Import] to popup the Import Dialog. Select [General] -> [Existing Projects into Workspace] and then click [Next].
13) Select the decompressed example project (D:\Temp\example). Select the checkbox [Copy projects into workspace]. Then click [Finish] to start the import.
14) After that, you will see a new project added to the Project Explorer.
15) Right click the project and select [Build Project].
16) If everything goes right, the example.exe will created under "Release" directory. You need to right click the project and select [Refresh] to update the Project Explorer.
If something goes wrong, you should check the Console tab to see whats happen.
Here is the console output for a correct build.
Create your project
You should use the example project as a template to create a new project. If you doing this way, then you can save a lot of time to from setup the building options again. Below is the procedure for that.
1) Right click the example project and select [Copy].
2) Right click the blank area of the Project Explorer and select [Paste]. A "Copy Project" dialog will popup. Enter the name for your new project, then click [OK].
3) You will see your new project at Project Explorer.
4) Click the "+" sign of the new project to expand it. Right click on the "Release" directory and select [Delete] to remove it. After that your project should look like this.
5) After that, your new project is ready for modify.