Difference between revisions of "Platforms atmega"

From DiLab
Jump to: navigation, search
(Dependencies)
Line 12: Line 12:
For example, in Ubuntu do this to install them:
For example, in Ubuntu do this to install them:


sudo apt-get install gcc-avr avr-libc
sudo apt-get install binutils-avr gcc-avr avr-libc

'''Warning''': older avr-gcc and avr-libc version do not support ATMega328P micro controller, which is used by default. If your distribution has an older avr-gcc, you can compile AVR toolchain by hand.

'''Warning''': If you have TinyOS installed from http://tinyos.stanford.edu/tinyos/ repository, you must uninstall TinyOS AVR packages which do conflict with the newest versions provided by official Ubuntu repository:
sudo apt-get remove avr-binutils-tinyos avr-gcc-tinyos avr-libc-tinyos

Revision as of 15:38, 2 September 2010

In MansOS, "atmega" is a platform supporting hardware based on the Atmega368 processor, such as Arduino.

Compile example

make atmega

Upload example

make atmega upload

Dependencies

You should have the following packages installed: gcc-avr, avr-libc. For example, in Ubuntu do this to install them:

sudo apt-get install binutils-avr gcc-avr avr-libc

Warning: older avr-gcc and avr-libc version do not support ATMega328P micro controller, which is used by default. If your distribution has an older avr-gcc, you can compile AVR toolchain by hand.

Warning: If you have TinyOS installed from http://tinyos.stanford.edu/tinyos/ repository, you must uninstall TinyOS AVR packages which do conflict with the newest versions provided by official Ubuntu repository:

sudo apt-get remove avr-binutils-tinyos avr-gcc-tinyos avr-libc-tinyos