ESP-IDF v4.0 ethernet 例程问题

ebsoft
Posts: 2
Joined: Tue Apr 14, 2020 3:31 pm

ESP-IDF v4.0 ethernet 例程问题

Postby ebsoft » Tue Apr 14, 2020 3:35 pm

ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6920
load:0x40078000,len:14724
load:0x40080400,len:4292
entry 0x400806e4
[0;32mI (72) boot: Chip Revision: 1[0m
[0;32mI (72) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (39) boot: ESP-IDF v4.0-dirty 2nd stage bootloader[0m
[0;32mI (39) boot: compile time 23:25:46[0m
[0;32mI (40) boot: Enabling RNG early entropy source...[0m
[0;32mI (45) boot: SPI Speed : 40MHz[0m
[0;32mI (49) boot: SPI Mode : DIO[0m
[0;32mI (53) boot: SPI Flash Size : 4MB[0m
[0;32mI (57) boot: Partition Table:[0m
[0;32mI (60) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (68) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (75) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (83) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (90) boot: 3 factory factory app 00 00 00010000 00100000[0m
[0;32mI (98) boot: 4 ota_0 OTA app 00 10 00110000 00100000[0m
[0;32mI (105) boot: 5 ota_1 OTA app 00 11 00210000 00100000[0m
[0;32mI (113) boot: End of partition table[0m
[0;32mI (117) boot: Defaulting to factory image[0m
[0;32mI (122) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (129) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1671c ( 91932) map[0m
[0;32mI (170) esp_image: segment 1: paddr=0x00026744 vaddr=0x3ffb0000 size=0x032a0 ( 12960) load[0m
[0;32mI (176) esp_image: segment 2: paddr=0x000299ec vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (178) esp_image: segment 3: paddr=0x00029df4 vaddr=0x40080400 size=0x0621c ( 25116) load[0m
[0;32mI (197) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x62af8 (404216) map[0m
[0;32mI (340) esp_image: segment 5: paddr=0x00092b18 vaddr=0x4008661c size=0x0ef94 ( 61332) load[0m
[0;32mI (379) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (379) boot: Disabling RNG early entropy source...[0m
[0;32mI (380) cpu_start: Pro cpu up.[0m
[0;32mI (383) cpu_start: Application information:[0m
[0;32mI (388) cpu_start: Project name: eth2ap[0m
[0;32mI (393) cpu_start: App version: v4.0-dirty[0m
[0;32mI (398) cpu_start: Compile time: Apr 14 2020 23:25:51[0m
[0;32mI (404) cpu_start: ELF file SHA256: 60777e4bf3e6e147...[0m
[0;32mI (410) cpu_start: ESP-IDF: v4.0-dirty[0m
[0;32mI (415) cpu_start: Starting app cpu, entry point is 0x400812fc[0m
[0;32mI (402) cpu_start: App cpu up.[0m
[0;32mI (426) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (433) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (439) heap_init: At 3FFB8920 len 000276E0 (157 KiB): DRAM[0m
[0;32mI (445) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (451) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (458) heap_init: At 400955B0 len 0000AA50 (42 KiB): IRAM[0m
[0;32mI (464) cpu_start: Pro cpu start user code[0m
[0;32mI (482) spi_flash: detected chip: generic[0m
[0;32mI (483) spi_flash: flash io: dio[0m
[0;32mI (483) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;31mE (706) emac_esp32: emac_esp32_init(308): reset timeout[0m
[0;31mE (706) esp_eth: esp_eth_driver_install(191): init mac failed[0m
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40088a54
file: "/home/ebsoft/windows/esp-idf-v4.0/examples/ethernet/eth2ap/main/ethernet_example_main.c" line 192
func: initialize_ethernet

4.0的eth的例程都会出现 EMAC reset timeout 的错误,这个是什么问题, 用的内部emac,例程没办法运行。

ESP_morris
Posts: 103
Joined: Wed Sep 05, 2018 6:23 am

Re: ESP-IDF v4.0 ethernet 例程问题

Postby ESP_morris » Wed Apr 15, 2020 6:29 am

你能描述一下你的以太网硬件连接情况吗?出现这个问题的原因是你的硬件连接或者是软件配置没有设置正确。
请先阅读https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_eth.html

ebsoft
Posts: 2
Joined: Tue Apr 14, 2020 3:31 pm

Re: ESP-IDF v4.0 ethernet 例程问题

Postby ebsoft » Wed Apr 15, 2020 10:18 am

我是按参考设计(rmii的引脚和参考设计一样)接的dp83848,但emac的初始化出错,此时应该没有到外部phy部分的设置,例程没有改过。

Who is online

Users browsing this forum: No registered users and 2 guests