-
-
Notifications
You must be signed in to change notification settings - Fork 12
New article: If you see an error when performing an Over-the-Air (OTA) update [HC-1572] #393
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
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6e40210
New article: If you see an error when performing an Over-the-Air (OTA…
seaxwi df04f1f
Remove comments
seaxwi d271aad
Remove instructions to deactivate watchdog timer
seaxwi aa6ce00
Update content/Arduino Cloud/Cloud Editor/If-you-see-an-error-when-pe…
seaxwi 9eb7188
Improve memory partitioning instructions
seaxwi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
.../Cloud Editor/If-you-see-an-error-when-performing-an-Over-the-Air-OTA-upload.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
--- | ||
title: "If you see an error when performing an Over-the-Air (OTA) upload" | ||
id: 15122161765916 | ||
--- | ||
|
||
Learn how to resolve errors when uploading Over-the-Air (OTA) in the Cloud Editor. | ||
|
||
Before you proceed, rule out other types of errors: | ||
|
||
* If the message on the console panel bar says **"Error Verifying \<Sketch name\>"**, it means that the sketch could not be successfully compiled. See [If your sketch doesn't compile](https://support.arduino.cc/hc/en-us/articles/4402764401554-If-your-sketch-doesn-t-compile) instead. | ||
* An Over-the-Air upload will only be attempted if the  OTA icon is visible to the right of the Upload button. If USB upload is also available, make sure that the OTA option is selected. | ||
|
||
In this article: | ||
|
||
* [Identifying the OTA error message](#identify-error) | ||
* [Error reference for OTA uploads](#errors) | ||
|
||
--- | ||
|
||
## Identifying the OTA error message {#identify-error} | ||
|
||
When an Over-the-Air upload fails, you can find the error in the console output. | ||
|
||
Follow these steps: | ||
|
||
1. Find the console panel. If it is hidden, show it by clicking the button in the bottom-right corner. | ||
2. Find the line that starts with "SHA256" or "Board error". | ||
3. Find the instructions for that error in the [error reference](#errors). | ||
|
||
<img src="img/ota-error-sha.png" width=800px/> | ||
|
||
--- | ||
|
||
## Error reference for OTA uploads {#errors} | ||
|
||
In this section: | ||
|
||
* [Board error - errorwriteupdatefilefail](#errorwriteupdatefilefail) | ||
* [Board error - httpresponsefail](#httpresponsefail) | ||
* [Board error - otadownloadfail](#otadownloadfail) | ||
* [Board error - otaheadercrcfail](#otaheadercrcfail) | ||
* [Board error - otastorageinitfail](#otastorageinitfail) | ||
* [Board error - serverconnecterrorfail](#serverconnecterrorfail) | ||
* [SHA256 mismatch - Unable to apply the new firmware. Previous firmware detected after restart](#sha256mismatch) | ||
* [SHA256 Unknown - Unknown Firmware detected after restart.](#sha256unknown) | ||
|
||
### Board error - errorwriteupdatefilefail {#errorwriteupdatefilefail} | ||
|
||
This error indicates that the device's memory partition table is improperly formatted. | ||
|
||
Follow these steps: | ||
|
||
1. Run the memory formatting sketch for your device architecture. | ||
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) | ||
seaxwi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
> [!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). | ||
|
||
### Board error - httpresponsefail {#httpresponsefail} | ||
|
||
This error can occur if the OTA update fails during the firmware download. | ||
|
||
Follow these steps: | ||
|
||
1. Ensure that the board has a stable connection to Arduino Cloud. | ||
1. Avoid extensive calls to the `delay()` function or other blocking code inside the `loop()` function of your sketch. | ||
|
||
### Board error - otadownloadfail {#otadownloadfail} | ||
|
||
This error can occur if the OTA update fails during the firmware download. | ||
|
||
Follow these steps: | ||
|
||
1. Ensure that the board has a stable connection to Arduino Cloud. | ||
1. Avoid extensive calls to the `delay()` function or other blocking code inside the `loop()` function of your sketch. | ||
|
||
### Board error - otaheadercrcfail {#otaheadercrcfail} | ||
|
||
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. | ||
|
||
### Board error - otastorageinitfail {#otastorageinitfail} | ||
|
||
This error indicates that the device's memory partition table is improperly formatted. | ||
|
||
Follow these steps: | ||
|
||
1. Run the memory formatting sketch for your device architecture. | ||
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) | ||
|
||
> [!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). | ||
seaxwi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### 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. | ||
|
||
### 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. | ||
|
||
### SHA256 Unknown - Unknown Firmware detected after restart. {#sha256unknown} | ||
|
||
This error indicates that the device restarted with a new SHA (firmware identifier), which differs from both the target firmware and the original firmware. This suggests that another firmware was flashed on the device via a different method, such as USB, during the OTA update process. | ||
|
||
Follow these steps: | ||
|
||
1. Ensure there is no external device that is programming the board. | ||
1. Repeat the upload process. | ||
|
||
<!-- markdownlint-disable-file HC001 --> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.