cache issue with lwip stack

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cache issue with lwip stack

Jump to solution
389 Views
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 ?

 

Tags (2)
0 Kudos
Reply
1 Solution
286 Views
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.

View solution in original post

3 Replies
339 Views
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 Kudos
Reply
287 Views
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.

358 Views
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 Kudos
Reply