This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83848C: dp83848 pinging directly but host unreachable through switch

Part Number: DP83848C

Dear Texas Instrument Ethernet Forum members,

This is my first post to this forum, and I am writing this for assistance regarding an issue I am facing with my DP83848VV ethernet PHY module board. Please note it is not DP83848C as I mentioned in the part number above. it is actually DP83848VVVBI as mentioned on the chip.

My ethernet PHY module board is actually waveshare based DP83848 board:

www.waveshare.com/dp83848-ethernet-board.htm

As per the connection on this blog :

blog.tkjelectronics.dk/.../

I have connected this to my STM32F4-Discovery board and developed the code with the STM32CubeMX for it. But the problem is that when I ping the board from my PC with the ethernet PHY module directly connected to my PC via a direct ethernet cable , it ping well and there is no dropout of the ethernet packets.

But when I connect it to the network via a switch in between and than I ping it through my PC than there is no communication and the message is :

Reply from 192.168.18.31: Destination host unreachable.

This is a very strange problem I am facing whereas all other PC connected to network via switch are pinging well and respond in well manner.

So I would like to get some assistance in this regard , if anybody has faced this problem before than please share your experience with me and others.

regards

Piyush Pandey

  • Hi Piyush,

    Can you read the MDIO registers from the DP83848 using your STM32F4-Discovery board? If you can, please read out registers 0x0 to 0x1f in both cases: DP83848 connected to PC, DP83848 connected to switch.

    This will let us see which bits are different. I suspect this is an issue with auto-negotiation settings between the switch and the DP83848. We have seen many cases where switches are not configured for auto-negotiation for every port.

    Best Regards,
  • Dear Rob,

    Can you please tell me how to read the MDIO registers , I mean if possible can you please provide me some Code snippet so that I can check it asap.

    regards

  • Hi Piyush,

    That depends on the STM32F4-Discovery board. I am not an expert on the STM32F4. In the MAC status/control registers there should be a way to interact with the MDIO registers from the DP83848.

    Best Regards,