Difference between revisions of "Platforms atmega"
(New page: "'''atmega'''" is a platform supporting hardware based on the Atmega368 processor, such as Arduino. =====Dependencies===== In Ubuntu you shopuld have the following packages installed: s...) |
(→Dependencies) |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{TocRight}} |
|||
"'''atmega'''" is a platform supporting hardware based on the Atmega368 processor, such as Arduino. |
In MansOS, "'''atmega'''" is a platform supporting hardware based on the Atmega368 processor, such as Arduino. |
||
=== |
===Compile example=== |
||
In Ubuntu you shopuld have the following packages installed: |
|||
⚫ | |||
⚫ | |||
make atmega |
make atmega |
||
⚫ | |||
make atmega upload |
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: |
|||
⚫ | |||
See [[AVR toolchain compilation]] guide. It also includes hints for MacOS X users (including MacOS X Snow Leopard). |
|||
'''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/ 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 |
Latest revision as of 16:26, 13 September 2012
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 avrdude
See AVR toolchain compilation guide. It also includes hints for MacOS X users (including MacOS X Snow Leopard).
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