Skip to content

Commit

Permalink
Merge pull request #428 from arduino/update-dfu-articles
Browse files Browse the repository at this point in the history
Update dfu articles [HC-1230]
  • Loading branch information
Renat0Ribeir0 authored Oct 9, 2024
2 parents e444559 + f1542a3 commit 67452ac
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
title: "Flash USB-to-serial firmware in DFU mode"
title: "Flash the USB-to-serial firmware for UNO (Rev3 and earlier) and Mega boards"
id: 4408887452434
---

The following boards use either an Atmega16U2 or Atmega8U2 chip as a USB-to-serial converter:

* Arduino UNO
* Arduino UNO Rev3
* Arduino UNO (Rev3 or earlier)
* Arduino Mega
* Arduino Mega2560 Rev3
* Arduino MegaADK Rev3

The converter chip firmware can be flashed with a computer by setting the board to **DFU mode** (Device Firmware Update).
The converter chip firmware in these boards can be flashed with a computer by setting the board to **DFU mode** (Device Firmware Update). You may want to use this procedure to restore USB-to-serial functionality if the converter has become corrupted or is not working properly, and resolve communication issues between the board and your computer.

> [!NOTE]
> This article does _not_ apply to the Uno WiFi Rev2, which uses a different chip with closed source firmware.
> This article does _not_ apply to the UNO WiFi Rev2, UNO R4 WiFi, and UNO R4 Minima.
## 1. Get the firmware

Expand All @@ -27,7 +26,7 @@ Within the platform directory, the usb to serial firmware is found in `firmwares
| Arduino Mega2560 Rev3 | Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex |
| Arduino MegaADK Rev3 | Arduino-usbserial-atmega16u2-MegaADK-Rev3.hex |
| Arduino UNO Rev3 | Arduino-usbserial-atmega16u2-Uno-Rev3.hex |
| Arduino UNO | Arduino-usbserial-uno.hex |
| Arduino UNO (Rev1/Rev2) | Arduino-usbserial-uno.hex |
| Arduino Mega | Arduino-usbserial-mega.hex |

## 2. Program the chip with the firmware
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "If Arduino UNO (Rev3 or earlier) or Mega is not recognized by the computer"
id: 4411209176722
---

Missing or corrupted **USB-to-Serial** firmware can cause UNO (Rev1 and Rev3) and Mega boards to be recognized as any of the following:

- Unknown Device
- Composite Device
- ATmega16u2 DFU
- Atmega8U2 DFU

Resolve the issue by [flashing the USB-to-Serial firmware in DFU (Device Firmware Update) mode](https://support.arduino.cc/hc/en-us/articles/4408887452434).

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Set a board to DFU mode"
title: "Set the Atmega16U2/8U2 chip on UNO (Rev3 or earlier) and Mega boards to DFU mode"
id: 4410804625682
---

UNO (except WiFi Rev2) and Mega boards use either an Atmega16U2 or Atmega8U2 chip as a USB-to-serial converter. By setting a board to **DFU mode** you can [upload USB-to-Serial firmware to the chip](https://support.arduino.cc/hc/en-us/articles/4408887452434-Flash-USB-to-serial-firmware-in-DFU-mode).
UNO (Rev3 or earlier), and Mega boards use either an Atmega16U2 or Atmega8U2 chip as a USB-to-serial converter. By setting a board to **DFU mode** (Device Firmware Update) you can [upload USB-to-Serial firmware to the chip](https://support.arduino.cc/hc/en-us/articles/4408887452434-Flash-USB-to-serial-firmware-in-DFU-mode).

1. Connect the board to your computer

Expand All @@ -17,7 +17,7 @@ The board will reset to DFU mode.

<h2 id="rev1">Short the HWB line (Rev1 models)</h2>

If you're using an Rev1 model, you also need to assert and hold the **HWB line**:
If you're using a Rev1 model, you also need to assert and hold the **HWB line**:

1. Find the two HWB pads on the back of the board.

Expand All @@ -35,4 +35,4 @@ The board will reset to DFU mode.

## Further reading

* [Flash USB-to-Serial firmware in DFU mode](https://support.arduino.cc/hc/en-us/articles/4408887452434-Flash-USB-to-serial-firmware-in-DFU-mode).
* [Flash the USB-to-serial firmware for UNO (Rev3 and earlier) and Mega boards](https://support.arduino.cc/hc/en-us/articles/4408887452434-Flash-USB-to-serial-firmware-in-DFU-mode).

0 comments on commit 67452ac

Please sign in to comment.