Starting a new project in Eclipse for ARM development

This is a follow up post to my steps on how to setup the Eclipse IDE for free development for ARM based processors. The steps are specific to my particular setup, but I’m hoping they will aid you to some extent.

Creating a new project

Start a new project

  1. File → New → C Project, select the toolchain you have installed (and want to use).
  2. Source files are added by: right-click project (in Project Explorer) → Import → General, File system →

Set the linker script

  1. Go to Project -> Properties -> C/C++ Build -> Settings -> …. Linker -> General
  2. Set the “Script file (-T) to the linker file for the microcontroller.
  3. Make sure ‘-nostartfiles’ is unchecked

Add the startup file to the project

  1. Because of Eclipse bugs, the startup script file may only work if the extension is capital *.S
  2. Add the startup script to the project

Setup any include directories

  1. Go to Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes
  2. Don’t forget to add the ‘arm-non-eabi’ gcc include paths

Setup Symbols

  1. Go to Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols

Leave a Reply

Your email address will not be published. Required fields are marked *