-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Ethernet OTA error when image file size is larger than hollow-word.bin (IDFGH-2016) #4209
Comments
HI, I have solved this problem. There should be a problem with the default settings of ESP IDF. Thanks! |
Hi @aa1622296203 , Glad you found a fix.
Can you explain what setting you had to change to make this work? We have seen reports of similar errors when the server truncated the file (ie did not send all bytes). Angus |
Use larger DMA buffer,default is 512 Bytes ,change to 2048,itworks well |
not 2048, 1600 is correct |
Hi @aa1622296203 , |
The latest versions of Arduino IDE shifted the responsibility for precompiled libraries support to the core developers, which breaks precompiled library support in esp32 Arduino core. See arduino/ArduinoCore-avr#52 for more details: ``` In this new version of the builder we are not doing any heuristics to find the right spot where the ldflags should be inserted (this was causing many bugs on its own); instead, we fully trust the core makers to add explicit support to precompiled libs. ``` This chage re-enables precompiled library support in the esp32 Arduino core.
i am also trying to doing ota using ethernet its working with wifi but not working with ethernet, below are the logs can you suggest some soultion E (395143) esp-tls: couldn't get hostname for :beta.alitersolutions.com: |
Environment
git describe --tags
to find it):v4.0-beta1-180-ga21eb04cc
xtensa-esp32-elf-gcc --version
to find it):xtensa-esp32-elf-gcc (crosstool-NG esp32-2019r1) 8.2.0
Problem Description
Hi
I added OTA features to my esp32 ethernet project and have a problems I have installed the Ethernet driver correctly and got the local IP (DHCP succeeded)):
When I use Hello word.bin (file size is 150kb), I can successfully implement OTA(Almost every test was a success), however when I use my own project's .bin file (file size is 1.2MB), OTA always failed and always return the errors :
Same hardware, same server, different image file sizes,the small image can succeed, but the larger image is not successful, so I guess this is not the HTTP server fault, but the defect of ESP IDF.
I made more tests to test my conjecture, to switch the network mode to WiFi STA, retest the OTA, and compare the two images:
I'd like to know if you have tested the OTA when the firmware size is larger than hello word.bin (for example, the image size is larger than 1.5 MB).In particular, have you tested the OTA situation when using ip101(ethernet mode) for network communication?
The text was updated successfully, but these errors were encountered: