Difference between revisions of "Arduino Bootloader Burned Method"

From Wiki
Jump to: navigation, search
(Burn Bootloader)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
  
Method 1 Use USBTinyUSP as the Programmer
+
==='''Method 1 Use USBTinyUSP as the Programmer'''===
  
  
==='''Preparations'''===  
+
===='''Preparations'''====
 
-USBtinyISP Module (burning tool)
 
-USBtinyISP Module (burning tool)
 
   
 
   
Line 18: Line 18:
 
-USB cable  
 
-USB cable  
  
==='''Wiring''' ===
+
===='''Wiring'''====
 
Connect components as follows. Then connect the buring tool USBtinyISP to the computer by a USB cable. You can connect the Uno later because the UNO will take power from the USBtinyISP.
 
Connect components as follows. Then connect the buring tool USBtinyISP to the computer by a USB cable. You can connect the Uno later because the UNO will take power from the USBtinyISP.
  
[[File:b1.jpg]]
+
[[File:basssss1.jpg]]
  
 
Arduino Uno R3 has two ICSP headers: one for the ATmega16U2 and one for the ATmega328. To reflash the bootloader on this board, you would use just the ICSP header for the ATmega328
 
Arduino Uno R3 has two ICSP headers: one for the ATmega16U2 and one for the ATmega328. To reflash the bootloader on this board, you would use just the ICSP header for the ATmega328
  
 
::::::::USBtinyISP Module -------- Uno
 
::::::::USBtinyISP Module -------- Uno
:::::::::MOSI  ------------- MOSI
+
::::::::::MOSI  --------------- MOSI
MISO MISO
+
::::::::::MISO --------------- MISO
RST RST
+
::::::::::RST --------------- RST
SCK SCK
+
::::::::::SCK --------------- SCK
VCC VCC
+
::::::::::VCC --------------- VCC
GND GND
+
::::::::::GND --------------- GND
  
Burn Bootloader
+
[[File:bassssss2.jpg]]
 +
 
 +
===='''Burn Bootloader'''====
 
1)Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.
 
1)Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.
  
2) Choose Programmer USBTinyISP here
+
[[File:bassssss3.jpg]]
 +
 
 +
2)Choose Programmer USBTinyISP here
 +
 
 +
[[File:bsssssa4.jpg]]
  
 
3)Click Burn Bootloader
 
3)Click Burn Bootloader
 +
 +
[[File:bassssss5.jpg]]
  
 
4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.
 
4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.
  
 +
[[File:bassssss6.jpg]]
  
 +
==='''Method2 Use Uno or Duemilanove as the programmer'''===
 +
<font color="red">Note: After testing, this kind of method just used successfully in Arduino Duemilanove, arduino nano, arduino uno who use 328P.</font>
  
Method2 Use Uno or Duemilanove as the programmer
+
===='''Preparations''' ====
Note: After testing, this kind of method just used successfully in Arduino Duemilanove, arduino nano, arduino uno who use 328P.
+
Preparations  
+
 
-2 Arduino Board  ( One as the Prammer and one need to burn bootloader)
 
-2 Arduino Board  ( One as the Prammer and one need to burn bootloader)
 +
 
-PC
 
-PC
 +
 
-Arduino IDE
 
-Arduino IDE
 +
 
-USB cable  
 
-USB cable  
Upload code to the Programmer
+
 
 +
===='''Upload code to the Programmer'''====
 
Open ArduinoISP.ino in File->Examples-> ArduinoISP and upload it to your programmer.  
 
Open ArduinoISP.ino in File->Examples-> ArduinoISP and upload it to your programmer.  
 +
 
After Upload, it will basically act as an AVR programmer. This isn’t really recommended for production of boards, or boards with lots of memory, but, in a pinch, it works pretty well. Also as of this writing the code only works on ATmega328 boards.  
 
After Upload, it will basically act as an AVR programmer. This isn’t really recommended for production of boards, or boards with lots of memory, but, in a pinch, it works pretty well. Also as of this writing the code only works on ATmega328 boards.  
Wiring  
+
 
 +
===='''Wiring''' ====
 
Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.)
 
Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.)
  
 +
[[File:basssss7.jpg]]
  
