cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7_HAL Ethernet has problem yet.

JongOk Baek
Associate III

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!

3 REPLIES 3
Joerg Wagner
Senior III

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

(Thread and stack size)

Are you sending UDP packets with netconn API?

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

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.