Skip to main content
T J
Senior III
July 16, 2017
Solved

Ethernet cube config

  • July 16, 2017
  • 3 replies
  • 1470 views
Posted on July 17, 2017 at 00:57

in CubeMx 4.21.0 setting the 'Ethernet configuration registers' addresses...

What is the correct configuration for the STM32F76x  for the LAN8710a  ?

    This topic has been closed for replies.
    Best answer by john doe
    Posted on July 17, 2017 at 04:05

    as of version 4.22 it is still generating with the wrong PHY address for a 769 discovery. Change PHY from 1 to 0, maybe that will help you

    3 replies

    john doe
    john doeBest answer
    Senior III
    July 17, 2017
    Posted on July 17, 2017 at 04:05

    as of version 4.22 it is still generating with the wrong PHY address for a 769 discovery. Change PHY from 1 to 0, maybe that will help you

    T J
    T JAuthor
    Senior III
    July 17, 2017
    Posted on July 17, 2017 at 12:17

    no, it didnt help,

    I am stuck at tcpWaitForEvents()

    I am not sure if the LAN8710a chip is up, hence the question.

    andy b
    Senior
    July 17, 2017
    Posted on July 17, 2017 at 20:54

    Hi

    Make sure you have a pin defined as MCO .Im using the F407 and apparently if that pin is not defined ethernet would not work.The cube doesn't define it automatically.(I haven't verified but I have seen multiple sources mentionning this).

    On the F407 the configs work ''out of the box'' for LAN8720.(dont know the difference between this and your 10A).

    Check if your LEDS in your ethernet connector are blinking that would be a good sign that your PHY is working.Most ethernet project I've seen the mcu clock is set to the max speed (168MHz for me).If you are sure it is a hardware problem try to make sur that your ethernet wires are as short as possible.

    -Andy

    Amel NASRI
    Technical Moderator
    July 18, 2017
    Posted on July 18, 2017 at 11:15

    Hello

    Marsh.Nick

    ‌,

    Thanks for updates you provided. Even if you already fixed it in your code, I'll report the wrong PHY address issue (highlighted by

    doe.john.016

    ‌) to our CubeMX team.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    stm32cube-t
    ST Employee
    November 8, 2017
    Posted on November 08, 2017 at 11:08

    For MII Ethernet modes, STM32Cube uses '' DP83848_PHY_ADDRESS'' and ''User Phy''. For RMII Ethernet modes  ''LAN8742A_PHY_ADDRESS'' and ''User Phy'' can be used.

    The MCO pin (master clock output) must be configured when that you want to use for the ETH Phy source. Otherwise you can keep the default crystal configuration.

    On some boards (evaluation board) there is no choice but to use the MCO and it is already configured in CubeMX when you select to load the board with all peripherals initialized:

    0690X00000608s1QAA.png