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
- File → New → C Project, select the toolchain you have installed (and want to use).
- Source files are added by: right-click project (in Project Explorer) → Import → General, File system →
Set the linker script
- Go to Project -> Properties -> C/C++ Build -> Settings -> …. Linker -> General
- Set the “Script file (-T) to the linker file for the microcontroller.
- Make sure ‘-nostartfiles’ is unchecked
Add the startup file to the project
- Because of Eclipse bugs, the startup script file may only work if the extension is capital *.S
- Add the startup script to the project
Setup any include directories
- Go to Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes
- Don’t forget to add the ‘arm-non-eabi’ gcc include paths
- Go to Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols