Both sides previous revisionPrevious revisionNext revision | Previous revision |
우분투로_임베디드하기 [2010/06/15 07:50] – suapapa | 우분투로_임베디드하기 [2013/08/03 05:04] (current) – external edit 127.0.0.1 |
---|
* 소개 | * 소개 |
===== 설치 ===== | ===== 설치 ===== |
| debian/control |
<code bash> | <code bash> |
| Package: arduino |
| Architecture: all |
| Depends: ${misc:Depends}, gcc-avr, avr-libc, avrdude (>= 5.10-1ubuntu1), default-jre | java6-runtime, librxtx-java (>=2.1.7r2-4ubuntu1) |
| Description: The Arduino libraries and the development environment |
| Arduino is an open-source electronics prototyping platform based on flexible, |
| easy-to-use hardware and software. It's intended for artists, designers, |
| hobbyists, and anyone interested in creating interactive objects or |
| environments. |
| . |
| Arduino can sense the environment by receiving input from a variety of sensors |
| and can affect its surroundings by controlling lights, motors, and other |
| actuators. The microcontroller on the board is programmed using the Arduino |
| programming language (based on Wiring) and the Arduino development environment |
| (based on Processing). Arduino projects can be stand-alone or they can |
| communicate with software on running on a computer |
| (e.g. Flash, Processing, MaxMSP). |
| |
</code> | </code> |
* AVR 크로스 컴파일러 설치 | * AVR 크로스 컴파일러 설치 |
* 개발환경 설치 | * 개발환경 설치 |
| |
====== 프로그래밍 ===== | ====== 프로그래밍 ===== |
<code cpp> | <code cpp> |
} | } |
</code> | </code> |
====== buildLog ====== | ====== 방금 지나간 일 ====== |
| buildlog |
<code> | <code> |
| ... |
| /usr/bin/avr-ar rcs applet/core.a /home/suapapa/apps/arduino-0017/hardware/cores/arduino/WInterrupts.o |
| /usr/bin/avr-ar rcs applet/core.a /home/suapapa/apps/arduino-0017/hardware/cores/arduino/HardwareSerial.o |
| /usr/bin/avr-ar rcs applet/core.a /home/suapapa/apps/arduino-0017/hardware/cores/arduino/WMath.o |
| /usr/bin/avr-ar rcs applet/core.a /home/suapapa/apps/arduino-0017/hardware/cores/arduino/Print.o |
| /usr/bin/avr-gcc -mmcu=atmega8 -I. -gstabs -DF_CPU=16000000 -I/home/suapapa/apps/arduino-0017/hardware/cores/arduino -Os -Wall -Wstrict-prototypes -std=gnu99 -o applet/ClapOn.elf applet/ClapOn.cpp -L. applet/core.a -lm |
| /usr/bin/avr-objcopy -O ihex -R .eeprom applet/ClapOn.elf applet/ClapOn.hex |
| </code> |
| upload |
| <code> |
| ./pulsedtr.py /dev/ttyUSB1 |
| /home/suapapa/apps/arduino-0017/hardware/tools/avrdude -V -F -C /home/suapapa/apps/arduino-0017/hardware/tools/avrdude.conf -p atmega8 -P /dev/ttyUSB1 -c stk500v1 -b 19200 -U flash:w:applet/ClapOn.hex |
</code> | </code> |
| |