K65 Allowing for Cache and DMA coherence

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

K65 Allowing for Cache and DMA coherence

622 次查看
unknowncoder
Contributor III

Background

  • I am looking at enabling the code cache controller on the K65 to improve performance.
  • I utilize DMA for peripheral to memory and memory to peripheral transfer.
  • I know cache and DMA don't normally work good together and the normal operation is to invalidate the cache before/after, read/write respectively.

Question

  • From the Table 30-1 it shows that SRAM is non-cacheable. Given this if I make sure that all access with DMA occurs within SRAM would I need to invalidate the cache still?

Thanks

标签 (1)
标记 (4)
0 项奖励
3 回复数

550 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Yes, you are right. SRAM in K65 is a kind of TCM. Its speed is same as M4 kernel. It needn't cache.

Regards,

Jing

0 项奖励

550 次查看
unknowncoder
Contributor III

Are both upper and lower memory tightly coupled memory to the core? 

0 项奖励

550 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Yes.

Regards,

Jing

0 项奖励