-
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
Lan8710a ok in v3 but unstable in v4, corrupt heap errors (IDFGH-2317) #4454
Comments
probably related: |
@will-emmerson |
Thanks, that appears to have fixed it. Not entirely sure why it seemed to be heat related though. |
Hello! So this just fixed my similar issue. Can we look at pushing this into the documentation? |
Note: this problem still exists in ESP-IDF latest as of 1/6/21. The shipping default for the DMA buffer is still 512. Would like to know if this is a known issue only with certain Ethernet PY or just with the LAN8710a, or whether there was an underlying driver issue resolved and this config change is no longer needed. |
fixes espressif#4454 closes espressif#4455
Environment
Problem Description
I have been trying to debug a strange problem with ethernet, where I intermittently get corrupt heap errors such as the ones below when I try to do OTA update or download a file, using any v4:
Or this one:
The strange thing is that it seems to be a heat-related problem, it only happens once the board has been used for a while, and if I put it in the freezer (yes I did that) then the problem goes away until the board heats up again. But it's not a hardware problem because it works fine in v3.3.
The problem can be made to happen quicker by enabling softap, but it's not the cause of the problem because it still happens when disabling.
I am guessing that the problem is to do with clock source, that it's setup incorrectly in v4. Or perhaps lan8710a isn't supported anymore? The working ethernet code I used in v3.3 is just taken from ethernet example:
The non-working code for v4 is mostly taken from ethernet example:
sdkconfig.defaults:
Using
phy_device_power_enable_via_gpio
was the only way I could get it working but I don't think this is the issue because this code isn't even needed on Olimex Gateway yet it still has the same problem.Code to reproduce this issue
https://gist.github.com/will-emmerson/557ce34c456358997ae3c1ff240311f2
The text was updated successfully, but these errors were encountered: