DMA and On Chip RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,937件の閲覧回数
Harjit
Contributor II

From reading AN12437, it seems that the DMA engine can access ITCM, DTCM and OCRAM. Is this true?

How does one deal with coherency i.e. let's say I have a buffer in DTCM or OCRAM and am DMAing data from the UART. Do I use the MPU to configure the region as non-cached?

I haven't found the document that talks about cache, DMA and coherency.

Thanks.

ラベル(4)
1 解決策
1,778件の閲覧回数
Takashi_Kashiwagi
Senior Contributor I

Hi Harjit-san

The following threads are helpful.

RT1060 - use of OCRAM breaks fatfs example 

How does one deal with coherency i.e. let's say I have a buffer in DTCM or OCRAM and am DMAing data from the UART. Do I use the MPU to configure the region as non-cached?

Yes. Please set OCRAM to non-chached(shareble).

Please refer to the following document.

ARM Cortex-M7 Processor Technical Reference Manual – Memory Protection Unit

Best Regards,

T.Kashiwagi

元の投稿で解決策を見る

2 返答(返信)
1,778件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Harjit Singh,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) Is this true?
-- Yes.
1) Do I use the MPU to configure the region as non-cached?
-- Yes, it should do that.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,779件の閲覧回数
Takashi_Kashiwagi
Senior Contributor I

Hi Harjit-san

The following threads are helpful.

RT1060 - use of OCRAM breaks fatfs example 

How does one deal with coherency i.e. let's say I have a buffer in DTCM or OCRAM and am DMAing data from the UART. Do I use the MPU to configure the region as non-cached?

Yes. Please set OCRAM to non-chached(shareble).

Please refer to the following document.

ARM Cortex-M7 Processor Technical Reference Manual – Memory Protection Unit

Best Regards,

T.Kashiwagi