|
| 1 | +--- |
| 2 | +title: "Configure GIGA R1 WiFi for Over-The-Air (OTA) uploads" |
| 3 | +--- |
| 4 | + |
| 5 | +Learn how to enable [Over-The-Air (OTA) uploads](https://docs.arduino.cc/arduino-cloud/features/ota-getting-started/) for your GIGA R1 WiFi board. |
| 6 | + |
| 7 | +Follow these steps if you experience any of these errors when attempting an OTA upload: |
| 8 | + |
| 9 | +* `Error while mounting the filesystem. Err = -5` |
| 10 | +* `Arduino_Portenta_OTA::begin() failed with error code -3` |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## 1. Connect your GIGA R1 WiFi board to Arduino IDE |
| 15 | + |
| 16 | +> **Note:** The required sketch examples are currently not available in the Web Editor. |
| 17 | +
|
| 18 | +1. Open Arduino IDE. |
| 19 | + |
| 20 | +1. Connect your GIGA R1 WiFi to your computer with a USB-C cable. |
| 21 | + |
| 22 | +1. Open the board selector and **Arduino Giga R1** or use the Tools > Port and Tools > Board menus. |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## 2. Format the flash memory |
| 27 | + |
| 28 | +First, you need to format the board's Quad Serial Peripheral Interface (QSPI) flash memory. |
| 29 | + |
| 30 | +**Follow these steps:** |
| 31 | + |
| 32 | +1. Connect your GIGA R1 WiFi to your computer using a USB-C cable. |
| 33 | + |
| 34 | +1. Select your GIGA R1 WiFi in the board selector, or use the _Tools > Port_ and _Tools > Board_ menus. |
| 35 | + |
| 36 | +1. In the top menu bar, open **File > Examples** list. Under the _Examples for Arduino Giga R1_ group, select **STM32H747_System > QSPIFormat**. |
| 37 | + |
| 38 | +1. Click  **Upload** and wait for the sketch upload to complete. |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +<a id="flash-the-wi-fi-firmware"></a> |
| 43 | + |
| 44 | +## 3. Flash the Wi-Fi firmware |
| 45 | + |
| 46 | +Flash the latest Wi-Fi firmware version to the board. |
| 47 | + |
| 48 | +**Follow these steps:** |
| 49 | + |
| 50 | +1. In the top menu bar, open **File > Examples > STM32H747_System > WiFiFirmwareUpdater**. |
| 51 | + |
| 52 | +1. Click  **Upload** to upload the sketch. |
| 53 | + |
| 54 | +1. Open the Serial Monitor using one of these methods: |
| 55 | + |
| 56 | + * Click the  button in the top-right corner. |
| 57 | + |
| 58 | + * Select _Tools > Serial Monitor_ in the menu bar. |
| 59 | + |
| 60 | +1. If the Serial Monitor is empty, run the sketch again by pressing the **RST** button on the board. |
| 61 | + |
| 62 | +  |
| 63 | + |
| 64 | +1. If you get this message: |
| 65 | + |
| 66 | + `A WiFi firmware is already installed. Do you want to install the firmware anyway? Y/[n]` |
| 67 | + |
| 68 | + If you do, type `Y` into the text field and press <kbd>Enter</kbd> to send. |
| 69 | + |
| 70 | +1. Wait until `Firmware and certificates updated!` appears in the Serial Monitor output. |
0 commit comments