Skip to main content
JongOk Baek
Associate III
July 14, 2018
Question

Don't receive concurrently packet from UDP

  • July 14, 2018
  • 1 reply
  • 837 views
Posted on July 14, 2018 at 17:03

Hello.

I have a problem about my project.

I use my same codes in different MCUs (STM32F746 and STM32H743).

Recently, I found this bug when receive from UDP at 0.1ms ~ 0.5ms interval concurrently packets.

(FreeRTOS, LwIP)

I use UDP_Rx_Task in 5ms interval for receive from UDP.

I modified parameter about LwIP. it is MEMP_NUM_NETBUF.

So, I changed value from 2 to 32. (in STM32F7 MCU situation.)

It is correct.

I thought it resolved problem at STM32F7 MCU.

But, it did not solved problem at STM32H7 MCU.

For example, I test using 4 packets such as a, b, c and d in consecutive. (packet length is 50 ~ 110 bytes.)

I received a and b packet only.

After changed MEMP_NUM_NETBUF, I received a, b and b packets.

It is same packet between 2nd and 3rd packet.

I referred to the communities issues in ST(FAQ: Ethernet not working on STM32H7x3) and examples folder in H7 HAL version v1.2.0).

So, I modified MPU_Config() and low_level_input(). I think it is about cache maybe.

After changed function codes, I received a, b, and c packets.

But, I don't received concurrently packet completely yet.

Please help me!

#ethernet #stm32h7 #concurrently #mac
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
August 8, 2018

Sorry, can't help you bumping off my feed

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..