<?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>nRF52840 SPIM Easy DMA buffer &amp;gt;255bytes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52045/nrf52840-spim-easy-dma-buffer-255bytes</link><description>We are using the nRF52840 SPIM0 to read 2048 bytes from an SPI slave. ( SES / SDK15.3 ) 
 The nrf libraries only seem to support a maximum of 255 bytes, so we have compiler warnings when trying to us a uint16_t value as the buffer size. 
 Reading through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Sep 2019 19:22:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52045/nrf52840-spim-easy-dma-buffer-255bytes" /><item><title>RE: nRF52840 SPIM Easy DMA buffer &gt;255bytes</title><link>https://devzone.nordicsemi.com/thread/209494?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 19:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6649563a-1b48-424f-9789-4de06fdca23b</guid><dc:creator>tealtech</dc:creator><description>&lt;p&gt;Thanks Einar.&amp;nbsp; I removed the legacy drivers and libraries and updated the calls and it all works perfectly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPIM Easy DMA buffer &gt;255bytes</title><link>https://devzone.nordicsemi.com/thread/209447?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 13:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b7d516-d092-49e2-bb11-75bb91fb7b6b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;There are no examples that use nrfx directly. You can do it, but then you should remember to remove all configurations for the legacy driver in your projects sdk_config.h. Another alternative, which may be easier, is to just modify the nrf_drv_spi.c/.h files to use size_t. As you can see from the nrf_drv_spi implementation it essentially just calls the nrfx drivers, so&amp;nbsp;changing&amp;nbsp;all the length parameters from uint8_t to size_t should be enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPIM Easy DMA buffer &gt;255bytes</title><link>https://devzone.nordicsemi.com/thread/209415?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 12:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe9134d4-9978-4dd0-bc67-32d73c24384a</guid><dc:creator>tealtech</dc:creator><description>&lt;p&gt;I&amp;#39;ve started out with the SPI library example, which still&amp;nbsp;utilizes the old nrf libraries.&amp;nbsp; Are there any newer examples which use only the nrfx spim drivers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPIM Easy DMA buffer &gt;255bytes</title><link>https://devzone.nordicsemi.com/thread/209384?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 10:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63c4665c-512e-44e1-8e84-5dd66112b7ab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The driver&amp;nbsp;nrf_drv* use uint8_t for the length field for historic reasons (nRF52832). As @turboj&amp;nbsp;wrote, this limitation is not present in nrfx, so you can work around this by using the nrfx_spim driver directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPIM Easy DMA buffer &gt;255bytes</title><link>https://devzone.nordicsemi.com/thread/209264?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 18:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a241ee65-5ac0-40e6-bd28-70302f10bdb8</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Which one of the various functions in the SDK do you use?&lt;/p&gt;
&lt;p&gt;The structure from nrfx_spim.h uses size_t for transfer sizes and should not trigger compiler warnings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>