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: content/Hardware Support/GIGA R1/Configure-GIGA-R1-WiFi-Portenta-H7-and-Portenta-Machine-Control-for-Over-The-Air-OTA-uploads.md
+47-58Lines changed: 47 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,87 +5,76 @@ id: 12370721200540
5
5
6
6
Learn how to enable [Over-The-Air (OTA) uploads](https://docs.arduino.cc/arduino-cloud/features/ota-getting-started/) for:
7
7
8
-
* GIGA R1 WiFi
9
-
* Portenta H7
10
-
* Portenta H7 Lite
11
-
* Portenta Machine Control
8
+
- GIGA R1 WiFi
9
+
- Portenta H7
10
+
- Portenta H7 Lite
11
+
- Portenta Machine Control
12
12
13
13
Follow these steps if you experience any of these errors when attempting an OTA upload:
14
14
15
-
*`Error while mounting the filesystem. Err = -5`
16
-
*`Arduino_Portenta_OTA::begin() failed with error code -3`
15
+
-`Error while mounting the filesystem. Err = -5`
16
+
-`Arduino_Portenta_OTA::begin() failed with error code -3`
17
17
18
18
---
19
19
20
-
## 1. Connect your board to Arduino IDE
20
+
Follow these steps to partition memory and install the Wi-Fi firmware required for OTA uploads:
21
21
22
-
1. Open Arduino IDE.
22
+
1. Open the memory partitioning sketch:
23
23
24
-
1. Connect the board to your computer with a USB-C cable.
24
+
- Arduino IDE: Ensure that you are using the [latest version of the board package](https://support.arduino.cc/hc/en-us/articles/4404691106066-Update-board-packages-in-Arduino-IDE), then select File > Examples > STM32H747_System > QSPIFormat.
25
25
26
-
1. Select your board in the board selector, or use the _Tools > Port_ and _Tools > Board_ menus.
26
+
- Arduino Cloud Editor: Open the [QSPIFormat example](https://app.arduino.cc/sketches/examples?eid=arduino%2Fhardware%2Fmbed_opta%2F4.4.1%2Flibraries%2FSTM32H747_System%2Fexamples%2FQSPIFormat&slid=mbed_opta%3A4.4.1%3Astm32h747_system){.link-chevron-external} in the Cloud Editor.
27
27
28
-
---
29
-
30
-
## 2. Format the flash memory
31
-
32
-
Format the board's Quad Serial Peripheral Interface (QSPI) flash memory.
33
-
34
-
**Follow these steps:**
35
-
36
-
1. In the top menu bar, open **File > Examples > STM32H747_System > QSPIFormat**.
37
-
38
-
1. Click **Upload** to upload the sketch.
39
-
40
-
1. Open the Serial Monitor using one of these methods:
41
-
42
-
* Click the  button in the top-right corner.
43
-
44
-
* Select _Tools > Serial Monitor_ in the menu bar.
28
+
1. Connect your device to your computer and select the device in the editor.
45
29
46
-
1.If the Serial Monitor is empty, run the sketch again by pressing the **RST** button on the board.
30
+
1.Click **Upload** to upload the sketch to the device.
47
31
48
-
1. This message should appear:
49
-
50
-
`Do you want to use partition scheme 1? Y/[n]`
51
-
`If No, partition scheme 2 will be used.`
52
-
53
-
If you do, type `Y` into the text field and press <kbd>Enter</kbd> to send.
54
-
55
-
1. Followed by this message:
56
-
57
-
`WARNING! Running the sketch all the content of the QSPI flash will be erased. Do you want to proceed? Y/[n]`
58
-
59
-
If you do, type `Y` into the text field and press <kbd>Enter</kbd> to send.
60
-
61
-
1. Wait until `QSPI Flash formatted!` appears in the Serial Monitor output.
62
-
63
-
---
32
+
1. Click the **Serial Monitor** button in the top-right corner or select Tools > Serial Monitor (Arduino IDE only).
64
33
65
-
<aid="flash-the-wi-fi-firmware"></a>
34
+
1. You should see the text below in the serial monitor. If the serial monitor is empty, ensure the sketch has finished uploading and press the RST button on the device to restart the sketch.
66
35
67
-
## 3. Flash the Wi-Fi firmware
36
+
```
37
+
WARNING! Running the sketch all the content of the QSPI flash will be erased.
38
+
The following partitions will be created:
39
+
Partition 1: WiFi firmware and certificates 1MB
40
+
Partition 2: OTA 5MB
41
+
Partition 3: Provisioning KVStore 1MB
42
+
Partition 4: User data / OPTA PLC runtime 7MB
43
+
Do you want to proceed? Y/[n]
44
+
```
68
45
69
-
Flash the latest Wi-Fi firmware version to the board.
46
+
1. Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to proceed.
70
47
71
-
**Follow these steps:**
48
+
1. The following should now appear in the serial monitor:
72
49
73
-
1. In the top menu bar, open **File > Examples > STM32H747_System > WiFiFirmwareUpdater**.
50
+
```
51
+
Do you want to perform a full erase of the QSPI flash before proceeding? Y/[n]
52
+
Note: Full flash erase can take up to one minute.
53
+
```
74
54
75
-
1. Click **Upload** to upload the sketch.
55
+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm.
76
56
77
-
1.Open the Serial Monitor using one of these methods:
57
+
1.The following should now appear in the serial monitor:
78
58
79
-
* Click the  button in the top-right corner.
59
+
```
60
+
Do you want to restore the WiFi firmware and certificates? Y/[n]
61
+
```
80
62
81
-
* Select _Tools > Serial Monitor_ in the menu bar.
63
+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm.
82
64
83
-
1.If the Serial Monitor is empty, run the sketch again by pressing the **RST** button on the board.
65
+
1.The following should now appear in the serial monitor:
84
66
85
-
1. If you get this message:
67
+
```
68
+
Do you want to use LittleFS to format user data partition? Y/[n]
69
+
If No, FatFS will be used to format user partition.
70
+
Note: LittleFS is not supported by the OPTA PLC runtime.
71
+
```
86
72
87
-
`A WiFi firmware is already installed. Do you want to install the firmware anyway? Y/[n]`
73
+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm.
88
74
89
-
If you do, type `Y` into the text field and press <kbd>Enter</kbd> to send.
75
+
1. The process is complete when this message appears in the serial monitor:
90
76
91
-
1. Wait until `Firmware and certificates updated!` appears in the Serial Monitor output.
0 commit comments