-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
ESP32 MAC not reacting to received signals (IDFGH-11399) #12537
Comments
What is the source of the REF RMII CLK for the PHY? BTW: just a teaser, we are preparing a demo with 10base-T1S. It will be ready soon :) |
Oh nice. but the only difference is the phy right? I am using a external 50mhz clock source (https://www.we-online.com/components/products/datasheet/831056249.pdf). |
We use LAN8670 for the demo. Regarding your issue, what is you test setup? Two ESP32's with LAN8671 - one ESP as DHCP server and the other one as DHCP Client? If so, you need to start DHCP server in |
I don't use DHCP. my test setup is indeed two esp's connected together one doing icmp and the other one programmed like above. |
Try to increase debug level or change this line to see if your device receives Ethernet frames. |
So i changed that line to |
The Rx task is blocked and it waits for interrupt from EMAC. The task is released once the EMAC receives a data. It indicates you that no data is received. Unfortunately, I cannot help you without seeing your complete code. However, going over it would be duplication of work for me since we're working on the driver too. We're almost there, we're able to send/receive. We just need to polish it and prepare demo. Could you please wait a week? |
Okay thanks for the help. I can wait a week could you please inform me or something when it is ready and how i can test it out? |
@ThijsvanBovene, I'll let you know once the driver is ready. |
@kostaond Hi, Just want to ask how it is going with the driver. is there maybe a beta version? |
@ThijsvanBovene, please check https://github.com/bogdankolendovskyy/esp-eth-drivers/tree/lan867x/lan867x. However, keep in mind that it's work in progress. If you have any questions or suggestions, they are very welcomed. |
bogdankolendovskyy/esp-eth-drivers#1 We already have devices on esp32 with lan8671 and can do any tests :) |
@adeepn what silicon revision do you have? |
B1 |
So i used the server example for the lan867x but, when i upload it the got ip event doesn't trigger. But it does say ethernet attached to netif. |
You wouldn't see IP event on server... It has static IP and it is not reported. Once you connect the second device, the client, you should see: I (402) esp_eth.netif.netif_glue: ethernet attached to netif
I (3102) ethernet_init: Ethernet(LAN867x[23,18]) Started
I (3102) ethernet_init: Ethernet(LAN867x[23,18]) Link Up
I (3102) ethernet_init: Ethernet(LAN867x[23,18]) HW Addr 08:3a:f2:31:20:f7
I (67852) esp_netif_lwip: DHCP server assigned IP to a client, IP is: 192.168.1.2
I (67852) lan867x_example: Assigned ip 192.168.1.2 to a connected device. |
ohh oke I will try that thank you |
clients works: dhcp ip assigned and arp-ping and icmp pings shows no lost packets. |
Hi, |
@ThijsvanBovene what was the issue? |
@kostaond I have 3 boards i think 1 is broken(it still doesn’t work). And i added a 100ohm resistor on both cable ends and uploaded and it started working. Although i still have a question about the driver: i see that with custom_crtl it is should be possible to set plca and other registers but those register acording to the datasheet need to be controlled via MMD. But i don’t see that in the software. |
@hijsvanBovene very good point. I'll discuss with my colleague. We haven't tested PLCA yet because we also started with 3 boards and one is broken :D We're waiting for new one, it's slow process... Anyway, really appreciate your input! |
@kostaond For my project I have to test PLCA so I already made some code. I will let you know if it works and is it okay if I post the MMD operations? |
Yes, contributions are very much welcomed. However, please wait until Bogdan's fork is merged to https://github.com/espressif/esp-eth-drivers. |
@ThijsvanBovene, @adeepn, feel free to review - espressif/esp-eth-drivers#19 |
The LAN867x is available at https://github.com/espressif/esp-eth-drivers |
Answers checklist.
General issue report
Hi,
For a project I am using the lan8671 phy for SPE 10base-T1S in point to point mode but, I have some issues. I am using the ESP32 devkitc V4 with ESP-IDF V5.1.1.
The issue is when I am trying to ping another board I can see the rmii TX signals with the oscilloscope and can see them arrive on the other board so it looks the phy is working but the ESP doesn't react to it. I think I configure the mac the correct way following the example from the esp-idf website. the signals look like arp request is it maybey possible that there are more configurations needed for point to point?
The event does trigger that it got an IP address.
Thanks in advance
The text was updated successfully, but these errors were encountered: