What is the difference between DMA_LDD and DMATransfer_LDD?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the difference between DMA_LDD and DMATransfer_LDD?

Jump to solution
979 Views
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.

Tags (3)
1 Solution
551 Views
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!

View solution in original post

3 Replies
552 Views
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!

551 Views
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 Kudos
551 Views
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 Kudos