Search found 116 matches

by ESP_morris
Thu Jan 31, 2019 2:33 am
Forum: ESP-IDF
Topic: esp_eth_disable() crash
Replies: 4
Views: 1842

Re: esp_eth_disable() crash

Hmm, Really ? None of the ESP guys are willing to help? Sorry for the delay. So finally this an issue about the tcp/ip stack. right? The Github issue you mentioned has been reopend. Some one will soon reply on it. And could you please give us more detailed information about your issue? The original...
by ESP_morris
Thu Dec 27, 2018 5:54 am
Forum: ESP-IDF 中文讨论版
Topic: esp32有支持国产RTOS rt-thread的计划么?
Replies: 4
Views: 3954

Re: esp32有支持国产RTOS rt-thread的计划么?

aureoleday wrote:
Fri Dec 21, 2018 8:02 am
@In逍遥子 wrote:
Wed Dec 19, 2018 7:01 am
乐鑫官方没有发布 RT-Thread 的开发包,GitHub 上有个人仓库可以参考 Link(https://github.com/BernardXiong/rtthread-esp-idf) 学习。
这个我试了,编译不通过,没法用啊
IIRC,Bernard的代码是根据idf2版本做的移植,你尝试可以去那里提交issue
by ESP_morris
Tue Dec 25, 2018 10:55 am
Forum: ESP-IDF 中文讨论版
Topic: esp32的freertos支持cli么
Replies: 2
Views: 1810

Re: esp32的freertos支持cli么

当然支持命令行终端,还支持命令补全,记录历史命令。 IDF中有console组件,推荐你阅读以下文档: https://docs.espressif.com/projects/esp-idf/zh_CN/latest/api-guides/console.html 此外,IDF还提供了较多基于console组件的非常有用的example(比如i2c-tool, iperf),可以借鉴学习其具体的使用方法。 https://github.com/espressif/esp-idf/tree/master/examples/system/console https://github.com/esp...
by ESP_morris
Tue Dec 25, 2018 9:31 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: 5652

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

读PHY寄存器为0xFFFF通常情况可以这样排查:
1. 检查MDIO和MDC的接线是否错误
2. 检查RMII需要的50MHz时钟是否正常
3. 检查PHY地址是否配置正确(包括软件和硬件)
这里强烈建议,检查一遍控制PHY地址的strap引脚,不要悬空,**不要默认**!确保这些strap引脚已经被外部电阻上拉或者下拉了。

另一方面,如果还是不够确定PHY地址究竟是多少,可以在软件中尝试设置PHY地址从0开始到31,然后读取PHY ID寄存器,看看是否能够读到正常的数据,如果正确,记录下当前PHY地址。
by ESP_morris
Fri Dec 07, 2018 9:47 am
Forum: ESP-IDF
Topic: ESP32 Ethernet mac2mac communication
Replies: 2
Views: 1310

Re: ESP32 Ethernet mac2mac communication

FYI, you want to create a point-to-point link between two Ethernet MAC. There's a kind of interface call RevMII(Not RMII) which is aimed to this application.
For now, idf doesn't have support for this feature officially.
But we will eventually support it some day.
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: 5652

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: 5652

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: 5652

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(最好查看一下原理图)

Go to advanced search