<?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 errata [198] - data corruption on SPIM3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84145/nrf52840-errata-198---data-corruption-on-spim3</link><description>Hi, I&amp;#39;m using the nrf52840 with Zephyr and I indeed encountered data corruption on SPIM3 transmitted data. 
 How do I implement the proposed workaround? 
 &amp;quot;Reserve dedicated RAM AHB slave for the SPIM3 transmit buffer, not overlapping with application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Feb 2022 10:39:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84145/nrf52840-errata-198---data-corruption-on-spim3" /><item><title>RE: nrf52840 errata [198] - data corruption on SPIM3</title><link>https://devzone.nordicsemi.com/thread/352286?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 10:39:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026d9955-c352-4e8d-b40b-f00d3f5697cb</guid><dc:creator>Dor Sadeh</dc:creator><description>&lt;p&gt;I put a breakpoint&amp;nbsp;to verify that the errata code is executed, and it is.&lt;/p&gt;
&lt;p&gt;My app samples sensors and streams the data to flash. The flash used the spim3.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;problem&amp;nbsp;did not occur when I moved one of the sensors to work with spim3, and the flash uses spim2.&lt;/p&gt;
&lt;p&gt;Maybe since the sensors sampling uses ppi with short transactions (&amp;lt;10 bytes), and the flash uses long 2KB spi transactions without ppi, the problem does not occur now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 errata [198] - data corruption on SPIM3</title><link>https://devzone.nordicsemi.com/thread/350556?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 07:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e172b4-dbf8-4327-87d6-682c2594f786</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Can you try debugging by setting a breakpoint at where the workaround is called and implemented (nrfx_spim.c, lines 204 and onwards).&lt;/p&gt;
&lt;p&gt;I guess it might also not be related to this erratum. If so I guess we need some more info on what you&amp;#39;re doing. Is your project based on any of the sample projects in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/index.html"&gt;Zephyr&lt;/a&gt;/&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples.html"&gt;nRFConnect SDK&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 errata [198] - data corruption on SPIM3</title><link>https://devzone.nordicsemi.com/thread/350357?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 08:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34e00ed7-662c-4704-b03b-4a80048e5277</guid><dc:creator>Dor Sadeh</dc:creator><description>&lt;p&gt;I&amp;#39;ve&amp;nbsp;set in nrfx_config_nrf52840.h:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And I still get data corruption.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m not writing anything to the transmit buffer used by spim3 while transmitting data as suggested in the workaround.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 errata [198] - data corruption on SPIM3</title><link>https://devzone.nordicsemi.com/thread/350210?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 13:26:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:109a30fa-a223-4fc8-9f9c-9ede138a7612</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most workarounds for anomalies like this in Zephyr/the nRFConnect SDK are set by enabling a config, and the same goes for the erratum 198. In your project&amp;#39;s nrfx_config_nrf52840.h file the following define is by default set to 0:&amp;nbsp;&lt;strong&gt;NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED.&amp;nbsp;&lt;/strong&gt;If you set it to 1, this workaround will be implemented from nrfx_spim.c I believe.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>