cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107 with LWIP using CubeMX

viktor_shkurko
Associate
Posted on March 21, 2016 at 19:59

I've created nearly identical projects using CubeMX.

First one is using STM32F107, 2 ADCs, ETH. When I compile it and run on my target (EasyMX Pro v7 for STM32 ARM), it gets to main loop without problems.

The only difference in the second project is that I've checked LWIP in CubeMX. The code compiles but gets stuck in:

  /* Wait for software reset */

  while (((heth->Instance)->DMABMR & ETH_DMABMR_SR) != (uint32_t)RESET)

  {

  }

I've exhausted nearly all the options, plus being new to ARM doesn't help.

Any bit of help or guidance will be greatly appreciated.

Sincerely,

Viktor

#ethernet #stm32f107
1 REPLY 1
Amel NASRI
ST Employee
Posted on March 30, 2016 at 17:43

Hi uber,

I have 2 suggestions:

1- refer to LwIP examples available in STM32Cube_FW_F1_V1.3.0\Projects\STM3210C_EVAL\Applications\LwIP to compare your own project with the ones available there.

2- Refer to the paragraph ''B.3.6 LwIP'' in the

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00104712.pdf

.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.