DMA and On Chip RAM

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

DMA and On Chip RAM

Jump to solution
2,468 Views
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.

Labels (4)
1 Solution
2,309 Views
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

View solution in original post

2 Replies
2,309 Views
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.
-------------------------------------------------------------------------------

2,310 Views
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