About behavior of MPU and ADMA2

cancel
Showing results for 
Search instead for 
Did you mean: 

About behavior of MPU and ADMA2

Jump to solution
414 Views
Takashi_Kashiwagi
Senior Contributor I

Hi

I am using MCUXpresso IDE and IMXRT1050-EVKB.

I found the following strange MPU and ADMA2 behavior.
- When OCRAM is not Shareable(Default setting by SDK), f_mount(FATFS) faild.
The cause was due to ADMA2 accessing variables located in OCRAM. 
Strictly, the first access successed (Single Read Sector 0) and the second access failed(Single Read Sector 8192), but ADMA2 returned no error.
The solution is to make shared memory accessible by ADMA 2.
Is this a specification?
SDK Archive Detail is following.
--

Build Date: 2018-08-06, Board: EVKB-IMXRT1050

OS: Windows, Toolchain: MCUXpresso IDE

Components: CMSIS DSP Library, Amazon-FreeRTOS Kernel, DMA Manager, lwIP, sdmmc stack, mbedtls, FatFS, USB stack

SDK Version: KSDK 2.4.2 (2018-08-02)

--
Tags (2)
0 Kudos
1 Solution
302 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

 

     Look at section 4 (Cache maintenance and data coherency) of 

AN12042 app note  (Using the i.MXRT L1 Cache).

https://www.nxp.com/docs/en/application-note/AN12042.pdf 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

View solution in original post

0 Kudos
2 Replies
303 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

 

     Look at section 4 (Cache maintenance and data coherency) of 

AN12042 app note  (Using the i.MXRT L1 Cache).

https://www.nxp.com/docs/en/application-note/AN12042.pdf 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

0 Kudos
302 Views
Takashi_Kashiwagi
Senior Contributor I

Thank you for your reply.

I read AN12042.pdf. Although the clear behavior of ADMA 2 was not described, I thought it was the influence of L1 Chache.

Have a nice weekend.

0 Kudos