Skip to content

Ota enhancements [HC-1616] #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ In this section:

This error indicates that the device's memory partition table is improperly formatted.

* If you're using **Arduino GIGA R1 WiFi** or **Portenta H7**:
1. Reinitialize the storage with this Sketch: [QSPIFormat.ino](https://github.com/arduino/ArduinoCore-mbed/blob/main/libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino)
1. Reinstall the SSL certificates with this Sketch: [WiFiFirmwareUpdater](https://github.com/arduino/ArduinoCore-mbed/tree/main/libraries/STM32H747_System/examples/WiFiFirmwareUpdater)

* If you're using **Arduino Opta**: Follow [these instructions](https://docs.arduino.cc/tutorials/opta/memory-partitioning/#partitioning-the-memory-of-an-opta).
* If you're using **Portenta Machine Control**: Follow these [instructions](https://docs.arduino.cc/tutorials/opta/memory-partitioning/#partitioning-the-memory-of-a-portenta-machine-control).

> [!TIP]
> If you're using GIGA R1 WiFi, see [Configure GIGA R1 WiFi for Over-The-Air (OTA) uploads](https://support.arduino.cc/hc/en-us/articles/12370721200540-Configure-GIGA-R1-WiFi-for-Over-The-Air-OTA-uploads).
To resolve this issue, see [Reset the flash memory on STM32H747-based devices](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices).

### Board error - httpresponsefail {#httpresponsefail}

Expand All @@ -80,39 +72,29 @@ Follow these steps:

The header of the downloaded file does not match the expected one, likely indicating that the file was corrupted during the download.

Follow these steps:

1. Try to upload the sketch again.
To resolve this issue, upload the sketch again.

### Board error - otastorageinitfail {#otastorageinitfail}

This error indicates that the device's memory partition table is improperly formatted.

* If you're using **Arduino GIGA R1 WiFi** or **Portenta H7**:
1. Reinitialize the storage with this Sketch: [QSPIFormat.ino](https://github.com/arduino/ArduinoCore-mbed/blob/main/libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino)
1. Reinstall the SSL certificates with this Sketch: [WiFiFirmwareUpdater](https://github.com/arduino/ArduinoCore-mbed/tree/main/libraries/STM32H747_System/examples/WiFiFirmwareUpdater)

* If you're using **Arduino Opta**: Follow [these instructions](https://docs.arduino.cc/tutorials/opta/memory-partitioning/#partitioning-the-memory-of-an-opta).
* If you're using **Portenta Machine Control**: Follow these [instructions](https://docs.arduino.cc/tutorials/opta/memory-partitioning/#partitioning-the-memory-of-a-portenta-machine-control).

> [!TIP]
> If you're using GIGA R1 WiFi, see [Configure GIGA R1 WiFi for Over-The-Air (OTA) uploads](https://support.arduino.cc/hc/en-us/articles/12370721200540-Configure-GIGA-R1-WiFi-for-Over-The-Air-OTA-uploads).
To resolve this issue, see [Reset the flash memory on STM32H747-based devices](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices).

### Board error - serverconnecterrorfail {#serverconnecterrorfail}

This error occurs when the device fails to connect to the firmware download endpoint.

Follow these steps:

1. Ensure that the board has a stable connection to Arduino Cloud.
To resolve this issue, ensure that the board has a stable connection to Arduino Cloud.

### SHA256 mismatch - Unable to apply the new firmware. Previous firmware detected after restart {#sha256mismatch}

This error means that the device restarted with a SHA (fw identifier) that is different from the target one and the SHA is equal to the one installed when the OTA process is started. This usually happens when the device restarts during the OTA process.

Follow these steps:

1. Check if the sketch running on the device is unstable and causes frequent restarts.
1. Ensure the device is connected to a stable and uninterrupted power source.
1. Upload a simple example sketch (such as BareMinimum) to prevent any resets caused by faulty code.
1. If you're unable to program the device, try putting it in bootloader mode.

### SHA256 Unknown - Unknown Firmware detected after restart. {#sha256unknown}

Expand Down