<?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>Same spi code runs on nrf52840 but does not run on nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110509/same-spi-code-runs-on-nrf52840-but-does-not-run-on-nrf52832</link><description>Hello. 
 I am developing an SPI FIFO reading program with a accelerometer. with sdk17.1.0 
 It runs well on nrf52840 devkit but it stuck at nrf52832 devkit. 
 And I found this thread and disabled SPI0_USE_EASY_DMA, then it runs on nrf52832, 
 but the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Apr 2024 13:25:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110509/same-spi-code-runs-on-nrf52840-but-does-not-run-on-nrf52832" /><item><title>RE: Same spi code runs on nrf52840 but does not run on nrf52832</title><link>https://devzone.nordicsemi.com/thread/480474?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 13:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99891b63-1d59-4103-bcb5-4c62a91060f1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, the workaround is effective, so with it you can do 1 byte transfers while DMA is enabled. The main thing when using it is tha tyou need to check for every transaction how large it is, and endable ble workaround before a 1 bye transaction, and disable it after (it will cause problems for multi byte transactions).&lt;/p&gt;
&lt;p&gt;There are other good reasons for choosing the nRF52840, but this particular issue whould be managable on the nRF52832 as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Same spi code runs on nrf52840 but does not run on nrf52832</title><link>https://devzone.nordicsemi.com/thread/480307?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 00:04:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa8f321-f8c6-40e3-b42f-dbae84e30abe</guid><dc:creator>JasonChen96</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;So while using nRF52832, adopting the&amp;nbsp;SPIM&amp;nbsp;peripheral (with SPI0_USE_EASY_DMA enabled) and applying Errata 58&amp;#39;s work around, I can theoretically achieve the same transfer speeds as on the nRF52840?&lt;/p&gt;
&lt;p&gt;If so, is&amp;nbsp;this way above a robust way to solve this problem, or I should just&amp;nbsp;choose nRF52840 for relatively high-speed SPI &lt;span&gt;transaction&lt;/span&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Same spi code runs on nrf52840 but does not run on nrf52832</title><link>https://devzone.nordicsemi.com/thread/480184?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 11:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e88f17-53af-4f80-a60e-6a0524965b6c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_58.html"&gt;Erratum 58&lt;/a&gt; on the nRF52832 causes problems with 1 byte SPI transactions. The most robust workaround is to disable DMA as you did, as then you are usign the legacy SPI peripheral instead of the SPIM peripheral. As this does not use DMA, the CPU is used for every transfered byte, and the transfer speed is lower. This&amp;nbsp;erratum does not exist on any of the other nRF52 series devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>