Esp-idf: enc28j60 example failing (IDFGH-2693)

Created on 14 Feb 2020  路  3Comments  路  Source: espressif/esp-idf

this is the serial output when i run the ethernet enc28j60 example
i haven't changed anything in the code

I (0) cpu_start: Starting scheduler on APP CPU.
I (386) enc28j60: revision: 0
E (386) enc28j60: enc28j60_verify_id(478): wrong chip ID
E (386) enc28j60: emac_enc28j60_init(852): vefiry chip ID failed
I (396) gpio: GPIO[4]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
E (406) esp_eth: esp_eth_driver_install(194): init mac failed
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40085e0c
0x40085e0c: _esp_error_check_failed at /home/okasha/esp/esp-idf/components/esp32/panic.c:739

file: "../main/enc28j60_example_main.c" line 117
func: app_main
expression: esp_eth_driver_install(&eth_config, &eth_handle)

ELF file SHA256: 8ca8cda62156293abc0712223bd9b59fd78f39b314e4c8e12ae089feeb2dca9b

Backtrace: 0x4008585d:0x3ffb5790 0x40085e0f:0x3ffb57b0 0x400d5426:0x3ffb57d0 0x400d233e:0x3ffb58a0 0x4008893d:0x3ffb58c0
0x4008585d: invoke_abort at /home/okasha/esp/esp-idf/components/esp32/panic.c:157

0x40085e0f: _esp_error_check_failed at /home/okasha/esp/esp-idf/components/esp32/panic.c:740

0x400d5426: app_main at /home/okasha/esp/enc28j60/build/../main/enc28j60_example_main.c:117 (discriminator 1)

0x400d233e: main_task at /home/okasha/esp/esp-idf/components/esp32/cpu_start.c:563

0x4008893d: vPortTaskWrapper at /home/okasha/esp/esp-idf/components/freertos/xtensa/port.c:143

Rebooting...
ets Jun 8 2016 00:22:57

Most helpful comment

I got wrong Chip ID, when my frequency was too high in combination with jumper cables. Try it with 5MHz.

All 3 comments

please check your wire connection

I got wrong Chip ID, when my frequency was too high in combination with jumper cables. Try it with 5MHz.

thanks alot.
wow didn't notice that jumper lengths would matter
i used shorter jumper wires instead of the long flat cable i used and it worked
i actually checked the connection using a multimeter so the only factor is the cable length

I got wrong Chip ID, when my frequency was too high in combination with jumper cables. Try it with 5MHz.

Was this page helpful?
0 / 5 - 0 ratings