Search found 290 matches

by ESP_morris
Tue Dec 04, 2018 2:10 pm
Forum: ESP-IDF 中文讨论版
Topic: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0xffff
Replies: 11
Views: 20083

Re: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0x

chengqian wrote:
Tue Dec 04, 2018 8:43 am
你好,首先感谢您的回复。
其次,我购买的PHY模块自带有50MHZ晶振,我利用示波器测试了,其输出没有错误,是50MHZ。另外,对于地址问题我查看了原理图及相关的技术文档,其地址都为0,我也试过了地址1,但依然出现原来的错误。最后我更换使用了其他的网线,也没办法解决这个问题。
容我多问一句,这个50MHz是否通过GPIO0输入给了ESP32呢?
by ESP_morris
Tue Dec 04, 2018 9:11 am
Forum: ESP-IDF 中文讨论版
Topic: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0xffff
Replies: 11
Views: 20083

Re: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0x

我们最近在测试过程中发现有和你类似的情况,但具体原因不知是否相同。 建议先试一下在esp-idf/components/ethernet/emac_main.c 中的esp_eth_enable函数中添加:emac_enable_clk(true);具体位置如下图: https://s1.ax1x.com/2018/12/04/FQ6aKU.png 防止图片显示不了,我把代码贴上来 esp_err_t esp_eth_enable(void) { struct emac_post_cmd post_cmd; struct emac_open_cmd open_cmd; post_cmd.cmd...
by ESP_morris
Tue Dec 04, 2018 5:05 am
Forum: ESP-IDF 中文讨论版
Topic: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0xffff
Replies: 11
Views: 20083

Re: 使用idf中的Ethernet示例时,出现错误代码Timed out waiting for PHY register 0x3 to have value 0xc0f0 (mask 0xfff0). Current value 0x

你好,从你给的图中看到你选择的时钟模式是GPIO0输入模式,即RMII的50MHz时钟需要由外部提供(一般是由PHY产生或者是外部晶振提供)。
1. 请检查GPIO0是否有50MHz的时钟输入
2. 确定好你的PHY地址是否是0(最好查看一下原理图)
by ESP_morris
Wed Nov 07, 2018 2:41 am
Forum: ESP-IDF
Topic: esp32 wired Ethernet and mDNS
Replies: 6
Views: 8277

Re: esp32 wired Ethernet and mDNS

Not yet. Here is the tip to get over the issue:
1. Open the file : components/ethernet/emac_dev.c
2. Find the function called: emac_mac_init
3. add one line in the end: REG_SET_BIT(EMAC_GMACFF_REG, EMAC_PAM);
Have a try,good luck.
by ESP_morris
Tue Nov 06, 2018 1:32 pm
Forum: ESP-IDF
Topic: esp32 wired Ethernet and mDNS
Replies: 6
Views: 8277

Re: esp32 wired Ethernet and mDNS

Hi Spooney
I have just tested the mDNS with Ethernet, it works fine now, after we solved the multicast issue with Ethernet.
Thanks for your interest in ESP32.
by ESP_morris
Tue Nov 06, 2018 11:54 am
Forum: ESP-IDF
Topic: esp32 wired Ethernet and mDNS
Replies: 6
Views: 8277

Re: esp32 wired Ethernet and mDNS

Does it seem like esp32 cannot receive any multicast frames?
We have just fix one bug related to multicast with Ethernet. And the patch will be soon pushed to github.
by ESP_morris
Tue Oct 30, 2018 2:49 am
Forum: General Discussion
Topic: Plans to further abstract ethernet TCPIP adapters?
Replies: 6
Views: 7972

Re: Plans to further abstract ethernet TCPIP adapters?

Thanks for your good suggestion. Actually the EMAC driver should be low coupling with the RTOS and TCP/IP stack. For now, we're refactoring it, and add an abstract interface for EMAC and PHY, so that it will easier to add support for other PHY and EMAC. The interface may be like this: struct eth_mac...
by ESP_morris
Thu Sep 20, 2018 4:18 am
Forum: General Discussion
Topic: Ethernet goes mad
Replies: 7
Views: 10066

Re: Ethernet goes mad

Nice work, I'm wondering if there's a circle in your network topology? So the pause frame is just walking around the circle, like the snowball effect.
The bug of the wrong MAC address has been fixed in the latest master branch weeks ago.
by ESP_morris
Wed Sep 05, 2018 6:49 am
Forum: General Discussion
Topic: Stack overflow on emacT when disconnecting Ethernet
Replies: 2
Views: 4535

Re: Stack overflow on emacT when disconnecting Ethernet

Since the stack size of emacT is 2048 Bytes, and currently it can not be changed in driver(I don't know why the original author do so...) So, thanks for your post, I will make the stack size of emacT task "mutable" via Kconfig. If your project is in a hurry, you can try to change the stack size from...