<?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>Possible SPI master bug when using DMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19796/possible-spi-master-bug-when-using-dma</link><description>Hello, 
 I&amp;#39;ve been implementing DAC control trough SPI and DMA using the NRF52 and it is working nicely. During development however I encountered what i think is a bug in the SPI master driver. It occurs when calling the nrf_drv_spi_xfer function in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 May 2017 19:27:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19796/possible-spi-master-bug-when-using-dma" /><item><title>RE: Possible SPI master bug when using DMA</title><link>https://devzone.nordicsemi.com/thread/76994?ContentTypeID=1</link><pubDate>Mon, 15 May 2017 19:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fde382-0598-43b3-b623-f2da16e9ea3d</guid><dc:creator>codezork</dc:creator><description>&lt;p&gt;Thank you. I had the same problem with the endless loop.  Sad that there are no examples for the advanced use cases in the SDK so somebody could discover issues with that. It is still present in the version 13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SPI master bug when using DMA</title><link>https://devzone.nordicsemi.com/thread/76992?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4cfa2bd-0cf2-49f0-b08b-b2932504edbb</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Ok, I did not realize that you where using the list feature (the NRF_DRV_SPI_FLAG_TX_POSTINC flag will enable this). Then I understand your problem.&lt;/p&gt;
&lt;p&gt;I will report this internally&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SPI master bug when using DMA</title><link>https://devzone.nordicsemi.com/thread/76991?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 14:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b166438b-553f-44da-aebc-aa80e45221bc</guid><dc:creator>Braver</dc:creator><description>&lt;p&gt;It was my understanding that the NRF_DRV_SPI_FLAG_HOLD_XFER flag can be used in combination with PPI. We would program the spi peripheral with the right parameters and then generate repeated start events using a timer. A counter would then count the spi start events and notify the CPU when the data has run out and needs to be refreshed, again calling the spi_xfer function. A spi event handler in this situation would just invoke unnecessary interrupts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SPI master bug when using DMA</title><link>https://devzone.nordicsemi.com/thread/76993?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 12:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22515f59-f603-4bde-b5b3-f2a1a135f3a8</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I agree that this can happen, but I don&amp;#39;t see when you need to use the NRF_DRV_SPI_FLAG_HOLD_XFER flag if you don&amp;#39;t have an event handler. You will need to know in the application when the transfer is finished, so if you don&amp;#39;t have an event handler you will have to add the while loop in main after you trigger the start task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>