You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -3,44 +3,44 @@ Arduino-AVRISPmkII-workaround
3
3
4
4
A **workaround** for [Arduino/#2986](https://github.com/arduino/Arduino/issues/2986). Some people are getting the error message: `avrdude: usbdev_open(): did not find any USB device "usb"` when trying to **Burn Bootloader** using the **AVRISP mkII** programmer under [Arduino](http://arduino.cc) IDE 1.6.x. The problem is that the two avrdude commands are sent without enough delay between them.
5
5
6
-
This **workaround** adds an **AVRISP mkII Burn Bootloader** option to **Tools>Programmer**. This programmer option causes the **erase** and **bootloader** steps to be done in the first avrdude command so burning the bootloader is accomplished successfully even though the second avrdude command fails.
6
+
This **workaround** adds an **AVRISP mkII Burn Bootloader** option to **Tools > Programmer**. This programmer option causes the **erase** and **bootloader** steps to be done in the first avrdude command so burning the bootloader is accomplished successfully even though the second avrdude command fails as usual.
7
7
8
8
#### Comparison With Alternative **Workaround**
9
9
Another **workaround** has been presented in the Arduino Forum by dmjlambert: http://forum.arduino.cc/index.php?topic=345838 here is a comparison of Arduino-AVRISPmkII-workaround vs the dmjlambert **workaround**:
10
10
##### Pros
11
-
- Doesn't require modification of any Arduino or other hardware core files
12
-
- Doesn't need to be redone every time the Arduino IDE or any hardware core with a platform.txt is updated
13
-
- Doesn't affect any programmer except for AVRISP mkII
11
+
- Doesn't require modification of any Arduino or other hardware core files.
12
+
- Doesn't need to be redone every time the Arduino IDE or any hardware core with a platform.txt is updated.
13
+
- Doesn't affect any programmer except for AVRISP mkII.
14
14
15
15
##### Cons
16
-
- Burn Bootloader appears to fail even when successful
16
+
- Burn Bootloader appears to fail even when successful.
17
17
18
18
19
19
#### Installation
20
-
There are two options for installing Arduino-AVRISPmkII-workaround
20
+
There are two options for installing Arduino-AVRISPmkII-workaround:
21
21
##### Boards Manager
22
22
This installation method requires Arduino IDE version 1.6.4 or greater.
23
23
- Open the Arduino IDE.
24
24
- Open the **File > Preferences** menu item.
25
-
- Enter the following URL in **Additional Boards Manager URLs**: https://per1234.github.io/Arduino-AVRISPmkII-fix/package_per1234_Arduino-AVRISPmkII-fix_index.json
25
+
- Enter the following URL in **Additional Boards Manager URLs**: https://per1234.github.io/Arduino-AVRISPmkII-fix/package_per1234_Arduino-AVRISPmkII-fix_index.json.
26
26
- Open the **Tools > Board > Boards Manager...** menu item.
27
27
- Wait for the platform indexes to finish downloading.
28
28
- Scroll down until you see the **Arduino-AVRISPmkII-workaround** entry and click on it.
29
-
- Click Install.
29
+
- Click **Install**.
30
30
- After installation is complete close the Boards Manager window.
31
-
- If using Arduino IDE previous to v1.6.6 you may need to restart the IDE to make the **AVRISP mkII(workaround)** programmer appear in the **Tools>Programmer** menu.
31
+
- If using Arduino IDE previous to v1.6.6 you may need to restart the IDE to make the **AVRISP mkII(workaround)** programmer appear in the **Tools > Programmer** menu.
32
32
33
33
##### Manual Installation
34
-
- Download the Arduino-AVRISPmkII-workaround files here: https://github.com/per1234/Arduino-AVRISPmkII-fix/archive/master.zip
35
-
- Extract the .zip file
34
+
- Download the Arduino-AVRISPmkII-workaround files here: https://github.com/per1234/Arduino-AVRISPmkII-fix/archive/master.zip.
35
+
- Extract the .zip file.
36
36
- Copy the extracted folder inside your sketchbook/hardware folder.
- The bootloader will be burned to your Arduino but then the avrdude output will fail with the error message `avrdude: usbdev_open(): did not find any USB device "usb"`. This is because the second avrdude command failed as it will do with **Tools>Programmer>AVRISP mkII**, however if you examine the avrdude output fully you will see that the first command was successful and the bootloader was burned in that command.
- Select the correct board from **Tools > Board**.
45
+
- Click **Tools > Burn Bootloader**.
46
+
- The bootloader will be burned to your Arduino but then the avrdude output will fail with the error message `avrdude: usbdev_open(): did not find any USB device "usb"`. This is because the second avrdude command failed as it will do with **Tools > Programmer > AVRISP mkII**, however if you enable **File > Preferences > Show verbose output during: upload**(check) and examine the avrdude output fully you will see that the first command was successful and the bootloader was burned in that command.
0 commit comments