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
@@ -3,63 +3,170 @@ title: "Burn the bootloader on GIGA R1 WiFi"
3
3
id: 7991505977116
4
4
---
5
5
6
-
## Before you begin
6
+
Learn how to burn (flash) the bootloader on GIGA R1 WiFi.
7
7
8
-
* Add the **Arduino Mbed OS Giga Boards** to Arduino IDE using the [Boards Manager](https://support.arduino.cc/hc/en-us/articles/360016119519-Add-boards-to-Arduino-IDE).
9
-
*[Download and install the STM32CubeProgrammer from STMicroelectronics](https://www.st.com/en/development-tools/stm32cubeprog.html#st-get-software).
10
-
* You will be required to provide and validate an email address to get a download link.
11
-
* On macOS, you may need to run the executable directly: Right-click the `.app` container and select **Show package contents**, then navigate into `Contents/MacOs`. Double-click the file `SetupSTM32CubeProgrammer-X_Y_Z_macos` executable.
8
+
In this article:
12
9
13
-
## 1. Connect the board in bootloader mode
10
+
*[Prepare your GIGA R1 WiFi for bootloader flashing](#prepare)
11
+
*[Flash the bootloader with dfu-util (recommended)](#dfu-util)
12
+
*[Flash the bootloader with STM32CubeProgrammer](#stm32cubeprogrammer)
13
+
*[Troubleshooting](#troubleshooting)
14
14
15
-
1. With the board unplugged, press the button **BOOT0** and continue to press it.
15
+
---
16
+
17
+
<aid="prepare"></a>
18
+
19
+
## Prepare your GIGA R1 WiFi for bootloader flashing
20
+
21
+
To burn the bootloader on GIGA R1 WiFi, it needs to be connected in DFU mode:
22
+
23
+
1. Connect your GIGA R1 WiFi to your computer using a USB cable.
24
+
25
+
1. Find the two push buttons labeled **BOOT0** and **RST** on the board:
26
+
27
+
1. Press and hold **BOOT0** button.
28
+
29
+

30
+
31
+
1. Keep the **BOOT0** button pressed down, and press the **RST** button once.
32
+
33
+

34
+
35
+
1. Release both buttons. GIGA R1 WiFi will briefly disconnect and reconnect to your computer.
36
+
37
+
---
38
+
39
+
<aid="dfu-util"></a>
40
+
41
+
## Flash the bootloader with dfu-util (recommended)
42
+
43
+
If you've installed the **Arduino Mbed OS Giga Boards** package on your computer using the [Boards Manager in Arduino IDE](https://support.arduino.cc/hc/en-us/articles/360016119519-Add-boards-to-Arduino-IDE) or Arduino CLI, you can use the included **dfu-util** tool to flash the bootloader on your GIGA R1 WiFi board.
44
+
45
+
### Windows
46
+
47
+
1.[Prepare your GIGA R1 WiFI for bootloader flashing](#prepare).
48
+
49
+
1. Open **Command Prompt** by right-clicking in the bottom-left corner of the screen and selecting Command Prompt, or by searching for "cmd" in the taskbar.
<!-- If the board ON LED has lit up then release the BOO0 button. Now keep the board powered on with the USB C cable and continue this procedure -->
73
+
1. If neccessary, modify the package version number (4.0.6) to whichever is installed.
24
74
25
-
## 2. Burn the bootloader using STM32CubeProgrammer
75
+
1. Select the Terminal window and press <kbd>⌘</kbd> + <kbd>V</kbd> to paste the command, then press <kbd>Enter</kbd> to begin flashing the bootloader.
26
76
27
-
1.**[Download the bootloader file](https://github.com/arduino/ArduinoCore-mbed/raw/main/bootloaders/GIGA/bootloader.elf)**[^1].
77
+
### Linux
28
78
29
-
2. Open STM32CubeProgrammer.
79
+
1.[Prepare your GIGA R1 WiFI for bootloader flashing](#prepare).
30
80
31
-
3. Click on the **Open file** tab.
81
+
1. Open your computer's command line application (often referred to as shell, terminal, console, prompt or various other names). Look for it in your launcher, or try the <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd> keyboard shortcut (available on most Linux systems).
32
82
33
-
<!-- This won't upload to Zendesk for some reason: <img src="img/stm32cube-open-file.png" width=800px> -->
1. If neccessary, modify the package version number (4.0.6) to whichever is installed.
88
+
89
+
1. Select the Terminal window and press <kbd>Ctrl</kbd> + <kbd>⇧Shift</kbd> + <kbd>V</kbd> to paste the command, then press <kbd>Enter</kbd> to begin flashing the bootloader.
90
+
91
+
---
92
+
93
+
<aid="stm32cubeprogrammer"></a>
94
+
95
+
## Flash the bootloader with STM32CubeProgrammer
96
+
97
+
If you prefer to use a graphical interface, you can use <aclass="link-external"href="https://www.st.com/en/development-tools/stm32cubeprog.html">STM32CubeProgrammer</a>.
98
+
99
+
> **Note:** To use STM32CubeProgrammer on macOS, you may need to run the executable directly: Right-click the `.app` container and select **Show package contents**, then navigate into `Contents/MacOs`. Double-click the file `SetupSTM32CubeProgrammer-X_Y_Z_macos` executable.
100
+
101
+
1.[Prepare your GIGA R1 WiFI for bootloader flashing](#prepare).
102
+
103
+
1. Open STM32CubeProgrammer and click on **Open file**.
4. Navigate to the [Arduino 15 folder](https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder), then select this file:
107
+
1. Select the bootloader from one of the following locations:
108
+
109
+
* <aclass="link-download"href="https://github.com/arduino/ArduinoCore-mbed/raw/main/bootloaders/GIGA/bootloader.elf">Download the bootloader file</a> and select it from your default download location.
110
+
111
+
* If you've installed the Arduino Mbed OS Giga Boards package, you can also find it inside your [Arduino15 folder](https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder).
1. Right-click on the DFU in FS Mode device and select **Update driver… / Update driver software...** from the context menu.
165
+
1. In the wizard, select **Browse my computer for driver software**.
166
+
1. Select **Let me pick from a list of device drivers on my computer**.
167
+
1. From the list of device classes, select **Universal Serial Bus devices**. If you don’t see it, untick **Show compatible hardware**.
168
+
1. Select **WinUsb Device > WinUsb Device**.
169
+
1. Click **Next**.
170
+
1. Confirm that you want to install the driver.
64
171
65
-
[^1]: If you've installed the **Arduino Mbed OS Giga Boards** package, you can also find it inside your [Arduino15 folder](https://support.arduino.cc/hc/en-us/articles/360018448279-Open-the-Arduino15-folder). The path is `Arduino15/packages/arduino/hardware/mbed_giga/3.9.12/bootloaders/GIGA/bootloader.elf`.
172
+
After installing the driver, try flashing the bootloader with dfu-util again.
0 commit comments