Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 04d706c

Browse files
authored
Updated with instructions for Cloud Editor [HC-1636] (#525)
* Updated with instructions from "Reset the flash memory on STM32H747-based devices" * Fix unordered list style
1 parent 8a61e9d commit 04d706c

File tree

1 file changed

+47
-58
lines changed

1 file changed

+47
-58
lines changed

‎content/Hardware Support/GIGA R1/Configure-GIGA-R1-WiFi-Portenta-H7-and-Portenta-Machine-Control-for-Over-The-Air-OTA-uploads.md‎

Lines changed: 47 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,87 +5,76 @@ id: 12370721200540
55

66
Learn how to enable [Over-The-Air (OTA) uploads](https://docs.arduino.cc/arduino-cloud/features/ota-getting-started/) for:
77

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
1212

1313
Follow these steps if you experience any of these errors when attempting an OTA upload:
1414

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`
1717

1818
---
1919

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:
2121

22-
1. Open Arduino IDE.
22+
1. Open the memory partitioning sketch:
2323

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.
2525

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.
2727

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 button](img/symbol_upload2.png) **Upload** to upload the sketch.
39-
40-
1. Open the Serial Monitor using one of these methods:
41-
42-
* Click the ![Serial Monitor button](img/symbol_monitor.png) 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.
4529

46-
1. If the Serial Monitor is empty, run the sketch again by pressing the **RST** button on the board.
30+
1. Click ![Upload button](img/symbol_upload2.png)**Upload** to upload the sketch to the device.
4731

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](img/symbol_monitor.png) **Serial Monitor** button in the top-right corner or select Tools > Serial Monitor (Arduino IDE only).
6433

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.
6635

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+
```
6845

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.
7047

71-
**Follow these steps:**
48+
1. The following should now appear in the serial monitor:
7249

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+
```
7454

75-
1. Click ![Upload button](img/symbol_upload2.png)**Upload** to upload the sketch.
55+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm.
7656

77-
1. Open the Serial Monitor using one of these methods:
57+
1. The following should now appear in the serial monitor:
7858

79-
* Click the ![Serial Monitor button](img/symbol_monitor.png) button in the top-right corner.
59+
```
60+
Do you want to restore the WiFi firmware and certificates? Y/[n]
61+
```
8062

81-
* Select _Tools > Serial Monitor_ in the menu bar.
63+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm.
8264

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:
8466

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+
```
8672

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.
8874

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:
9076

91-
1. Wait until `Firmware and certificates updated!` appears in the Serial Monitor output.
77+
```
78+
QSPI Flash formatted!
79+
It's now safe to reboot or disconnect your board.
80+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /