Burn a bootloader to a blank atmega328/atmega328p with an Arduino UNO

a01.optiloader_shield.jpg

 

Build your own optiLoader shield!

You cant use your Arduino UNO as programmer unless you modify it, but i didnt want to do that!

Some people had luck using a Resistor and Capacitor to disable the auto reset feature but it did not work for me (Using an Arduino UNO R2)

So i tried using a parallel port programmer but never got it to work. It seems easy, so if your interested go ahead and try it yourself, but be warned, could lead to frustration :)

Fortunately Bill Westfield wrote optiLoader!

 

The readme file doesent tell you how to connect the blank chip so i asumed that you need an oscillator and a pull up resistor and... well... it worked! (for me)
A nice thing about optiLoader is that is supports multiple chips, even atmega328 (non p) - the cheaper version whithout "pico power" features.
That way you dont have to edit your avrdude's config file, after bootloading a atmega328 the bootloader lies to avrdude telling that he is a atmega328p, keeping em quiet :)

 

You need:

  • Working Arduino (with µC and Bootloader) - optiLoader will run on that one
  • 16MHz oscillator
  • 2 x 22pF ceramic capacitor
  • 10KΩ resistor

Update: 
If your chip comes straight out of the factory it 'should' be fused to work without an external clock -  meaning that you don't need the clock and the two capacitors.
But if you allready burnt a bootloader (even if it was aborted) or your supplier modifed the fuses for some reason - you need them.

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

Breadboard setup looks like this:

a02.optiLoader_bb-min.jpg

 

Powering the circuit over pin 9 is questionable, but seems to work well with this setup (look at optiLoader source files for more info on this).

After downloading optiLoader go to the directory where your sketches reside and create a new directory named 'optiLoader' and put the files inside it.
Structure should look like this:

optiLoader/optiLoader.pde
optiLoader/optiLoader.h

If you use Arduino SDK 1.0 it will ask you if it should rename it to .ino -> Allow that. 
Now upload optiLoader to your arduino and connect the serial monitor (with 19200 Baud) to see what is going on.
You dont even need the serial monitor, but thats the only way to get feedback on the process.

If you plan to make a shield out of this circuit you could learn from my mistakes:
Look at the main image on top of this page, i forgot to leave room to get to the reset button :)

Tags: 
arduino
bootloader
atmega328
atmega328p
a03.optiLoader_bb-min.jpg

 

 

[출처] http://3g1l.com/blog-burn-bootloader-blank-atmega328atmega328p-arduino-uno

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
33 안드로이드 개발 환경 구축(odroid u3) file 졸리운_곰 2016.09.17 2086
32 Android platform 개발 환경 구성 file 졸리운_곰 2016.09.17 570
31 구글 사물인터넷(IoT) 플랫폼 브릴로 (Brillo), Weave 공개 file 졸리운_곰 2015.11.07 992
30 Yocto란? 졸리운_곰 2015.11.07 401
29 [Iot, 사물지능통신] 인텔 에디슨 (Intel Edison) 리뷰 file 졸리운_곰 2015.11.07 520
28 [Yocto] 욕토 프로젝트의 참고 링크 (학습링크) 졸리운_곰 2015.11.07 563
27 아두이노 UNO 회로도, Arduino UNO Schemetic file 졸리운_곰 2015.07.04 2222
26 Intel® Edison Boards, rcad* Schematic Design File file 졸리운_곰 2015.07.04 312
» 아두이노 부트로더 굽기 2 file 졸리운_곰 2015.07.04 670
24 리눅스/임베디드리눅스 커널 분석환경 설치 / How to make analysis enviroment on Linux / Embedded Linux file 졸리운_곰 2015.05.12 866
23 아두이노 부트로더 굽기 졸리운_곰 2015.04.30 551
22 [국가기술자격] 임베디드기사 출제기준 file 졸리운_곰 2015.03.27 403
21 라즈베리파이 강좌모음 링크 file 졸리운_곰 2014.11.11 2938
20 라즈베리파이 클러스터 구축 : Clustering on RaspberryPi.pdf file 졸리운_곰 2014.11.11 658
19 breadboard 빵판 설계 유용한 링크 [오픈소스] 졸리운_곰 2014.10.14 503
18 라즈베리 파이 커널 소스 컴파일 하는 방법 졸리운_곰 2014.09.07 617
17 VHDL10.pdf 다산 세종대학교 file 졸리운_곰 2014.07.27 1113
16 VHDL 설계 개요 (천리안 디지털동호회) file 졸리운_곰 2014.07.27 1095
15 스마트폰을 품은 하드웨어 / 스마트폰 하드웨어 연결 기술 동향 file 졸리운_곰 2014.05.18 871
14 2013년 제1회 임베디드기사 자격증 file 졸리운_곰 2014.01.26 1184
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED