espidf以太网驱动一直卡在"Waiting for IP"

ckesp32idfzyzh
Posts: 13
Joined: Wed Jun 16, 2021 4:08 pm

espidf以太网驱动一直卡在"Waiting for IP"

Postby ckesp32idfzyzh » Sun Jul 25, 2021 2:20 pm

参考以太网dm9051驱动移植了w5500驱动,编译正常,烧录运行,通过打印的logo看,一直卡在"Waiting for IP(s)"。
这个是一个IP_EVENT_ETH_GOT_IP事件,由esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &on_got_ip, NULL));注册,回调函数为on_got_ip。
目前代码调试卡在此处,没有找到哪里触发了IP_EVENT_ETH_GOT_IP事件,无法分析问题出在哪里。

ckesp32idfzyzh
Posts: 13
Joined: Wed Jun 16, 2021 4:08 pm

Re: espidf以太网驱动一直卡在"Waiting for IP"

Postby ckesp32idfzyzh » Tue Jul 27, 2021 5:42 am

有技术支持吗,这问题卡很久了,给个思路也行啊

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: espidf以太网驱动一直卡在"Waiting for IP"

Postby ESP_Gargamel » Tue Jul 27, 2021 9:12 am

能否使用 idf 的 examples/ethernet/basic 示例直接试一下?Example Configuration → Ethernet Type 下选择 W5500 Module,然后 Example Configuration 下的参数和你自己的连线对应一下。

ckesp32idfzyzh
Posts: 13
Joined: Wed Jun 16, 2021 4:08 pm

Re: espidf以太网驱动一直卡在"Waiting for IP"

Postby ckesp32idfzyzh » Wed Jul 28, 2021 12:49 am

idf暂时没有W5500的 Module,我只能参考DM9051写

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: espidf以太网驱动一直卡在"Waiting for IP"

Postby ESP_Gargamel » Wed Jul 28, 2021 2:22 am

请使用 v4.3 版本,包含 W5500

Who is online

Users browsing this forum: No registered users and 124 guests