[BUG FOUND] External PHY stopped working two updates ago. Please check what happened.
Update 4:
The definition of these variables was missing (FW_F4 1.25.0), the generated code did not insert this part:
File Src/lwip.c (line 58)
void MX_LWIP_Init(void)
{
/* IP addresses initialization */
IP_ADDRESS[0] = 192;
IP_ADDRESS[1] = 168;
IP_ADDRESS[2] = 1;
IP_ADDRESS[3] = 111;
NETMASK_ADDRESS[0] = 255;
NETMASK_ADDRESS[1] = 255;
NETMASK_ADDRESS[2] = 255;
NETMASK_ADDRESS[3] = 0;
GATEWAY_ADDRESS[0] = 192;
GATEWAY_ADDRESS[1] = 168;
GATEWAY_ADDRESS[2] = 1;
GATEWAY_ADDRESS[3] = 1;
/* Initilialize the LwIP stack without RTOS */
lwip_init();Update 3:
STM32CubeMX version 5.6.0 (FW_F4 1.25.0) did not work.
STM32CubeMX version 5.5.0 (FW_F4 ?) did not work.
STM32CubeMX version 5.4.0 (FW_F4 1.24.2) worked.
STM32CubeMX version 5.2.0 (FW_F4 1.24.1) worked.
STM32CubeMX version 4.27.0 (FW_F4 1.19.0) worked.
STM32CubeMX version 4.22.0 (FW_F4 1.16.0) worked.
Update 2:
I downloaded STM32CubeMX version 5.2.0 (FW 1.24.1) and it worked.
STM32CubeMX version 5.6.0 did not work.
I imported the Atollic project (made with FW1.24.1) in STM32CubeIDE (1.3.0) and it worked.
So it's not a problem with the STM32CubeIDE, but with the FW package.
I will download (STM32CubeMX) the versions between 5.2.0 and 5.6.0, it seems that at some point there was some change that should not have occurred.
=========== X ============
Update:
I managed to make it work with STM32CubeMX version 4.22.0 (FW 1.16.0) but it didn't work with STM32CubeIDE 1.3.0 (FW 1.25.0)
=========== X ============
I found an example, step by step, of using the LAN8720, including video, but ping.exe is not receiving responses.
It seems that there were some changes in the automatic code generation.
What could be happening?
The LEDs on the network card are showing activity, the connections between STM32F407VG and LAN8720 show activity only at startup, should there be activity all the time?
(The material is in Russian, but using subtitles and translators it is possible to understand)
Website:
http://narodstream.ru/stm-urok-96-lan8720-lwip-tcp-client-chast-2/
Movie:
https://www.youtube.com/watch?v=L8nLqsp5nSo
I found other tips too, but it didn't work:
https://community.st.com/s/question/0D50X00009XkduA/use-lan8720a-for-phy-init-ethernet