About behavior of MPU and ADMA2

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

About behavior of MPU and ADMA2

跳至解决方案
1,032 次查看
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)

--
标记 (2)
0 项奖励
1 解答
920 次查看
Yuri
NXP Employee
NXP Employee

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 项奖励
2 回复数
921 次查看
Yuri
NXP Employee
NXP Employee

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 项奖励
920 次查看
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 项奖励