Learn how to enable Over-The-Air (OTA) uploads for:
- GIGA R1 WiFi
- Portenta H7
- Portenta H7 Lite
- Portenta Machine Control
Follow these steps if you experience any of these errors when attempting an OTA upload:
Error while mounting the filesystem. Err = -5Arduino_Portenta_OTA::begin() failed with error code -3
Follow these steps to partition memory and install the Wi-Fi firmware required for OTA uploads:
-
Open the memory partitioning sketch:
-
Arduino IDE: Ensure that you are using the latest version of the board package, then select File > Examples > STM32H747_System > QSPIFormat.
-
Arduino Cloud Editor: Open the QSPIFormat example in the Cloud Editor.
-
-
Connect your device to your computer and select the device in the editor.
-
Click
Upload to upload the sketch to the device.
-
Click the
Serial Monitor button in the top-right corner or select Tools > Serial Monitor (Arduino IDE only).
-
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.
WARNING! Running the sketch all the content of the QSPI flash will be erased. The following partitions will be created: Partition 1: WiFi firmware and certificates 1MB Partition 2: OTA 5MB Partition 3: Provisioning KVStore 1MB Partition 4: User data / OPTA PLC runtime 7MB Do you want to proceed? Y/[n] -
Type “Y” into the Serial Monitor and press Enter to proceed.
-
The following should now appear in the serial monitor:
Do you want to perform a full erase of the QSPI flash before proceeding? Y/[n] Note: Full flash erase can take up to one minute.Type “Y” into the Serial Monitor and press Enter to confirm.
-
The following should now appear in the serial monitor:
Do you want to restore the WiFi firmware and certificates? Y/[n]Type “Y” into the Serial Monitor and press Enter to confirm.
-
The following should now appear in the serial monitor:
Do you want to use LittleFS to format user data partition? Y/[n] If No, FatFS will be used to format user partition. Note: LittleFS is not supported by the OPTA PLC runtime.Type “Y” into the Serial Monitor and press Enter to confirm.
-
The process is complete when this message appears in the serial monitor:
QSPI Flash formatted! It's now safe to reboot or disconnect your board.