cache issue with lwip stack

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

cache issue with lwip stack

ソリューションへジャンプ
583件の閲覧回数
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 解決策
480件の閲覧回数
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 返答(返信)
533件の閲覧回数
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 件の賞賛
返信
481件の閲覧回数
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.

552件の閲覧回数
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 件の賞賛
返信