Skip to content

Commit 57fe286

Browse files
committed
Updated instructions for serial monitor
1 parent d0ff84d commit 57fe286

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,51 @@ Follow these steps:
6262

6363
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).
6464

65-
1. Open the Serial Monitor. When this message appears, the process is complete:
65+
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.
6666

6767
```
68-
Firmware and certificates updated!
68+
WARNING! Running the sketch all the content of the QSPI flash will be erased.
69+
The following partitions will be created:
70+
Partition 1: WiFi firmware and certificates 1MB
71+
Partition 2: OTA 5MB
72+
Partition 3: Provisioning KVStore 1MB
73+
Partition 4: User data / OPTA PLC runtime 7MB
74+
Do you want to proceed? Y/[n]
75+
```
76+
77+
1. Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to proceed.
78+
79+
1. The following should now appear in the serial monitor:
80+
81+
```
82+
Do you want to perform a full erase of the QSPI flash before proceeding? Y/[n]
83+
Note: Full flash erase can take up to one minute.
84+
```
85+
86+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm (recommended).
87+
88+
1. The following should now appear in the serial monitor:
89+
90+
```
91+
Do you want to restore the WiFi firmware and certificates? Y/[n]
92+
```
93+
94+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm (recommended).
95+
96+
1. The following should now appear in the serial monitor:
97+
98+
```
99+
Do you want to use LittleFS to format user data partition? Y/[n]
100+
If No, FatFS will be used to format user partition.
101+
Note: LittleFS is not supported by the OPTA PLC runtime.
102+
```
103+
104+
Type "Y" into the Serial Monitor and press <kbd>Enter</kbd> to confirm (recommended).
105+
106+
1. The process is complete when this message appears in the serial monitor:
107+
108+
```
109+
QSPI Flash formatted!
69110
It's now safe to reboot or disconnect your board.
70111
```
71112

@@ -98,7 +139,7 @@ Follow these steps:
98139

99140
1. Connect your device to your computer and select the device in the editor.
100141

101-
1. Click ![Upload button](img/symbol_upload2.png) **Upload** to upload the sketch to the device.
142+
1. Click ![Upload button](img/symbol_upload2.png) **Upload** to upload the sketch to the device. The partitioning and firmware update process will begin automatically when the sketch starts running.
102143

103144
1. Click the ![Serial Monitor button](img/symbol_monitor.png) **Serial Monitor** button in the top-right corner or select Tools > Serial Monitor (IDE only).
104145

0 commit comments

Comments
 (0)