arduino-libraries / Arduino_Portenta_OTA

OTA on the Arduino Portenta.
15 stars 4 forks source link

Arduino_Portenta_OTA::begin() failed with error code -3 #57

Closed econeale closed 3 weeks ago

econeale commented 3 weeks ago

I'm attempting to run the OTA_Qspi_Flash_Ethernet.ino example on my Portenta Machine Control device but receive a Arduino_Portenta_OTA::begin() failed with error code -3 on startup. I've updated to version 4.1.5 of the Arduino Mbed OS Portenta Boards tool suite, updated the bootloader and the WiFi controller but this is stumping me. The flash tutorial works so I know the flash is functioning but I can't seem to figure out what's going on here. Any help appreciated!

Here's the log output from the controller for reference:

Attempting to connect to the network ...
Connected
Initializing OTA storage
Arduino_Portenta_OTA::begin() failed with error code -3
econeale commented 3 weeks ago

Looks like the QSPI flash needed to be reformatted.

I reformatted using the Examples->STM32H747_Systm->QSPIFormat example with layout 1 then re-flashed the Wi-Fi using Examples->STM32H747_Systm->WiFiFirmwareUpdater and finally used the OTA_Qspi_Flash_Ethernet example worked as expected.