software_eclipse

digifant edited this page Aug 18, 2015 · 2 revisions

How to setup your eclipse development environment

How to setup your eclipse development environment under windows or linux.

AVR GNU Tool Chain

Windows

Install WinAVR (http://winavr.sourceforge.net/) into the default location.

Windows 8.1 (32 / 64bit) needs a fixed dll (just copy into the utils\bin directory of your WinAVR directory): http://www.madwizard.org/download/electronics/msys-1.0-vista64.zip

Linux

Eclipse

build the sourcecode

  • set the build configurations for both projects to Release: right click on the 2 projects -> Build Configurations -> Set Active -> Release
  • build first the multidisplay-lib: right click on the project -> build project
  • build the main multidisplay project: right click on the project -> build project
  • customize the multidisplay sourcecode the your car environment: see #defines in MultidisplayDefines.h
  • after changing something in MultdisplayDefines.h you must rebuild the project!
  • to update your local project: right click on the project -> tream -> update to HEAD

flash the binary out of eclipse (avrdude)

It's advisable to use the avrdude which comes with the arduino IDE (http://arduino.cc/).

  • custom avrdude path in preferences->avr->paths: select the avrdude path from the arduino ide
  • custom avrdude configuration file in preferences->avr->avrdude: select the avrdude.conf file from the arduino ide
  • restart eclipse

the programmer configuration is stored in the global eclipse settings and must be created by hand.

  1. go to multidisplay project properties
  2. avr -> avrdude -> new programmer configuration
  3. Arduino Duemilanove:
  • programmer hardware: Atmel STK500 Version 1.x firmware
  • baudrate 57600
  1. Seeedunio Mega 1260:
  • programmer hardware: Atmel STK500 Version 2.x firmware
  • baudrate 57600
  1. Seeedunio Mega 2560:
  • programmer hardware: wiring (only arduino ide avrdude has this programmer hardware)
  • baudrate 115200
  1. set serial port. under linux, its typically /dev/ttyUSB0
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.