2016-05-24 08:37 AM
Hi, I am tring to initialize Ethernet with LWIP on STM32F To configure it I used CubeMX, but it can not pass this loop:
/* Wait for software reset */
while
(((heth->Instance)->DMABMR & ETH_DMABMR_SR) != (uint32_t)RESET)
{
}
from file stm32f1xx_hal_eth.c. What am I doing wrong? I would appreciate any help.
#stm32f107 #ethernet
2016-05-24 08:48 AM
Issues typically revolve about how the PHY is being clocked, and where the clock sources are coming from. ie who generates them, where they route.
The external PHY and how that is designed into the board will be critical to convey to Cube, et al.2016-05-25 07:05 AM
Thank you for your answer, but I am not sure what I should do in this situation. I have external clock 16MHz, and HCLK is grater than 50MHz.
2016-05-25 07:18 AM
Hi postepski.jakub,
I recommend you to have a look to the LwIP applications under the STM32F1 cube firmware package, it may be helpful:STM32Cube_FW_F1_V1.4.0\Projects\STM3210C_EVAL\Applications\LwIP-Syrine-2018-02-13 12:51 AM
Hi
74356
,Did you try to have a look to the examples advised by
ELMHIRI.Syrine
?Under the link she advised you, you can find a link to the doc
. Itgives you a full description of how to integrate a free middleware TCP/IP stack using STM32CubeHAL drivers into an embedded application based on STM32 microcontroller.I hope it will help you.
BR. Jeanne