cancel
Showing results for 
Search instead for 
Did you mean: 

Making Ethernet work with LwIP and FreeRTOS on STM32F7

_AdamNtrx
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
mƎALLEm
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

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.


@_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 on "Accept as Solution" on the reply which solved your issue or answered your question.
JongOk Baek
Associate III

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.