Skip to content

Commit 3955005

Browse files
committed
Update to use AVRDUDE instead
1 parent b4b871d commit 3955005

File tree

1 file changed

+28
-20
lines changed

1 file changed

+28
-20
lines changed

content/hardware/02.hero/boards/uno-wifi-rev2/tutorials/uno-wifi-rev-2/uno-wifi-r2-chromebook-installation/uno-wifi-r2-chromebook-installation.md

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ The [UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2) is the conn
2121
- You will need to upgrade the firmware using either a **Windows/Mac/Linux** computer, prior to programming it via a Chromebook. Detailed instructions are provided in this tutorial, and the process only takes a few minutes!
2222
- It is only possible to use the [Web Editor](https://create.arduino.cc/editor), an online IDE that is part of the [Arduino Cloud](https://cloud.arduino.cc/).
2323

24-
***Note that only the Web Editor is supported in Chromebooks. It is not possible to configure and upload to UNO WiFi Rev 2 boards via the [IoT Cloud](https://create.arduino.cc/iot/things).***
25-
2624
## Goals
2725

2826
The goals of this project are:
@@ -33,52 +31,60 @@ The goals of this project are:
3331

3432
## Hardware & Software Needed
3533

36-
- [Arduino IDE 1.8.x](https://www.arduino.cc/en/software).
34+
- AVRDUDE (instructions provided in the next section for each OS).
3735
- [Arduino Web Editor](https://create.arduino.cc/).
3836
- [Arduino Create for Education](https://chrome.google.com/webstore/detail/arduino-create-for-educat/elmgohdonjdampbcgefphnlchgocpaij) (Chrome Web Store)
3937
- [Arduino UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2).
4038

41-
***While you won't be using the Arduino IDE directly, you will be utilizing a tool called AVRDUDE that is included in each version of the IDE. If you wish to install just AVRDUDE, please refer to the [GitHub repository](https://github.com/avrdudes/avrdude).***
42-
4339
## Upgrading Firmware
4440

4541
Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a Windows/Mac/Linux computer.
4642

47-
**1.** Make sure you have installed [Arduino IDE 1.8.x](https://www.arduino.cc/en/software).
48-
49-
**2.** Download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**.
43+
First download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**.
5044

5145
![.hex file in your Desktop folder.](assets/hex-file-desktop.png)
5246

53-
**3.** Connect your UNO WiFi Rev2 board to your computer and open your Command Prompt (Windows) or Terminal (Mac/Linux), copy paste the command for your OS from the snippets below.
47+
Connect your UNO WiFi Rev2 board to your computer and follow the instructions for each operative system below.
48+
49+
***It is important that you move the `optiboot_atmega4.hex` file to your desktop folder, otherwise the following commands wont work.***
5450

5551
### Mac
5652

53+
**1.** Download the [AVRDUDE tool for Mac (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-x86_64-apple-darwin12.tar.bz2) and unzip it to your Desktop folder.
54+
55+
**2.** Open a terminal, and run the following command:
56+
5757
```
58-
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/$(whoami)/Desktop/optiboot_atmega4809.hex:i
58+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude -C/Users/$(whoami)/Desktop/avrdude/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/$(whoami)/Desktop/optiboot_atmega4809.hex:i
5959
```
6060

6161
### Windows
6262

63+
**1.** Download the [AVRDUDE tool for Windows (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-i686-w64-mingw32.zip) and unzip it to your Desktop folder.
64+
65+
**2.** Open a command prompt (CMD), and run the following command:
66+
6367
```
64-
"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe" -C "C:/Program Files (x86)/Arduino/hardware/tools/avr/etc/avrdude.conf" -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:%userprofile%\Desktop\optiboot_atmega4809.hex:i
68+
"%userprofile%/Desktop/avrdude/bin/avrdude.exe" -C "%userprofile%/Desktop/avrdude/etc/avrdude.conf" -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:%userprofile%\Desktop\optiboot_atmega4809.hex:i
6569
```
6670

6771
### Linux
6872

69-
In the terminal, navigate to your root directory.
73+
**1.** Download the [AVRDUDE tool for Linux (.zip file)](http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-x86_64-pc-linux-gnu.tar.bz2) and unzip it to your Desktop folder.
74+
75+
**2.** Open a terminal, navigate to your root directory.
7076

7177
```
7278
cd /
7379
```
7480

75-
Then, run the following command:
81+
**3.** Run the following command:
7682

7783
```
78-
home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude -C home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/home/$(whoami)/Desktop/optiboot_atmega4809.hex:i
84+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude -C/Users/$(whoami)/Desktop/avrdude/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/$(whoami)/Desktop/optiboot_atmega4809.hex:i
7985
```
8086

81-
***Please note that on Linux, the path to the AVRDUDE tool may vary.***
87+
### Expected Outcome
8288

8389
This will start a process of uploading the `.hex` file to your board. This will not take long, but make sure you do not disconnect the board from your computer. When finished, you should see the following output in the terminal (screen capture from Windows):
8490

@@ -93,26 +99,26 @@ The above commands utilizes a tool called **AVRDUDE**, which is included in each
9399
**Windows:**
94100

95101
```
96-
"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe"
102+
"%userprofile%/Desktop/avrdude/bin/avrdude.exe"
97103
```
98104

99105
**Mac:**
100106

101107
```
102-
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude
108+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude
103109
```
104110

105111
**Linux:**
106112

107113
```
108-
/home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude
114+
/Users/$(whoami)/Desktop/avrdude/bin/avrdude
109115
```
110116

111117
### Troubleshoot
112118

113119
If the command fails to upgrade the firmware, please make sure that:
114120

115-
- Arduino IDE / AVRDUDE is installed.
121+
- AVRDUDE is accessible (see above instructions). The commands are designed to look for the tool in the `Desktop` folder, so it will need to be unzipped there.
116122
- That you are using a Windows/Mac/Linux computer (remember, this cannot be performed on a Chromebook).
117123
- That you have the `.hex` file in the Desktop folder. The command is written to look for it in that specific folder, so if it is not present, it will not work.
118124

@@ -153,4 +159,6 @@ If things are not working as expected:
153159

154160
## Conclusion
155161

156-
In this tutorial, we learned how to upload sketches to the UNO WiFi Rev 2 board, using the Web Editor on a Chromebook. For more tutorials on the UNO WiFi Rev 2 board, visit the [official documentation](/hardware/uno-wifi-rev2).
162+
In this tutorial, we learned how to prepare the UNO WiFi Rev 2 board, to be used on a Chromebook. This was done by loading a specific hardware to the board, using the **AVRDUDE** tool and some custom commands.
163+
164+
For more tutorials on the UNO WiFi Rev 2 board, visit the [official documentation](/hardware/uno-wifi-rev2).

0 commit comments

Comments
 (0)