<?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 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98800/nrf52840-spim3-output-wrong-data</link><description>HI DEVZONE 
 In this project, RTC1 triggers every 500us, while SPIM3 continuously sends the following data set: command 0x2b, data 0xfA, 0xfC, 0xfD, 0xfE, 0xf8. 
 During testing, we observed that when the data ends with 0xf8 or 0xf9 (although it is uncertain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2023 11:55:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98800/nrf52840-spim3-output-wrong-data" /><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/421473?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 11:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38c25be8-3383-4027-8983-0345df8bea23</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, the workaround would still be needed with latest SDK releases if using Softdevice. The system register that is accessed by the errata workaround is protected by the Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/421351?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 01:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87aa9df2-714b-41bb-8ba9-faa7c7f89bf1</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;HI&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks for help, this issue is&amp;nbsp;Errata 198. after i add &amp;quot;NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED&amp;quot; in predefine. looks like the issue has been fixup&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1681955192055v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BTW i do some investigation for this workaround , i found another ticket said this workaround will lead the something worng with softdevice&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;link:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53583/document-in-nrfx-itself-that-nrfx_spim3_nrf52840_anomaly_198_workaround_enabled-does-not-work-with-sd-and-probably-in-other-cases"&gt;document in nrfx itself that NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED does not work with SD (and probably in other cases)&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my question is :if i use with nrf5 sdk 17.10 or NCS, does above ticket still a issue ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/421350?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 01:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9750b5fb-8f37-4c2c-b9f0-3471b258198e</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;Thanks !!&amp;nbsp;your right ,after i add&amp;nbsp;NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED， this is issue has been fixup&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/421277?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 13:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089ed27c-09ba-41cc-9276-564caa0f58c4</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;That is most likely Errata 198 from the errata sheet. SPIM3 TX can be easily corrupted unless you explicitly use a reseved RAM block.&lt;/p&gt;
&lt;p&gt;Kind of a nightmare setting up the the ld script.&lt;/p&gt;
&lt;p&gt;Try using any other SPI peripherial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/421270?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 13:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed5b9f5-7c05-4f82-b0c0-7bd373045025</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried running the unmodified application from your upload, only with prescaler set to 0, on a nRF52840 DK. It ran for several minutes without hitting the filter in Saleae Logic.&lt;/p&gt;
&lt;p&gt;Can you upload the hex-file you built, for me to check if it will reproduce the behavior on my board?&lt;/p&gt;
&lt;p&gt;Which nRF52840 DK version are you testing this on, and which version of Keil are you using for building the application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/420876?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 01:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1c99d7-fb8d-439a-88c6-c0258ce21f1b</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;Yes this issue could be reproduce on 52840 DK. if you change the&amp;nbsp;&amp;nbsp;config.prescaler = 0, this issue could be easy to reproduce,since the RTC interrupt became to 30.5us.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1681781287823v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It should be noted that due to the large amount of data captured by the logic analyzer, it is necessary to set the trigger mode for the logic analyzer, otherwise it may be difficult to see erroneous data. The trigger mode is set as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1681781802871v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The SDK version： NRF5SDK 17.1.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;below they are my screen recording&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/program.mp4"&gt;devzone.nordicsemi.com/.../program.mp4&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Logic-2-_5B00_Logic-Pro-8-_2D00_-Connected_5D00_-_5B00_Session-0_5D00_-2023_2D00_04_2D00_18-11_2D00_23_2D00_02.mp4"&gt;devzone.nordicsemi.com/.../Logic-2-_5B00_Logic-Pro-8-_2D00_-Connected_5D00_-_5B00_Session-0_5D00_-2023_2D00_04_2D00_18-11_2D00_23_2D00_02.mp4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 output wrong data</title><link>https://devzone.nordicsemi.com/thread/420843?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 16:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bca904bb-b48a-4bba-a78c-e697a1a92de6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you test this on a nRF52840 DK or on a custom board?&lt;/p&gt;
&lt;p&gt;I tried to reproduce the behavior you are seeing using the provided firmware, but I was not able to reproduce it. How often does the issue occur on your end?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>