-
Notifications
You must be signed in to change notification settings - Fork 279
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 is broken for BL602 #1292
Comments
Works with fine with 637
|
That's strange, I reverted for BL602: Why do you think that the code is incorrect? recv will return 0 or -1 if there is no more data. The folowing change (realloc) was added so we can receive HTTP packets longer than 1024 bytes. |
Yes, so that is the issue, ota data size is 400KB, it tries to allocate all of that, and then there is no memory left to do anything else. |
I didn't expect that, it passed all tests on Beken. So, shall we introduce a limit? I don't know, 8kB? |
I don't know what is required, but I would say having limit would be good here, like 8kb or 16kb or 32kb... |
1.17.647 OTA again works good for BL602 |
Describe the bug
OTA is broken
Firmware:
To Reproduce
Steps to reproduce the behavior:
Update fails, device crashes, log shows this:
Maybe realloc causing trouble?
The text was updated successfully, but these errors were encountered: