What is the difference between DMA_LDD and DMATransfer_LDD?

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

What is the difference between DMA_LDD and DMATransfer_LDD?

跳至解决方案
2,083 次查看
jackblather
Senior Contributor I

I am trying to set up SPI as a master using DMA. Which once should I use, DMA_LDD or DMATransfer_LDD? I have an external device sending a block of data. That device does not send data until I send an initiating command (SPI or GPIO).

I have PEx v10.2 with update.

I also see that starting with PEx v10.3 there is a new LDD Component, "DMAChannel_LDD". What functionality does that new device provide over DMA_LDD and DMATransfer_LDD? This is not mentioned in the release notes.

标记 (3)
1 解答
1,655 次查看
Rick_Li
NXP Employee
NXP Employee

HI Jack,

please use DMATransfer_LDD for your application.

the component DMATransfer_LDD provides DMA transfer configuration functionality. while component DMA_LDD provides internal direct memory access controller peripheral functionality.

component DMATransfer_LDD can't access DMA on-chip peripheral directly but it is using DMA_LDD as interface.

DMATransfer_LDD component allows user to have predefined set of particular DMA transfers.

for details of these two components, I would suggest reading help information. it can be access by just right click the component and then click "Help on Componet".

hope it helps!

在原帖中查看解决方案

3 回复数
1,656 次查看
Rick_Li
NXP Employee
NXP Employee

HI Jack,

please use DMATransfer_LDD for your application.

the component DMATransfer_LDD provides DMA transfer configuration functionality. while component DMA_LDD provides internal direct memory access controller peripheral functionality.

component DMATransfer_LDD can't access DMA on-chip peripheral directly but it is using DMA_LDD as interface.

DMATransfer_LDD component allows user to have predefined set of particular DMA transfers.

for details of these two components, I would suggest reading help information. it can be access by just right click the component and then click "Help on Componet".

hope it helps!

1,655 次查看
jackblather
Senior Contributor I

Thanks!

I also found a bunch of PDF help guides for each PEx component in ~/.ds-5/workbench/ProcessorExpert/Help/ComponentUserGuides

0 项奖励
回复
1,655 次查看
MVa
NXP Employee
NXP Employee

Hi Jack,

in CodeWarrior 10.5 and higher these DMA_LDD and DMATransfer_LDD were replaced by new DMA and DMAChannel_LDD components. These new components provides unified interface for both DMA (e.g. Kinetis L family) and eDMA (e.g. Kinetis K family) peripherals available on Kinetis MCUs and require less memory resources. See DMAChannel_LDD documentation for more details.

Please note that old DMA_LDD and DMATransfer_LDD are not supported for new MCUs and are provided for backward compatibility only. These old components should not be used for new designes.

Best Regards

Marek Varecha

Processor Expert Team

0 项奖励
回复