This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Interfacing ENC28J60 with NRF52840

Hi,

I am experimenting with ENC28J60 and PCA10056. Following are my connections:

=================    ===================================
NRF52840 PCA10056    ENC28J60 (pin numbers on the board)
=================    ===================================
P0_19                              SCK
P0_21                              SO
P0_20                              SI
P0_03                              CS
P0_04                              INT
VDD                                 VCC
GND                                GND
=================    ===================================

I have flashed zephyr os to PCA10056. I have made necessary configurations and running dhcp client application. I am able to see the IP address being assigned to my device. I have tried pinging the assigned IP address. But I am not getting any response from my device. Also, when I have tried to ping other local IP address from my device, it is throwing a message which says, ping TimeOut. Please help me to resolve this issue. Please reply in case of any clarifications needed.

Thanks in advance,

Giri Prasad N.

Parents
  • You need to isolate the issue. Is it it a HW issue, wrong configuration of the Ethernet module, or is the Ethernet driver running on the nRF not behaving as you'd expect. 

    Do you have any debug logs, SPI sniffer traces, etc? 

  • I had screenshot of wireshark log. Following are the sequence of events that you can observe in wireshark:

    * IP Address of my device is 10.128.8.16 and IP Address of the PC from which I am initiating ping is 10.128.8.103.

    * Wireshark is running on PC with IP address 10.128.8.103.

    * From the attached image we can observe that PC has sent ping request to my device.

    * After that, device has sent a broadcast message seeking for the owner of IP Address 10.128.8.103(PC).

    * Then, PC has responded with its MAC ID.

                     These are the sequence of events that are occurring. I hope this log helps you in understanding the situation. Please let me know if you need more information.

    Thanks & Regards,

    Giri Prasad N.

  • Do you have any logs from the modem or the nRF device? 

    This ethernet sniffer trace only tells us that you got no reply to your ping. 

Reply Children
Related