Difference between revisions of "Compile a program for attiny13"

From ThorstensHome
Jump to: navigation, search
(Created page with "This is a description how to compile a program for the attiny13 processor. It is based on SUSE 12.2. Other distributions may work similar. * install cross-avr-binutils yast ...")
 
Line 12: Line 12:
 
* tell the system to use these
 
* tell the system to use these
 
  export PATH=/cross:$PATH
 
  export PATH=/cross:$PATH
 +
* now you can build this: http://gitorious.org/avr-gcc-examples/avr-gcc-examples/trees/master/attiny13-blink

Revision as of 12:11, 3 January 2013

This is a description how to compile a program for the attiny13 processor. It is based on SUSE 12.2. Other distributions may work similar.

  • install cross-avr-binutils
yast -i cross-avr-binutils
mkdir /cross
  • link the files to the respective places
ln -s /usr/bin/avr-as /cross/as
ln -s /usr/bin/avr-ld /cross/ld
  • tell the system to use these
export PATH=/cross:$PATH