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 = -5
Arduino_Portenta_OTA::begin() failed with error code -3
1. Connect your board to Arduino IDE
-
Open Arduino IDE.
-
Connect the board to your computer with a USB-C cable.
-
Select your board in the board selector, or use the Tools > Port and Tools > Board menus.
2. Format the flash memory
Format the board’s Quad Serial Peripheral Interface (QSPI) flash memory.
Follow these steps:
-
In the top menu bar, open File > Examples > STM32H747_System > QSPIFormat.
-
Click Upload to upload the sketch.
-
Open the Serial Monitor using one of these methods:
-
Click the button in the top-right corner.
-
Select Tools > Serial Monitor in the menu bar.
-
-
If the Serial Monitor is empty, run the sketch again by pressing the RST button on the board.
-
This message should appear:
Do you want to use partition scheme 1? Y/[n]
If No, partition scheme 2 will be used.
If you do, type
Y
into the text field and press Enter to send. -
Followed by this message:
WARNING! Running the sketch all the content of the QSPI flash will be erased. Do you want to proceed? Y/[n]
If you do, type
Y
into the text field and press Enter to send. -
Wait until
QSPI Flash formatted!
appears in the Serial Monitor output.
3. Flash the Wi-Fi firmware
Flash the latest Wi-Fi firmware version to the board.
Follow these steps:
-
In the top menu bar, open File > Examples > STM32H747_System > WiFiFirmwareUpdater.
-
Click Upload to upload the sketch.
-
Open the Serial Monitor using one of these methods:
-
Click the button in the top-right corner.
-
Select Tools > Serial Monitor in the menu bar.
-
-
If the Serial Monitor is empty, run the sketch again by pressing the RST button on the board.
-
If you get this message:
A WiFi firmware is already installed. Do you want to install the firmware anyway? Y/[n]
If you do, type
Y
into the text field and press Enter to send. -
Wait until
Firmware and certificates updated!
appears in the Serial Monitor output.