<?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>why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19691/why-spi-easydma-maxcount-is-limited-to-256byte</link><description>Hi, 
 In the nrf52.h, SPIM_RXD_Type is defined as below. 
 typedef struct {
 __IO uint32_t PTR;/*!&amp;lt; Data pointer */
 __IO uint32_t MAXCNT;/*!&amp;lt; Maximum number of bytes in receive buffer*/
 __I uint32_t AMOUNT;/*!&amp;lt; Number of bytes transferred in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Feb 2017 14:55:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19691/why-spi-easydma-maxcount-is-limited-to-256byte" /><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76606?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 14:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36701e37-1ef0-4f22-bc6f-2c88d16c4f4e</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Of course it is. You can just manually start each transfer. But I really see no reason why would You want to do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76605?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 14:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85258611-4a2c-4ec3-95ea-0a70f2ade6d2</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;I want to use spi list feature without ppi. Is that possible?&lt;/p&gt;
&lt;p&gt;Because I have to use the same spi module for OLED, SPI flash and accelerometer with FIFO, spi ppi that I have to set spi tx and rx buffer in advance can&amp;#39;t be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76604?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 12:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52960d4-8e75-46b9-a059-5c3d9875cc93</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what exactly you want achieve, but I would do something like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SPI END event triggering TIMER COUNT task&lt;/li&gt;
&lt;li&gt;timer CC event IRQ moving the SPI data pointer&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am not using spi drv in my apps - direct manipulation in registers is more clear for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76603?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 11:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2977e91-9bca-46c5-b435-ab10aa1ec39f</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;you mean,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;connect spi transfer ENDRX event and timer count task using ppi.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;connect timer compare event(triggered when counter reaches array list size)and spi stop task using ppi.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;enable timer compare event IRQ and in the IRQ set spi_xfer_done true.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;use nrf_drv_spi_transfer() with NRF_DRV_SPI_FLAG_TX_POSTINC, NRF_DRV_SPI_FLAG_RX_POSTINC, NRF_DRV_SPI_FLAG_NO_XFER_EVT_HANDLER, and NRF_DRV_SPI_FLAG_REPEATED_XFER flag (= without NRF_DRV_SPI_FLAG_HOLD_XFER flag).&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;is this true?&lt;/p&gt;
&lt;p&gt;If not, because I couldn&amp;#39;t have found any sample code using spi list mode, can you show me the sample code or procedure?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76608?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 11:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26087217-46d4-4c4d-ae81-8c01799adb84</guid><dc:creator>Haruki Kawakami</dc:creator><description>&lt;p&gt;Thank you!
However, why don&amp;#39;t you utilize full 32 bit? You reserve 32 bit for NRF_SPIM0-&amp;gt;RXD.MAXCNT by the document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76602?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 15:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6299a362-d591-41db-9fc6-6cca445f18d7</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;If there is a problem with using CS between array lists, you always can use gpiote toggling triggered by timers/counters/finished transfers etc, so you can achieve long transmissions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why SPI easyDMA maxcount is limited to 256byte?</title><link>https://devzone.nordicsemi.com/thread/76607?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 14:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63071f0-1820-4f6e-bc0d-56a56c493420</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;NRF_SPIM0-&amp;gt;RXD.MAXCNT is 8 bit, and not 32 bit. See the register &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=2_2_0_30_5_9#register.RXD.MAXCNT"&gt;here&lt;/a&gt;, and &lt;a href="https://devzone.nordicsemi.com/question/66434/nrf_drv_spi_transfer-larger-transfer-size/"&gt;this&lt;/a&gt; thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>