<?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>SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21789/spis-dma-setup-slow</link><description>Upon testing I am seeing some slowness in setting up the SPIS DMA buffers for the next transaction. I perform a SPIS transaction, and then call nrf_drv_spis_buffers_set(). Setting the SPIS buffers takes somewhere around 20 us to complete. This seems long</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jun 2017 10:59:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21789/spis-dma-setup-slow" /><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85602?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 10:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a82eb05-fc9d-42e1-9f8a-384a7f89872b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you have logging enabled? This could slow down the function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85600?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 17:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d00927df-e86a-45ee-b62e-7e25d5b6219d</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;I updated my post with the last findings. I ran the provided SDK 13 SPIS example, and checked the output on the scope.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85605?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 09:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2150898f-68be-4582-8739-fdf6a3b68075</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How do you measure this? This is my results from toggling a pin and checking with a logic analyzer: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spis_5F00_buffers.png"&gt;spis_buffers.png&lt;/a&gt;. I tested with different buffer sizes, but no change. Could you try the SPIS example directly, to see if there is any change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85604?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 16:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a743f7d2-1b95-4e03-9725-979f6aa9e30b</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;I am still seeing 19.96us. I am checking this right after the nrf_drv_spis_init() call. I initialize the SPIS, and then call nrf_drv_spis_buffers_set(). I do not see 7us. I even tried using 32 Bytes instead of using the MAX 255 Bytes. No change. Are there any shortcuts? I am also running SDK 13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85603?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 14:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f973ba66-5ebc-41fe-b36e-7fc4e485fff4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I checked the runtime of this function in the SPIS example in SDK 13 and measured ~7us. If you follow all functions call from this function, it&amp;#39;s has a lot of context switching. What do you expect the runtime to be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85601?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 21:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13806cca-c69d-493d-8a2a-76d4e480ba9e</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;The SpiDma() call simple checks for the spi_state to equal SPI_IDLE, and then calls the nrf_drv_spis_buffers_set().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIS DMA Setup Slow</title><link>https://devzone.nordicsemi.com/thread/85599?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 21:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb59a762-c412-4476-9255-6dc132b28767</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Could you show some code snippets on how you use nrf_drv_spis_buffers_set? what sdk version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>