<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SPI Flash write using DMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22705/spi-flash-write-using-dma</link><description>Hi, 
 I have camera interfaced on GPIOs of nRF52832.. I am reading image data at the rate 80KHz.
Is it possible to write the data to SPI Flash (Slave) by DMA or by any other way such that I won&amp;#39;t need to buffer much image data before write it to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2017 09:22:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22705/spi-flash-write-using-dma" /><item><title>RE: SPI Flash write using DMA</title><link>https://devzone.nordicsemi.com/thread/89273?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 09:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e01eeb-f6ff-4017-b0fc-3c67e8b7fae7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In that case all you have to do is to point to the right spot in the ring buffer when calling nrf_drv_spi_transfer(..)&lt;br /&gt;
You don&amp;#39;t have to copy to a second buffer first.&lt;/p&gt;
&lt;p&gt;Once you get the event from the SPI driver saying that the transaction was completed you can free up that part of the ringbuffer, so that it is available for more data.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Flash write using DMA</title><link>https://devzone.nordicsemi.com/thread/89272?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 08:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb03f3a-0f4b-4505-8488-da1ee01e0641</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi,
Thanks.
I read the Data lines of the Camera with sync of its clocks, HREF and VSYNC, and what Data I get, I store that in the internal RAM.. At present due to the limited memory, my image resolution is also limited.. so what I want to do is -
Read Image Data --&amp;gt; Store in internal Ring Buffer --&amp;gt; Read from Ring Buffer --&amp;gt; Write to SPI Flash..&lt;/p&gt;
&lt;p&gt;So far I could not find the appropriate example how I can do that.. All I found is this macro&lt;br /&gt;
&amp;quot;define SPI0_USE_EASY_DMA 1&amp;quot;&lt;/p&gt;
&lt;p&gt;Can you give me any reference from where I can understand how I can configure EasyDMA to Read from buffer and Write data to Flash ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Flash write using DMA</title><link>https://devzone.nordicsemi.com/thread/89271?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 06:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c856f82-c5dd-48a9-a906-87de014f1be3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vishal&lt;/p&gt;
&lt;p&gt;The DMA of the SPI master can only read from the RAM, so at some point the data will have to be stored in a RAM buffer for you to write it over the SPI. I don&amp;#39;t understand exactly how your camera interface works, but I would assume that you can prepare the next SPI transfer in one buffer while the previous transaction is being written from a different buffer?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>