cancel
Showing results for 
Search instead for 
Did you mean: 

How to make lwip tx rx buffers non cacheble

RBG
Associate II
 
8 REPLIES 8
TDK
Guru

Always include your chip part number when asking a question.

You can use HAL_MPU_ConfigRegion to disable cache for a memory range.

If you feel a post has answered your question, please click "Accept as Solution".
RBG
Associate II

STM32F767.

If caches are enabled tcpip msg fetch is not working so need to make lwip rx tx buffers as non cacheable

Did you read the second part of my message?
If you feel a post has answered your question, please click "Accept as Solution".
RBG
Associate II

yes Thank you.

How to select the buffer region.

Do we need to place the buffers in particular memory region before making that region non cacheable

TDK
Guru

You will need to make the buffers aligned to cache line boundaries, but they don't need to be located anywhere in particular.

If you feel a post has answered your question, please click "Accept as Solution".
RBG
Associate II

Can we make those buffers non cacheable.

TDK
Guru

Yes, by using HAL_MPU_ConfigRegion. We're going in circles here. I'm not going to write the code for you for free. Maybe someone else will.

If you feel a post has answered your question, please click "Accept as Solution".
RBG
Associate II

I just wanted to know which are the buffers I need to make non cacheabpe in lwip​