Search found 3 matches

by KeshavThosar
Thu Jul 29, 2021 6:28 pm
Forum: General Discussion
Topic: Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID
Replies: 6
Views: 5995

Re: Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID

So it seems I messed up the wiring and the clock speed. I reduced the length of the jumper wires and reduced the SCK speed to 6MHz and it is functioning now. Hope this helps. Thanks to ESP-Sprite for bringing in the thought.
by KeshavThosar
Thu Jul 29, 2021 10:09 am
Forum: General Discussion
Topic: Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID
Replies: 6
Views: 5995

Re: Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID

ESP_Sprite wrote:
Thu Jul 29, 2021 10:01 am
My wiring is functioning properly
Just curious: what makes you so sure about that?
It is because when I tested it initially, it failed to retrieve the revision ID (so it was just assigned 0) so I re-did the wiring, and then it worked out (Later it gave me a value of 6 and kept doing so).
by KeshavThosar
Thu Jul 29, 2021 8:07 am
Forum: General Discussion
Topic: Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID
Replies: 6
Views: 5995

Ethernet ENC28j60 github example - Error: enc28j60_init: wrong chip ID

After running idf.py menuconfig and flashing the code, I am getting a “Wrong Chip ID” error. I explored the code and I think the problem seems to be occurring while reading the PHY register PHCON1 (ETH_PHY_IDR1_REG_ADDR) and PHCON2 (ETH_PHY_IDR1_REG_ADDR). My wiring is functioning properly but the i...