Kinetis DMA support in MQX

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

Kinetis DMA support in MQX

3,946 次查看
gtoph
Contributor II

I was wondering if DMA driver support was going to be added to MQX in the near future?  It mentions it in the IO users guide, but obviously it hasn't been included yet.

15 回复数

2,141 次查看
Mr_Honey
Contributor I

Hello,

I want to ask if there is a new progress in DMA support on Kinetis? I am currently testing the K60 Tower kit with Atheros Wifi card running MQX 3.7, but I don't get even to 2.4/2.6Mbit UDP throughput performance mentioned in IoT_Wireless_System_Rel14_Release_notes.pdf. My target throughput is somewhere around 6-7Mbit.

0 项奖励
回复

2,141 次查看
PetrL
NXP Employee
NXP Employee

Hi, we are rewriting the Kinetis SPI interrupt driver (DSPI) to make it faster and leverage DMA mode in it. The driver should be part of upcoming MQX 3.8.0.

 

Petr

2,141 次查看
iafg
Contributor IV

DMA + DSPI solves one of our issues.

The other needed use case is using

DMA with ADC to fill a buffer.

2,141 次查看
iafg
Contributor IV

And how is the release date of MQX 3.8 looking?

0 项奖励
回复

2,141 次查看
c0170
Senior Contributor III

hi iafg,

 

MQX 3.8 RTM is planned to be released next month.

0 项奖励
回复

2,141 次查看
solen
Contributor II

Hi, are there plans on leveraging UART with DMA as well?

BR

Staffan

0 项奖励
回复

2,141 次查看
PetrL
NXP Employee
NXP Employee

Hi,

you are right, DMA driver/API is not included in current (3.7) MQX release.

 

We are discussing about including it in future MQX releases, but need to know more details on use cases and solutions users would be interested in. Could you provide some more info on the topic?

 

PetrL

 

 

0 项奖励
回复

2,141 次查看
AllenH
Contributor I

I would be interested in using it for SPI writes.  Especially since there is a slowness issue reading the SPI StatusRegister, limiting the data throughput to 2 to 3 Mbps with the provided SPI drivers.  I'm trying to get 24 Mbps (FPGA bootup), and the provided drivers don't come close.

2,141 次查看
PetrL
NXP Employee
NXP Employee

What platform are you using? We are planning to improve speed for devices with DSPI module (Kinetis, ColdFire V3,V4)  in MQX 3.8.0

 

Petr

0 项奖励
回复

2,141 次查看
Muffinman
Contributor I

Would you like email me the DMA driver for my project testing purpose?

One more thing, what's the relation between the eDMA and uDMA in the K60?

Can you explain how the ethernet use the DMA with PTP supporting?

0 项奖励
回复

2,141 次查看
Muffinman
Contributor I

If you can send me an example about the scatter/gather DMA, that will be good.

 

0 项奖励
回复

2,141 次查看
egoodii
Senior Contributor III

A scatter/gather operation to (de)interleave 6 streams of audio from I2S to/from linear sample arrays from/to TDM mode of three stereo CoDecs on one I2S with DMA doing all the interleave/de-interleave double-buffering work:

https://community.freescale.com/message/82190#82190

This doesn't use chained DMA descriptors, as one 'major loop' is all that is needed.

 

--ERGII

0 项奖励
回复

2,141 次查看
Nana
Contributor II

So the MQX 3.8 was released and I don't see no DMA driver support, only for DSPI driver.  In MQXIOUG document is mentioned  at page 12 in chapter  Family Supported Drivers is mentioned about DMA device. 

 

It's same poor description in documentation !!

0 项奖励
回复

2,141 次查看
Nouchi
Senior Contributor II

Hello,

 

Using DMA with timers would be interresting to generate specials timing without CPU (interrupt) overhead.

I already use DMA  with MCF52259, but I'm planned to use Kinetis family.

0 项奖励
回复

2,141 次查看
gtoph
Contributor II

Hi Petrl,

 

For me, the specific case where I would like to use it is in A/D readings.  I would like to run the A/D as fast as possible and just have the DMA engine shove the readings into array data in memory for later processing.  One of my concerns is that the interrupt/poll wouldn't be fast enough before the next A/D reading overwrites the previous value and it would be lost....  plus it would be nice if it just happend automatically in the backgroud.

 

Since there are a ridiculous amount of registers to setup, it would be nice to have some MQX drivers to set them up or at least a generic example to see how it is supposed to work.

 

 

0 项奖励
回复