Difference between revisions of "Platforms atmega"
(→Dependencies) |
(→Dependencies) |
||
Line 14: | Line 14: | ||
sudo apt-get install binutils-avr gcc-avr avr-libc avr-dude |
sudo apt-get install binutils-avr gcc-avr avr-libc avr-dude |
||
For example, in MacOS X do this to install them (prior to that you need [ |
For example, in MacOS X do this to install them (prior to that you need [http://www.macports.org/ MacPorts] installed): |
||
sudo port install avr-binutils |
sudo port install avr-binutils |
||
Line 23: | Line 23: | ||
'''Warning''': older avr-gcc and avr-libc version (prior 4.3.4) do not support ATMega328P micro controller, which is used in MansOS. If your distribution has an older avr-gcc, you can compile AVR toolchain by hand. |
'''Warning''': older avr-gcc and avr-libc version (prior 4.3.4) do not support ATMega328P micro controller, which is used in MansOS. 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: |
'''Warning''': If you have TinyOS installed from [http://tinyos.stanford.edu/tinyos/ 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 |
sudo apt-get remove avr-binutils-tinyos avr-gcc-tinyos avr-libc-tinyos |
Revision as of 23:48, 19 February 2011
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: binutils-avr, gcc-avr, avr-libc, avr-dude. For example, in Ubuntu do this to install them:
sudo apt-get install binutils-avr gcc-avr avr-libc avr-dude
For example, in MacOS X do this to install them (prior to that you need MacPorts installed):
sudo port install avr-binutils sudo port install avr-gcc sudo port install avr-libc sudo port install avrdude
Warning: older avr-gcc and avr-libc version (prior 4.3.4) do not support ATMega328P micro controller, which is used in MansOS. If your distribution has an older avr-gcc, you can compile AVR toolchain by hand.
Warning: If you have TinyOS installed from 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