Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 11 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?
2 Answers
9 years, 11 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.
9 years, 4 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 11 Jul 2015Hello 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 17 Jun 2016
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