Skip to main content
Visitor II
Mar 27, 2025 12:04 AM UTC
Solved

how to generate lwip working code stm32f767zi(nucleo 144) using stmcube ide

I tried to generate code using stm32cube ide to run lwip and tried to ping the board. But it is not working. Is it possible to generate code that runs without any modifications in the generated code?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Mar 27, 2025 4:43 PM UTC

Hello,


@Sudheesh_Unnipillai wrote:

Is it possible to generate code that runs without any modifications in the generated code?


No. That's impossible. You need some configurations to set in CubeMX or in the CubeMx embedded in CubeIDE.

You need to set the RAM used by the ethernet Tx/Rx descriptors, as well as the LWIP heap with the MPU configuration.

You can refer to this article for STM32H7 product.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

2 replies

Andrew Neil
Super User
Mar 27, 2025 4:37 PM UTC

Welcome to the forum.

 


@Sudheesh_Unnipillai wrote:

 it is not working. 


You need to give more detail - Please see: How to write your question to maximize your chances to find a solution.

 


@Sudheesh_Unnipillai wrote:

Is it possible to generate code that runs without any modifications in the generated code?


https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308

https://community.st.com/t5/stm32-mcus/using-the-itm-console-for-printf-redirects-and-lwip-debug/ta-p/723472 

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.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Mar 27, 2025 4:43 PM UTC

Hello,


@Sudheesh_Unnipillai wrote:

Is it possible to generate code that runs without any modifications in the generated code?


No. That's impossible. You need some configurations to set in CubeMX or in the CubeMx embedded in CubeIDE.

You need to set the RAM used by the ethernet Tx/Rx descriptors, as well as the LWIP heap with the MPU configuration.

You can refer to this article for STM32H7 product.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.