cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeF4 TCP Client sample for STM32F407G-DISC1 + STM32F4DIS-BB combo

3FTI
Associate II
Posted on April 20, 2016 at 21:41

I have the latest STM32CubeF4 downloaded but I can't find a compatible LwIP sample project. Can anyone point me in the right direction.

Thanks.
5 REPLIES 5
slimen
Senior
Posted on April 20, 2016 at 22:54

Hi,

I recommend you to have a look to the lwIP examples under STM32cubeF4 package:  STM32Cube_FW_F4_V1.11.0\Projects\STM324xG_EVAL\Applications\LwIP

For more details about lwIP, you can refer to

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

“Developing applications on STM32Cube with LwIP TCP/IP stack“

You can also look at this

http://www2.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM00104712.pdf/files/DM00104712.pdf/jcr:content/translations/en.DM00104712.pdf

, paragraph ''B.3.6 LwIP'' for the STM32CubeMX LwIP side.

Regards
AvaTar
Lead
Posted on April 21, 2016 at 11:36

There is a Cube-free example on the Element14 website (the distributor of the STM32F4DIS-BB boards).

It's based on an older SPL, but complete, including SPL, FatFS and (AFAIK) LwIP code, and it worked for me.

3FTI
Associate II
Posted on April 21, 2016 at 12:12

Thanks, I have given those a quick review. I was hoping to get something that runs out of the box for my initial prototyping. But if none is available I will dig into those resources more.

3FTI
Associate II
Posted on April 21, 2016 at 12:14

Avatar, thanks for the link. That should get me going and I can port to the newest SPL later.

3FTI
Associate II
Posted on April 22, 2016 at 01:34

forumstm32,

I am attempting to port the Cube example and from my reading it appears I only need to change the media interface type to RMII and update the GPIO associated with the interface. I generated a new project using the STM32CubeMX tool and I can see receive traffic coming from the PHY to the MCU but the MCU never receives any of the data.

Just wondering if there is another aspect to this I am missing?

Thanks.