<?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>SAADC EasyDMA gets out of sync</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86496/saadc-easydma-gets-out-of-sync</link><description>I am using a timer to trigger the SAADC via PPI, and scan 4 channels to EasyDMA, which alternates between two buffers. This all works great most of the time, but if I halt with the debugger or if other areas of my code prevent the interrupt from being</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 02 Apr 2022 17:12:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86496/saadc-easydma-gets-out-of-sync" /><item><title>RE: SAADC EasyDMA gets out of sync</title><link>https://devzone.nordicsemi.com/thread/361357?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2022 17:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a84ba57-721b-4a58-84f0-3b3ece7acefa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Chris&lt;br /&gt;&lt;br /&gt;I am glad to hear that this fixed the buffer shift issues!&lt;br /&gt;I would not recommend that you make changes directly into the nrfx_saadc driver, since this may break the driver or force it into an invalid state that it can not recover from.&lt;br /&gt;&lt;br /&gt;I would recommend that you make use of the improved NRFX_SAADC_API_V2, yes. The V2 is fully supported - the example has just not been updated to use it. &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples"&gt;You can find some examples using the V2 in the NordicPlayground github repository&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;You could make use of the v2 by adding&amp;nbsp;NRFX_SAADC_API_V2 into your project option&amp;#39;s preprocessor defines for the common configuration. The nrfx_saadc v2 api has unfortunately not had its documentation updated in Infocenter yet, but the information is available in the header file.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC EasyDMA gets out of sync</title><link>https://devzone.nordicsemi.com/thread/361288?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 18:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92cd071-0d4f-4b5a-8eec-0625a0dfdf1c</guid><dc:creator>Chris Ergo</dc:creator><description>&lt;p&gt;This seems to have eliminated the DMA getting out of sync. I unfortunately had to edit nrfx_saadc.c to remove the START task triggers in&amp;nbsp;nrfx_saadc_buffer_convert() and&amp;nbsp;nrfx_saadc_irq_handler(). While I was in there, I noticed that the way double buffering is handled doesn&amp;#39;t actually gain me any extra time for interrupt latency since it does the buffer swap after an END event instead of a STARTED event.&lt;/p&gt;
&lt;p&gt;I noticed that the&amp;nbsp;NRFX_SAADC_API_V2 seems to fix both of these problems. Should I consider changing to this? The saadc example in the SDK still uses the old API; does that mean the V2 isn&amp;#39;t really supported?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC EasyDMA gets out of sync</title><link>https://devzone.nordicsemi.com/thread/361139?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:863d2aa5-61fd-49c8-86db-13670b7fce7c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello chris-ergo,&lt;br /&gt;&lt;br /&gt;Please have a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20291/offset-in-saadc-samples-with-easy-dma-and-ble/79053#79053"&gt;look at the answer by my colleague Jørgen in this ticket&lt;/a&gt;. It sounds to me like the issue you describe matches well with the criterias that Jørgen detail, and so the workaround he details should resolve your issue.&lt;br /&gt;Please do not hesitate to let me know if this should not be the case.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>