cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107 Ethernet inicjalization

jakub2
Associate
Posted on May 24, 2016 at 17:37

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
4 REPLIES 4
Posted on May 24, 2016 at 17:48

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jakub2
Associate
Posted on May 25, 2016 at 16:05

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. 

Nesrine M_O
Lead II
Posted on May 25, 2016 at 16:18

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-

Jeanne Joly
Senior III
Posted on February 13, 2018 at 09:51

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

http://www.st.com/content/ccc/resource/technical/document/user_manual/65/e8/20/db/16/36/45/f7/DM001036pdf/files/DM001036pdf/jcr:content/translations/en.DM001036pdf

. 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