USBasp README

AVR 강좌입니다.

USBasp README

Postby song9063 » Mon Jun 08, 2009 2:00 pm

이 문서는 USBasp의 README 파일이다.

USBasp는 Atmel사의 AVR controller들을 위한 USB in-circuit programmer이다.
ATMega48이나 ATMega8로 구성되어있다. 이 프로그래머는 내장된 USB 드라이버를 사용하므로
별도의 다른 USB 장치가 필요없다.

특징 :
- 다양한 플랫폼에서 작동한다. Linux, Mac OS X, Windows상에서 테스트 되었다.
- 특정 컨트롤러나 smd 소자가 없어도 된다.
- 초당 5kBytes이상의 속도로 프로그래밍이 가능하다.
- SCK 옵션으로 1.5MHz이하의 클럭속도를 지원한다.
- 직렬 인터페이스를 지원한다. ( 예 : 디버깅 )

라이센스
이 프로젝트는 오픈소스 라이센스 기반의 AVR USB 드라이버를 내장하고 있다.
GNU GPL version 2.
USBasp도 동일한 라이센스 정책으로 배포된다. 라이센스에 대한 자세한 정보는
"firmware/usbdrv/License.txt" 파일을 참조하기 바란다.

USBasp는 OBJECTIVE DEVELOPMENT GnmH사의 USB 드라이버를
기반으로 만들어졌다. "firmware/usbdrv/" 경로에서 자세한 정보를 얻을 수 있다.

제한
하드웨어:
본 패키지는 회로도를 포함하고 있다. 이 회로도는 5V를 사용하는 시스템 기준으로 작성되었으며
그 외의 시스템에서 사용하기 위해서는 전압을 변환시키는 별도의 장치가 필요하다.

펌웨어:
이 펌웨어는 USB Suspend 모드를 지원하지 않는다.
하드웨어상에는 양 방향 직렬 인터페이스 모드가 존재하나 아직 펌웨어에서는
이를 지원하지 않는다.

컴파일된 버젼 사용하기
펌웨어:
J2 점퍼(Self Programming)를 셋팅하고(쇼트핀을 이용하여) 아래의 파일들로 USBasp의 펌웨어를
업데이트 할 수 있다.

"bin/firmware/usbasp.atmega48.xxxx-xx-xx.hex"
또는 "bin/firmware/usbasp.atmega8.xxxx-xx-xx.hex"

외부 크리스탈을 위해서 반드시 퓨즈비트를 바꾸어야 한다.( "make fuses" 참고 )

# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef
# TARGET=atmega48 HFUSE=0xdd LFUSE=0xff

윈도우상에서:
윈도우를 실행하고 USBasp를 컴퓨터에 연결한다. 윈도우즈가 드라이버를 물으면
"bin/win-driver"를 선택한다. 윈도우2k나 XP상에서는 인증되지 않았다는 경고를 표시할 것이다.
이 경고를 무시하고 설치를 진행하면 된다.

드라이버를 설치한 후 avrdude를 실행한다.
예 :
1. 터미널 모드에 진입한 후 아래의 명령어로 AT90S2313으로 연결한다.
avrdude -c usbasp -p at90s2313 -t
2. main.hex파일을 Atmega8의 플래시에 기록한다
avrdude -c usbasp -p atmega8 -U flash:w:main.hex

점퍼 설정:
J1 Power target
USB의 5V 전압을 사용한다. 이 옵션을 사용하기 전에 반드시 회로가 쇼트되지 않는지
확인을 해야만한다. 조심하지 않는다면 아까운 컨트롤러가 사망할 것이다.

J2 Jumper for firmware upgradde ( self-upgradeable이 아님 )
이 점퍼를 설정하면 다른 프로그래머를 사용하여 USBasp상의 ATMega(4)8의 플래시
프로그래밍을 하게 된다.

J3 SCK option
만약 대상 컨트롤러의 클럭이 1.5MHz 보다 작다면 반드시 이 점퍼를 설정해야 한다.
점퍼를 설정하게 되면 SCK는 375kHz에서 8kHz가지 떨어지게 된다.

소스코드를 빌드하여 설치하기
펌웨어:
펌웨어를 컴파일하기 위해서
1. AVR 마이크로 콘트롤러를 위한 GNU toolchain을 설치한다.(avr-gcc, avr-libc)
2. firmware/ 폴더로 진입한다.
3. "make main.hex"를 타이핑하여 실행한다.
4. uisp나 avrdude를 사용하여("make flash"옵션을 확인해야함) ATMega(4)8에 "main.hex"파일을 다운로드한다. 펌웨어를 다운로드하기 위해서는 반드시 USBasp의 J2를 설정해야 된다.
외부 크리스탈에 대한 퓨즈비트를 반드시 변경해주어야 한다.( Makefile의 "make fuses" 옵션을 확인 )

