Skip to main content
MKräm.2
Associate
February 20, 2023
Question

STM32F107VCT6 and LAN8720 Ethernet Communicaton

Hello,

currently we are working with easyMx Pro V7 Boards in Class and we are trying to get basic ethernet communication working. First time for everybody using stm32cubemx and HAL, even our teacher never used either one. Any Communication happening would be nice. Currently we have:

  • Enabled the HSE Crysal/Ceramic Resonator
  • Enabled MCO
  • Enabled ETH in RMII Mode
  • Configured PHY according to this. When looking at the Datasheets it seems to be the same.
PHY_Address = 0
PHY Special Control/Status register Offset - 0x1F
PHY Speed Mask - 0x0004
PHY Duplex Mask - 0x0010
PHY Interrupt Source Flag Register Offset - 0x001D
PHY Link Down Interrupt - 0x0010

  • Enabled LWIP
  • Disabled DHCP and set a static IP

Currently we are not getting any response to our pings or any other indication that something is working. Did we forget to configure anything? Is there an accurate guide somewhere?

This topic has been closed for replies.

4 replies

MKräm.2
MKräm.2Author
Associate
February 20, 2023

Currently working with a Youtube Tutorial by ControllersTech so it should be responding at least to our pings

Tesla DeLorean
Guru
February 20, 2023

Presumably MikroE should be able to provide some working examples

Most of the older F105 / F107 boards I recall use the DP83848

Double check the MCO frequency is as expected.

https://www.mikroe.com/easymx-pro-stm32

https://blog.csdn.net/tanmx219/article/details/105965889

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MKräm.2
MKräm.2Author
Associate
February 21, 2023

In the link you send it says that we need to bridge PA8 and PA1, can we do this in software or do we need to use a jumper or something?

MKräm.2
MKräm.2Author
Associate
February 21, 2023

Unfortunately they dont, only thing they provide is example code which uses a library that only works in their IDE