9 years, 3 months ago.

DMA Library for FRDM-KL46Z

The DMA code given in handbook is not working for FRDM-KL46Z. Is there any updated library for the same?

That works.Thank you. I have a doubt with SPI. How can a master microcontroller(FRDMKL46Z) receive data from another master (TIVA C) using SPI?(TIVA C is sending 16 unsigned integers)

posted by Pradeep Kotipalli 26 Dec 2014

2 Answers

9 years, 3 months ago.

You mean the cookbook I assume? Since the Handbook doesn't have DMA code that I am aware of. And then you mean SimpleDMA? Can you say how it is not working? Does the hello world function correctly? I didn't write the KL46 part myself, but did write the KL25 part, and only addition of KL46 is the peripheral trigger numbers.

It was showing "Error: Cannot open source input file "LPC17xx.h": No such file or directory in "MODDMA_1/iomacros.h" "

posted by Pradeep Kotipalli 26 Dec 2014

MODDMA is LPC1768 only. SimpleDMA supports Kl46

posted by Erik - 26 Dec 2014
8 years, 9 months ago.

Hello Erik,

Can you help us with the DMA ( on SPI bus ) over kl46z

thanks, Saiteja Dommeti

Have a look at: https://developer.mbed.org/users/Sissors/code/RTOS_SPI/file/0ab62cbad3aa/RTOS_SPI_KL46.cpp

While written specifically for one purpose (RTOS and SPI), it shows how you can use SimpleDMA to control SPI on KL46z. Of course if you want to make a specific solution for your problem you can just use it to get ideas from it.

posted by Erik - 11 Jul 2015

Hello Erik,

We implemented the dma code RTOS_SPI_KL46.cpp in our KL46Z application and it worked well. Thanks a lot.

Now, we require the dma to pause when prompted(regardless of whether or not the dma is in start mode and buffer is not completely filled) and resume after sometime. We were unable to do this with the above code.

Could you please help us with this.

Regards Shubham Chavan

posted by shubham c 17 Jun 2016