Skip to main content
_AdamNtrx
Associate III
March 14, 2025
Solved

Making Ethernet work with LwIP and FreeRTOS on STM32F7

  • March 14, 2025
  • 4 replies
  • 1112 views

I am writing this post in case anybody encounters a similar problem.

I had a problem with assigning IP address to STM32F769I-DISCO devboard and communicating with it via Ethernet while using LwIP and FreeRTOS. The solution to this problem was disabling D-Cache in Cortex_M7 settings in STM32CubeMX. I don't know if I would ever think about trying this out if not for the old forum thread I found.

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

Disabling the cache is not a good solution because that decreases the overall system performance. But disable the cache on the a specific regions using MPU where the Tx/Rx descriptors and LWIP memory pool are located.

See for example this article on STM32H7 / section Cortex-M7 configuration.

 

4 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
March 14, 2025

Hello,

Disabling the cache is not a good solution because that decreases the overall system performance. But disable the cache on the a specific regions using MPU where the Tx/Rx descriptors and LWIP memory pool are located.

See for example this article on STM32H7 / section Cortex-M7 configuration.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
_AdamNtrx
_AdamNtrxAuthor
Associate III
March 14, 2025

I remember trying out the MPU configuration in sample HTTP server program and it didn't work. It's possible that I did something incorrectly though.

mƎALLEm
ST Technical Moderator
March 14, 2025

@_AdamNtrx wrote:

I remember trying out the MPU configuration in sample HTTP server program and it didn't work. It's possible that I did something incorrectly though.


Yes I think so.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
JongOk Baek
Associate III
March 14, 2025

Hello,

 

I attached project file for STM32F7 with FreeRTOS and LwIP.

it is operated on STM32F767 NUCLEO board. (without Cache)

Refer to the attached file.