소프트웨어( avrdude ):
AVRDUDE는 5.2버전 이후로 USBasp를 지원한다.
-Linux-
1. libusb를 설치한다. ( http://libusb.sourceforge.net )
2. 최신버젼의 avrdude를 다운받는다. ( http://download.savannah.gnu.org/releases/avrdude/ )
3. avrdude-X.X.X 폴더에 진입한다.
4. 자신의 환경에 맞게 설정한다.
./bootstrap
./configure
5. 컴파일하고 설치한다.
make
make install

-Windows(Cygwin을 사용)-
1.아래의 사이트에서 lubusb-win32-device-bin-x.x.x.x.tar.gz를 다운받고 압축해제한다.
http://libusb-win32.sourceforge.net/

2. 커맨드 창을 열고
lib/gcc/libusb.a 를 lib-path로 복사한다.
include/usb.h 파일을 include-path로 복사한다.

cd avrdude
./configure LDFLAGS="-static" --enable-versioned-doc=no
make

Darwin/MacOS X에서는
./configure를 수행한 후에 아래와 같이 Makefile을 수정한다.
"avrdude_CPPFLAGS"를 "AM_CPPFLAGS"로.

배포된 파일
readme.txt 지금 읽고있는 문서입니다.
firmware 펌웨어의 소스코드
firmware/usbdrv AVR USB 드라이버
firmware/usbdrv/License.txt AVR USB드라이버와 USBasp의 라이센스
circuit 회로도의 PDF파일과 EAGLE포맷의 파일
bin 컴파일된 프로그램
bin/win-driver Windows용 드라이버
bin/firmware 컴파일된 펌웨어

추가 정보
USBasp에 대한 더 많은 정보를 얻기위해서는 아래의 URL로 접속해보시면 됩니다.

USBasp http://www.fischl.de/usbasp/

Firmware-only AVR USB driver http://www.obdev.at/products/avrusb/
avrdude http://www.nongnu.org/avrdude/
libusb http://libusb.sourceforge.net/
libusb-win32 http://libusb-win32.sourceforge.net/

2009-02-28 Thomas Fischl «tfischl@gmx.de»
http://www.fischl.de

Translated for Korean 2009-04-02 Song Jin Young «caddsjy@gmail.com»
http://www.busang.net/usbasp
song9063
Site Admin
 
Posts: 6
Joined: Sun Jun 07, 2009 11:43 am

dsvgtr

Postby 99244486265477 » Wed Aug 19, 2009 5:23 am

99244486265477
 
Posts: 1
Joined: Tue Aug 11, 2009 7:32 am

some important guidelines

Postby imbd852 » Wed Sep 09, 2009 4:16 pm

Before unpacking your wedding dress, make sure that you have a clean, uncluttered area in which to spread the white wedding dress out away from food, pens, children, pets etc. Your hands should be clean and dry, and it's wise to remove any jewellery that could snag the fabric of the wedding dress. Ideally, wear fine cotton gloves when handing or moving the plus size wedding dresses
imbd852
 
Posts: 62
Joined: Tue Sep 08, 2009 2:39 am

mom said

Postby imbd852 » Thu Sep 10, 2009 2:44 pm

my mom said she couldn't wait to relax my remy lace wigs..it was always big and hard to handle lmao... and she had bought a full lace wig for me athttp://www.royalmewigs.com, i really like it, and also my mom decide to buy a lace front wig for herself, maybe sotck lace wigs or cheap lace wigs.
imbd852
 
Posts: 62
Joined: Tue Sep 08, 2009 2:39 am

Belts silent

Postby BELTS86748 » Mon Sep 14, 2009 5:18 am

I do not know whether intentionally or unintentionally, Men's belts for a small island just returned from doing some kind of Gucci belts tourism promotion, leather belts but do not know if it is what the publicity that such a kind of meaning. Sometimes, I selfishly ask myself, in order to share of outsiders is not the beauty of the original damage to the louis vuitton belts beautiful atmosphere of noise and garbage will not be watered down, we should not keep silent hermes belts.
BELTS86748
 
Posts: 31
Joined: Mon Sep 14, 2009 2:31 am

rr

Postby dsds609653 » Tue Sep 15, 2009 10:08 am

dsds609653
 
Posts: 7
Joined: Sat Sep 12, 2009 9:07 am

578.21

Postby rsgoldrsgolds » Sun Sep 20, 2009 6:09 am

Best Service Cheapest RuneScape Gold, Please come to www.rsgoldsell.com
rsgoldrsgolds
 
Posts: 285
Joined: Sat Sep 05, 2009 6:19 am

295.30

Postby rsgoldrsgolds » Fri Sep 25, 2009 5:52 am

Best Service Cheapest RuneScape Gold, Please come to www.rsgoldsell.com
rsgoldrsgolds
 
Posts: 285
Joined: Sat Sep 05, 2009 6:19 am


xx

Postby xcrd0153053 » Tue Sep 29, 2009 10:34 am

xcrd0153053
 
Posts: 14
Joined: Sat Sep 26, 2009 9:20 am

Next

Return to AVR 강좌

Who is online

Users browsing this forum: No registered users and 1 guest

cron