Using MQX MFS with DMA KSDK 1.2.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using MQX MFS with DMA KSDK 1.2.0

ソリューションへジャンプ
1,172件の閲覧回数
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 解決策
950件の閲覧回数
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 返信
951件の閲覧回数
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 件の賞賛
返信