cache issue with lwip stack

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

cache issue with lwip stack

跳至解决方案
704 次查看
yosri_c
Contributor III

hi folks 

i'm currently working on integrating lwip stack in our project and we noticed that everything runs well server side  until we enable the cahce in mpu config , we looked around and found out that there's an issue with DCACHE and both rxbuffer and txbuffer shouldn't be allocated in cached region so we went ahead and set some NCACHE region in SDRAM and made sure those buffers reside well in there but no response when enabling cache 

yosri_c_0-1716892982998.png 

yosri_c_1-1716893002691.png

 

is there anything else we're missing ?

 

标记 (2)
0 项奖励
回复
1 解答
601 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi again @yosri_c,

In this case, yes, the issue is only due to the rx and tx buffer compatibility. Please place these buffers on the NCACHE region.

BR,
Edwin.

在原帖中查看解决方案

3 回复数
654 次查看
yosri_c
Contributor III

not no USB yet , just using flexSPI for XIP boot from flash NOR and ethernet (LWIP+embedtls) for web server and ADC for ADE measurments  but no other peripherals

0 项奖励
回复
602 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi again @yosri_c,

In this case, yes, the issue is only due to the rx and tx buffer compatibility. Please place these buffers on the NCACHE region.

BR,
Edwin.

673 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @yosri_c,

What other peripherals are you using in your application? Do you happened to use USB as well?

BR,
Edwin.

0 项奖励
回复