Skip to main content
Associate II
September 9, 2025
Solved

STM32F746NG + LWIP + FREERTOS ping problem

  • September 9, 2025
  • 3 replies
  • 541 views

Hello @Community,

I am working on the STM32F746NG board. In my application, I want to communicate with a PLC using the EtherNet/IP communication protocol to exchange real-time data.

The problem I am facing is that my board does not respond to ping when FreeRTOS is enabled. Without FreeRTOS, the board is pinging correctly.

Has anyone faced this issue before? If yes, please guide me on how to resolve it. Any suggestions or solutions will be greatly appreciated.

Thank you!

Best answer by STackPointer64

Hello,

After reviewing your project, it appears you skipped crucial steps when configuring your project, such as setting up the MPU, configuring LwIP heap memory, and declaring the proper memory sections for the descriptors and Rx pool. To resolve this, I suggest you follow the guide below and focus on these areas, adapting them to your MCU and memory configuration.

Best regards,

3 replies

Technical Moderator
September 9, 2025

Hello @ashish1907 and welcome to ST community,

To better understand and assist you with this issue, could you please attach your STM32CubeMX configuration file (.ioc), your main.c file, and your linker file? This will help me review your configuration and implementation.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
Associate II
September 9, 2025

@STackPointer64 Thank you for responding. The file mentioned below is a ZIP file of my STM32F746NG + LWIP + FreeRTOS project.

STackPointer64Best answer
Technical Moderator
September 9, 2025

Hello,

After reviewing your project, it appears you skipped crucial steps when configuring your project, such as setting up the MPU, configuring LwIP heap memory, and declaring the proper memory sections for the descriptors and Rx pool. To resolve this, I suggest you follow the guide below and focus on these areas, adapting them to your MCU and memory configuration.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
Associate II
September 10, 2025

Thank you @STackPointer64  for your response, it is working. However, I now want to communicate with a PLC through EtherNet/IP. For this, I need to build and run the OpENer stack on my STM32F746NG board. Could you please describe the process step by step?

Technical Moderator
September 10, 2025

Hello,

I’m afraid I cannot assist with that, as it is beyond my scope. Thank you for your understanding. I suggest you start a new thread in the community maybe other members could assist and guide you.

Best regards, 

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
Andrew Neil
Super User
September 10, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.