in CubeMx 4.21.0 setting the 'Ethernet configuration registers' addresses...
What is the correct configuration for the STM32F76x for the LAN8710a ?
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
no, it didnt help,
I am stuck at tcpWaitForEvents()
I am not sure if the LAN8710a chip is up, hence the question.
HiMake 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.
Thanks Andy, I have it running now,
The Yellow LED is fully ON, but the Green LED never comes on.
I set the board to 100MHz no negotiation.
I had to set PHY =0 (thanks John)
and I found there is no reset function in the code
So I had to pull the Reset pin high. (It seems to be a wasted pin.)
Hello T J,
Thanks for updates you provided. Even if you already fixed it in your code, I'll report the wrong PHY address issue (highlighted by john doe) to our CubeMX team.
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:
Retrieving data ...