cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746NG + LWIP + FREERTOS ping problem

ashish1907
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
STackPointer64
ST Employee

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.

View solution in original post

6 REPLIES 6
STackPointer64
ST Employee

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.

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

STackPointer64
ST Employee

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.

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?

STackPointer64
ST Employee

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.

The new thread:

Implement EtherNet/IP communication on STM32F746NG using OpENer

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.