From 1420639370a008b5425ad80f71cc001dc19ac755 Mon Sep 17 00:00:00 2001 From: seaxwi <71350948+seaxwi@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:03:44 +0200 Subject: [PATCH 1/4] Create Reset-the-flash-memory-on-STM32H747-based-devices.md --- ...flash-memory-on-STM32H747-based-devices.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md diff --git a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md new file mode 100644 index 00000000..2b9a7118 --- /dev/null +++ b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md @@ -0,0 +1,43 @@ +--- +title: "Reset the flash memory on STM32H747-based devices" +--- + +Learn how to reset the QSPI flash memory for STM32H747-based Arduino devices by uploading a utility sketch. The sketch will remove any previous partitioning scheme, and recreate the factory-defined partition scheme. Finally, the latest connectivity firmware and TLS certificates are reinstalled. + +This procedure can help resolve issues with storage or connectivity. + +Supported devices: + +* GIGA R1 WiFi +* Opta +* Portenta H7 +* Portenta Machine Control + +--- + +**Follow these steps:** + +1. Download the following sketch: + + [memory_partitioning.zip](https://docs.arduino.cc/3147be35e0c40957022af51f015c3e4d/memory_partitioning.zip){.link-download} + +1. Open the sketch in your editor: + + * Arduino IDE: Extract the .zip into your [Sketchbook](https://support.arduino.cc/hc/en-us/articles/4412950938514-Open-the-Sketchbook-folder). Ensure both `memory_partitioning.ino` and `certificates.h` are inside a folder named `memory_partitioning`. + + * Cloud Editor: Open the [Sketches tab](https://app.arduino.cc/sketches) and click on the **Create** button in the top-right corner. Select **Import local file**. + +1. Open the imported sketch in your editor. + +1. Connect your device to your computer and select the device in the editor. + +1. Click ![Upload button](img/symbol_upload2.png) **Upload** to upload the sketch to the device. + +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). + +1. Open the Serial Monitor. When this message appears, the process is complete: + + ``` + Firmware and certificates updated! + It's now safe to reboot or disconnect your board. + ``` From 62b256dbe215a14cd12d2850cbd876cf2bd238e2 Mon Sep 17 00:00:00 2001 From: seaxwi <71350948+seaxwi@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:49:39 +0200 Subject: [PATCH 2/4] Update content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md Co-authored-by: Renat0Ribeir0 <86349945+Renat0Ribeir0@users.noreply.github.com> --- .../Reset-the-flash-memory-on-STM32H747-based-devices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md index 2b9a7118..7b48a7e0 100644 --- a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md +++ b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md @@ -25,7 +25,7 @@ Supported devices: * Arduino IDE: Extract the .zip into your [Sketchbook](https://support.arduino.cc/hc/en-us/articles/4412950938514-Open-the-Sketchbook-folder). Ensure both `memory_partitioning.ino` and `certificates.h` are inside a folder named `memory_partitioning`. - * Cloud Editor: Open the [Sketches tab](https://app.arduino.cc/sketches) and click on the **Create** button in the top-right corner. Select **Import local file**. + * Cloud Editor: Open the [Sketches tab](https://app.arduino.cc/sketches) and click on the **Create** button in the top-right corner. Select **Import local file** in the dropdown menu and import `memory_partitioning.zip`. 1. Open the imported sketch in your editor. From d77a580a99fd76890d1a98d600746532ff634968 Mon Sep 17 00:00:00 2001 From: seaxwi <71350948+seaxwi@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:53:22 +0200 Subject: [PATCH 3/4] Added more info on uses of procedure --- .../Reset-the-flash-memory-on-STM32H747-based-devices.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md index 7b48a7e0..684884df 100644 --- a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md +++ b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md @@ -4,7 +4,11 @@ title: "Reset the flash memory on STM32H747-based devices" Learn how to reset the QSPI flash memory for STM32H747-based Arduino devices by uploading a utility sketch. The sketch will remove any previous partitioning scheme, and recreate the factory-defined partition scheme. Finally, the latest connectivity firmware and TLS certificates are reinstalled. -This procedure can help resolve issues with storage or connectivity. +You may want to use this procedure to: + +* Restore the factory-defined memory allocation for full support of Arduino IDE or Arduino Cloud. +* Resolve issues with storage or connectivity. + * To use your device with PLC IDE, you will need to [reinstall the runtime](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/#3-download-the-runtime). Supported devices: From 1aee0e9bd6139eaa6680163a2304bbc13d779982 Mon Sep 17 00:00:00 2001 From: seaxwi <71350948+seaxwi@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:51:16 +0200 Subject: [PATCH 4/4] Format PLC IDE runtime info as note --- .../Reset-the-flash-memory-on-STM32H747-based-devices.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md index 684884df..a15a7573 100644 --- a/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md +++ b/content/Hardware Support/Generic/Reset-the-flash-memory-on-STM32H747-based-devices.md @@ -8,7 +8,9 @@ You may want to use this procedure to: * Restore the factory-defined memory allocation for full support of Arduino IDE or Arduino Cloud. * Resolve issues with storage or connectivity. - * To use your device with PLC IDE, you will need to [reinstall the runtime](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/#3-download-the-runtime). + +> [!IMPORTANT] +> Resetting the flash memory will remove the PLC IDE runtime. [Reinstall the runtime](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/#3-download-the-runtime) to continue using PLC IDE with your device. Supported devices: