Skip to main content
JongOk Baek
Associate III
December 24, 2018
Question

STM32H7_HAL Ethernet has problem yet.

  • December 24, 2018
  • 3 replies
  • 1182 views

Dear Imen,

Thanks for your replay.

I modified my project file using your new library file(ethernetif.c)

And I was testing during two days.

But, It has a problem yet.

Previously, there was stop the ethernet in minutes.

But, there was stop the ethernet in hours about 2~5.

My application is to convert UDP to SERIAL.

UDP packets per a second cycle are approximately 25 ~ 30.

0690X000006CuwEQAS.jpg

There is a PING every second at the same time.

I captured the PING result below.

0690X000006CuwJQAS.jpg

And after a few hours, the response is stopped.

 Merry Christmas and Happy New Year!

This topic has been closed for replies.

3 replies

Joerg Wagner
Senior III
December 27, 2018

Do you use FreeRTOS, and when which settings do you have?

(Thread and stack size)

Are you sending UDP packets with netconn API?

JongOk Baek
Associate III
December 28, 2018

Hi Joerg,

Thanks for your reply.

Yes, I use the FreeRTOS. And I use the function of socket API.

(configTOTAL_HEAP_SIZE is 128KB. and UDP_RX_TASK stack is 512)

I was setting that cache is disable.

Ethernet is stop. but other tasks are good running.

Best regards,

Joerg Wagner
Senior III
December 28, 2018

Is it possible to ran out of memory after 2-5 hours?

Print the result of the RTOS function xPortGetFreeHeapSize() to determine how many bytes are available.

You can also enable the statistics of LwIP and take a look at the peaks.