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

OTA chunk size problems (IDFGH-13669) #14545

Closed
3 tasks done
jkorenj opened this issue Sep 11, 2024 · 4 comments
Closed
3 tasks done

OTA chunk size problems (IDFGH-13669) #14545

jkorenj opened this issue Sep 11, 2024 · 4 comments
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally

Comments

@jkorenj
Copy link

jkorenj commented Sep 11, 2024

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.

General issue report

Hello,

I implemented OTA update through SPI on ESP32C3.
As I read in the documentation the flash page size is 4k, but for some reason when I try to send 4k chunks the partition is never changed.
I can see that the update procedure is successful, but when I reset the ESP32C3 it is booted from the same partition.
I tried it with 512 bytes chunk size and everything works as expected.

Can you help me, what am I missing here?

Thank you for your help.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 11, 2024
@github-actions github-actions bot changed the title OTA chunk size problems OTA chunk size problems (IDFGH-13669) Sep 11, 2024
@nileshkale123
Copy link
Collaborator

Hello @jkorenj ,

I'm sorry for the delayed reply. Thank you for your patience.

Could you please let me know which example you have tried for implementing the OTA update on the ESP32-C3? Additionally, it would be helpful if you could share the sdkconfig file and the debug-enabled log (CONFIG_LOG_DEFAULT_LEVEL_DEBUG) to get more insight into the issue.

This will help us understand the situation better and provide a more accurate solution.

Looking forward to your response.

@jkorenj
Copy link
Author

jkorenj commented Oct 10, 2024

Hello,

I implemented OTA update through SPI and I didn't use any example, but I was looking at the simple_ota_example.
Problem is that everything seems normal and status from update function is returned as everything was correctly run, but ESP doesn't reset and partition doesn't change.

I can prepare the sample in the next week.

Thank you.

@nileshkale123
Copy link
Collaborator

Hello @jkorenj,

Alternatively, you can integrate your changes into the simple_ota_example and try to reproduce the issue. If the problem persists, please share the patch and sdkconfig file with us so we can reproduce it on our end.

Thank you.

@nileshkale123
Copy link
Collaborator

nileshkale123 commented Oct 22, 2024

Hi @jkorenj,

Since we haven't received any further updates, I’ll be closing this issue for now.

However, please feel free to reopen it if you encounter the issue again. It would be helpful if you could provide a small reproducible example or a patch file integrated with one of the OTA examples in IDF.

Best regards,

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Cannot Reproduce Issue cannot be reproduced and removed Status: Opened Issue is new labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants