Create Arduino Generic Project (Last Edit: Oct 13 2012 19:42:43)
RecentChanges Edit Search GoodStyle
Referenced By: ArduinoHowTo, CreateArduinoHallSensor, CreateArduinoLcdLibrary, CreateArduinoLcdTest, CreateArduinoLedBlink

This creates and configures a generic eclipse Application Project for all Arduino projects

All the instructions below use "ArduinoProjectX" as the project name. Replace it with the correct name.

Create the base project
Configure for the Arduino DueMilaNove?
Configure AVRDude? for the Arduino
   avrdude -pm328p -cstk500v1 -P/dev/ttyUSB0 -b57600 -Uflash:w:ArduinoProjectX.hex:a

   for the UNO:
   avrdude -pm328p -cstk500v1 -P/dev/ttyUSB0 -b115200 -Uflash:w:ArduinoProjectX.hex:a

Configure the compiler/linker settings
Configure Additional Tools
Configure Assembler
   "${workspace_loc:/ArduinoCore}"

Configure C Compiler
   "${workspace_loc:/ArduinoCore}"

Configure Cplusplus Compiler
   "${workspace_loc:/ArduinoCore}"

Configure Linker
 ${COMMAND} --cref -s -Os ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} -lm ${FLAGS}
   "${workspace_loc:/ArduinoCore/Debug}"

Print Size
Save all settings