-
Notifications
You must be signed in to change notification settings - Fork 116
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
no longer builds against the latest esp-idf master #7
Comments
Did you test exactly with this example: https://github.com/OLIMEX/ESP32-POE/tree/master/SOFTWARE/ESP-IDF/ESP32_PoE_Ethernet ? |
Away from my dev system atm but that sure looks like the one. I first tried it some months ago and it built and worked fine but due to lack of websockets client and time the project halted. There is now a websocket client and example in the latest idf sdk but I've not been able to get the PoE board to work with it.
…On 4 August 2019 16:09:41 BST, DanKoloff ***@***.***> wrote:
Did you test exactly with this example:
https://github.com/OLIMEX/ESP32-POE/tree/master/SOFTWARE/ESP-IDF/ESP32_PoE_Ethernet
?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#7 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
We tested it today. It seems to work fine. Make sure to use the demo that I linked since the default Ethernet demo has no configuration for LAN8710A only for LAN8720. |
I've got my project going by modifying one one of the esp-idf examples to enable the PHY power and set the PHY address so its no big deal for me any more, but I tried anyway. With a current fresh clone of the esp-idf and the above example it fails as shown below.
|
It certainly looks like the whole component structure related to the Ethernet was changed since the most recent v4.1-dev tag. This change probably breaks all Ethernet examples for all ESP32 boards with Ethernet. The change is not only in the directory naming and structure, it also changes the way the ESP-IDF header files related to the Ethernet are used. Check how the directory structure looked in v4.0-dev: https://github.com/espressif/esp-idf/tree/v4.0-dev/components/ethernet/eth_phy Check how it looks now: https://github.com/espressif/esp-idf/tree/v4.1-dev/components/esp_eth/include We are looking into this, and need to decide what is the best way to go. |
@DanKoloff I can compile and successfully run the linked olimex demo code only with release-3.3 of esp-idf. |
@g-mocken Yes, 3.3 is fine. The issue here is present only for newest versions of esp-idf - 4.1v-dev and newer. |
@DanKoloff Sorry if I was not clear enough: My point is that 4.0 does not work either. And I would like to use 4.0 (or later) because of other improvements. I would not mind ignoring 4.1 for the time being. If the demo code is supposed to work with 4.0, then I would appreciate some hints as to what I might be doing wrong. |
@g-mocken We still haven't published an updated example. Everything I said about the issue here still applies for 4.0: #7 (comment) |
Espressif official ESP32 IDF is 3.3 https://www.espressif.com/en/support/download/sdks-demos |
@TsvetanUsunov I hadn't actually checked the releases page, I merely followed the getting started documents here https://docs.espressif.com/projects/esp-idf/en/latest/get-started/. It does appear that that hes left me with a dev version tho :
@g-mocken Sure. Copy examples/common_components/protocol_examples_common to the projects local components dir and amend the start function in connect.c around about line 191
Before the last 3 lines of the same function add the following to power up the PHY
You will need to also amend the make file to point to the new components instead of the original one. Then in the sdkconfig of your project, or via the menuconfig utility find and set each of the following :
If you are using a different board these settings may differ. I only have experience with the PoE board. Check the relevant schematics. Hope that makes sense and is of some help. |
The instructions above didn't work for me for v4.1, but the following did:
|
Thanks for the instructions! I can now use Websockets over ethernet! (added in v4) To make it easier for other people I made a repo with the changes applied(tested with POE rev C): https://github.com/ArendJan/esp32POE-example-v4.1 |
Unfortunately I'm not convinced this code works properly - there seem to be corrupt heap errors when doing an OTA update:
I don't think it's OTA update that's the problem itself, I think it's just the throughput. When I use Wifi instead it works fine. Annoyingly it's quite intermittent so sometimes it works. Also sometimes the ethernet doesn't work after |
It seems |
Additionally the basic Ethernet example in esp-idf doesn't seem to work with this board. It gives a mac timeout error. Seems like this board may require power to be enabled via a GPIO which the esp-idf libraries don't seem to provide a configuration option for. Having added a few lines to the example to provide the power it gets a little but further but then times out awaiting a reset. Not had time to look any further.
The text was updated successfully, but these errors were encountered: