cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 Discovery & LwIP Udp Echo Server

me
Associate
Posted on November 30, 2015 at 08:41

Hi all,

I'm trying to run the example Udp Echo Server with raw API from LwIP (included in the cube 1.9.0) on a STM32F4 discovery board, with a STM32F4DIS-BB extension board. Unfortunately the code doesn't seem to work.

Basically, there is an infinite loop in the main function that (indirectly) calls the HAL_ETH_GetReceivedFrame in stm32f4xx_hal_eth.c. However, there is a test at the beginning of this function that checks whether the segment is not owned by DMA and that always fails. As a result, this function always returns an error and no frame ever gets read.

I didn't modify the sample code, so I don't really see why this doesn't work. Does anyone have an idea?

Thanks in advance

1 REPLY 1
mridul
Associate
Posted on January 06, 2016 at 11:03

I have been facing the same issue. I was trying to interface a LAN via ethernet on stm32f4dis-bb board using stm32cubeMX. attached is the configuration file. I have also tried from this forum

/public/STe2ecommunities/mcu/Lists/STM32Java/DispForm.aspx?ID=444&RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/STM32F4DIS-BB%20%2b%20ETH%20%2b%20CubeMX&Source=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder%3Dhttps%253a%252f%252fmy%252est%252ecom%252fpublic%252fSTe2ecommunities%252fmcu%252fLists%252fSTM32Java%252fSTM32F4DIS%252dBB%2520%252b%2520ETH%2520%252b%2520CubeMX%26FolderCTID%3D0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21%26currentviews%3D1720

Try this maybe you find out something, but its not working for me. If you get something please post in this thread.

ST team please help us to develop this from the scratch using stm32cubeMX or update a library for MX.

________________

Attachments :

test3.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzn4&d=%2Fa%2F0X0000000bPk%2FlQt6_7n0WIFdebRWRp_NN7r6nL5a9iq4VBujMJFS_GM&asPdf=false