Skip to content

Modifying the existing Arduino IDE

bombasticbob edited this page Nov 19, 2014 · 11 revisions

In order to implement the changes for the XMega for Arduino project, you will need to modify the Arduino IDE.

Typically this will be stored in '/usr/local/arduino' or '/usr/share/arduino' for operating systems like FreeBSD and Linux.

For Windows, it is typically stored in "C:\Program Files\Arduino" (or, if you hate 'spaces in file names' like me, you put it into "C:\Arduino").

The Arduino consists of some specific directories that contain information about the various board types, the 'core' code for these, and the 'variant' code that applies to specific 'variants'. The XMega for Arduino project adds the 'xmega' core and several variants for the various processors.

Basic Modification Procedure (summarized)

  • Download 'XMega For Arduino' source
  • Apply 'patch.boards.txt' and 'patch.avrdude.conf' (Optionally you can manually modify them)
  • Create a symbolic link (or copy) the 'cores' and 'variants' trees from 'XMega For Arduino'
  • Apply patches for compilers and tools (including 'avrdude') as needed
    NOTE: this may require some significant effort on your part
  • Re-start the Arduino IDE. New board types should now be visible (and fully supported)