Skip to content
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

esp_https_ota_finish does not return errors correctly (IDFGH-11510) #12635

Closed
3 tasks done
huhaifan opened this issue Nov 21, 2023 · 2 comments
Closed
3 tasks done

esp_https_ota_finish does not return errors correctly (IDFGH-11510) #12635

huhaifan opened this issue Nov 21, 2023 · 2 comments
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@huhaifan
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.1.2-89-g5c61c89308

Espressif SoC revision.

ESP32-S2FNR2 (revision v1.0)

Operating System used.

Linux

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

Custom Board

Power Supply used.

Battery

What is the expected behavior?

When esp_ota_set_boot_partition encounters an error, it is desired for esp_https_ota_finish to return correctly.

What is the actual behavior?

esp_https_ota_finish just return ESP_OK

Steps to reproduce.

Call OTA without otadata partition

Debug Logs.

No response

More Information.

No response

@huhaifan huhaifan added the Type: Bug bugs in IDF label Nov 21, 2023
@github-actions github-actions bot changed the title esp_https_ota_finish does not return errors correctly esp_https_ota_finish does not return errors correctly (IDFGH-11510) Nov 21, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 21, 2023
@mahavirj
Copy link
Member

@huhaifan

Could you please try removing esp_err_t prefix from following line in the code:

esp_err_t err = esp_ota_set_boot_partition(handle->update_partition);

@huhaifan
Copy link
Author

@huhaifan

Could you please try removing esp_err_t prefix from following line in the code:

esp_err_t err = esp_ota_set_boot_partition(handle->update_partition);

Yes,I have removed esp_err_t from my local esp-idf.

@espressif-bot espressif-bot added Status: In Progress Work is in progress Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Opened Issue is new Status: In Progress Work is in progress labels Nov 21, 2023
movsb pushed a commit to movsb/esp-idf that referenced this issue Dec 1, 2023
hathach pushed a commit to adafruit/esp-idf that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants