2016-01-21 09:45 AM
Hi,
I want just to signal that CubeMX generates a wrong ETH_PHY_ADDRESS inside the stm32f7xx_hal_conf.h file when a project for the Nucleo-144-F7 is generated. The address is declared as equal to 1:...
#define DP83848_PHY_ADDRESS 0x01
...
while it should be equal to 0x0 as clearly stated inside the Nucleo-144-F7 documentation. This causes that the code inside thelow_level_init() function is wrong.
#lwip-stm32f7-nucleo-144
2016-01-22 01:45 AM
Hi cnoviello,
Thank you for your feedback. The issue has been reported internally.-Syrine-2016-02-03 06:31 AM
Dear user,
Thank you for reporting this issue. STM32CubeMX 4.13 release will fix the Ethernet Phy Address to be zero for NucleoF7 boards. Note the following should be removed from hal_conf.h as it is board specific and actually not a component on Nucleo boards:* DP83848 PHY Address*/
#define DP83848_PHY_ADDRESS 0x01Best regards
2016-02-26 12:01 PM
Hi,
It seems that the same issue can still occur for the 32F746GDISCOVERY board in STM32CubeMX 4.13.0. If I select the board, do not select ''Initialize all IP with their default mode'' and then select ETH and LWIP, the generated ethernetif.c contains: heth.Init.PhyAddress = 1; With that line, I cannot ping the board. If I change to: heth.Init.PhyAddress = 0; rebuild and run, I can ping the board. In an earlier project where I had selected ''Initialize all IP with their default mode'', the problem did not occur. Best regards, Alain Mosnier