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
    screenshot-11072013-09-35-40-pm

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
    screenshot-11072013-09-42-03-pm

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
    image2013-11-9-16-35-44

Setup Symbols

  1. Go to Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols
    screenshot-11102013-12-44-32-pm

Leave a Reply

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