Uno Uno
+
::::::::::Uno ---------- Uno
MOSI MOSI
+
::::::::::MOSI --------- MOSI
MISO MISO
+
::::::::::MISO --------- MISO
RST RST
+
::::::::::RST ---------- RST
SCK SCK
+
::::::::::SCK ---------- SCK
VCC VCC
+
::::::::::VCC ---------- VCC
GND GND
+
::::::::::GND ---------- GND
  
 +
[[File:bassss8.jpg]]
  
 +
[[File:basssss9.jpg]]
  
Burn Bootloader
 
1) Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.
 
  
2) Choose Programmer Arduino as ISP here.
+
===='''Burn Bootloader'''====
 +
1)Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.
 +
 
 +
[[File:basssss10.jpg]]
 +
 
 +
2)Choose Programmer Arduino as ISP here.
 +
 
 +
[[File:basssss11.jpg]]
  
 
3) Click Burn Bootloader
 
3) Click Burn Bootloader
 +
 +
[[File:bsssssa12.jpg]]
  
 
4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.
 
4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.
  
For details, please refer to https://www.arduino.cc/en/Tutorial/ArduinoISP
+
[[File:bassssss13.jpg]]
 +
 
 +
For details, please refer to <font color="blue">https://www.arduino.cc/en/Tutorial/ArduinoISP</font>

Latest revision as of 07:55, 4 August 2016

Introduction

When you have chosen the right board and port, and there is no connection between TX/RX and the circuit. If you still fail to deliver the code, the bootloader of your board may have lost, then you need to re-burn the bootloader to your board. Just take how to burn it to UNO as an example, there are two ways, if you already have one USBtinyUSP, the burning will be much easier, if you don’t have one, you can use UNO or Duemilanove as the programmer.


Method 1 Use USBTinyUSP as the Programmer

Preparations

-USBtinyISP Module (burning tool)

-Arduino Board (use Uno here)

-PC

-Arduino IDE

-USB cable

Wiring

Connect components as follows. Then connect the buring tool USBtinyISP to the computer by a USB cable. You can connect the Uno later because the UNO will take power from the USBtinyISP.

Basssss1.jpg

Arduino Uno R3 has two ICSP headers: one for the ATmega16U2 and one for the ATmega328. To reflash the bootloader on this board, you would use just the ICSP header for the ATmega328

USBtinyISP Module -------- Uno
MOSI --------------- MOSI
MISO --------------- MISO
RST --------------- RST
SCK --------------- SCK
VCC --------------- VCC
GND --------------- GND

Bassssss2.jpg

Burn Bootloader

1)Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.

Bassssss3.jpg

2)Choose Programmer USBTinyISP here

Bsssssa4.jpg

3)Click Burn Bootloader

Bassssss5.jpg

4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.

Bassssss6.jpg

Method2 Use Uno or Duemilanove as the programmer

Note: After testing, this kind of method just used successfully in Arduino Duemilanove, arduino nano, arduino uno who use 328P.

Preparations

-2 Arduino Board ( One as the Prammer and one need to burn bootloader)

-PC

-Arduino IDE

-USB cable

Upload code to the Programmer

Open ArduinoISP.ino in File->Examples-> ArduinoISP and upload it to your programmer.

After Upload, it will basically act as an AVR programmer. This isn’t really recommended for production of boards, or boards with lots of memory, but, in a pinch, it works pretty well. Also as of this writing the code only works on ATmega328 boards.

Wiring

Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.)

Basssss7.jpg

Uno ---------- Uno
MOSI --------- MOSI
MISO --------- MISO
RST ---------- RST
SCK ---------- SCK
VCC ---------- VCC
GND ---------- GND

Bassss8.jpg

Basssss9.jpg


Burn Bootloader

1)Open the Arduino IDE and choose your board type. What should be burnt here is UNO, so choose UNO.

Basssss10.jpg

2)Choose Programmer Arduino as ISP here.

Basssss11.jpg

3) Click Burn Bootloader

Bsssssa12.jpg

4)Wait for a while and if there appears Done Burning bootloader in IDE. It indicates that you have uploaded the bootloader successfully.

Bassssss13.jpg

For details, please refer to https://www.arduino.cc/en/Tutorial/ArduinoISP