Using MQX MFS with DMA KSDK 1.2.0

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

Using MQX MFS with DMA KSDK 1.2.0

跳至解决方案
1,189 次查看
jschepler
Contributor III

Hello,

I've done searching through the forum on this topic, but the results were from many years ago. 

Does anyone know the procedure of using DMA within the MQX OS with MFS?

We will be writing to an SD card and would like to unload the processor as much as possible.  I searched for "DMA" in the MQX RTOS MFS User's Guide rev 2.9 and came back with 0 hits.

The processor is in the K64F family.  The processor reference manual has information on DMA and SDHC, but I don't know how to use the DMA portion with MQX when writing to an SD card using MFS.

Thanks

标签 (1)
标记 (4)
0 项奖励
回复
1 解答
967 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Jschepler

In fact, DMA has nothing to do with MFS. That's why can't get any hints with DMA in MFS user guider.

So I think maybe your question is whether the ESDHC driver supports DMA. The short answer is yes, it does.  eSDHC drivers were reworked to leverage the ADMA peripheral module in classic MQX.

If you want to get maximum performance and really offload the CPU the application has to do bulk operations. I mean if the application reads/writes a file byte by byte the DMA is not of much use. It pays off the most if the application reads/writes data by blocks at least of cluster size and the best performance is achieved if the file offset is sector (or even better cluster) aligned.

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
968 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Jschepler

In fact, DMA has nothing to do with MFS. That's why can't get any hints with DMA in MFS user guider.

So I think maybe your question is whether the ESDHC driver supports DMA. The short answer is yes, it does.  eSDHC drivers were reworked to leverage the ADMA peripheral module in classic MQX.

If you want to get maximum performance and really offload the CPU the application has to do bulk operations. I mean if the application reads/writes a file byte by byte the DMA is not of much use. It pays off the most if the application reads/writes data by blocks at least of cluster size and the best performance is achieved if the file offset is sector (or even better cluster) aligned.

Regards

Daniel

0 项奖励
回复