<?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>Mismatch between nrfx 2.4.0 and SDK 17.0.2???</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70267/mismatch-between-nrfx-2-4-0-and-sdk-17-0-2</link><description>I am now pulling my hair out with these drivers ... I&amp;#39;m trying to do what I think is the right thing and use the new nrfx drivers, but it&amp;#39;s really not easy. 
 So this started by me trying to use the SAADC nrfx driver ... I&amp;#39;ve added the .c file from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jan 2021 10:30:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70267/mismatch-between-nrfx-2-4-0-and-sdk-17-0-2" /><item><title>RE: Mismatch between nrfx 2.4.0 and SDK 17.0.2???</title><link>https://devzone.nordicsemi.com/thread/289132?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 10:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec5949e4-835e-4330-b140-1a08fe287414</guid><dc:creator>essele</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the comprehensive answer ... it&amp;#39;s a little&amp;nbsp;disappointing and feels like it will create more work in the future, but&amp;nbsp;understood.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I got the ADC working pretty quickly actually ... it just feels wrong&amp;nbsp;that it&amp;#39;s not using the newest API&amp;#39;s.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lee.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mismatch between nrfx 2.4.0 and SDK 17.0.2???</title><link>https://devzone.nordicsemi.com/thread/288933?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 13:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b6b482-e0f1-40ea-b9f9-4c5e7b4d4a7d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfx v2.x.x is not supported by nRF5 SDK, and will most likely not be supported in the future either. nRF5 SDK supports the nrfx 1.8.x branch, and this is the recommended use for nRF5 SDK. For other SDKs and RTOSes, like nRF Connect SDK, nrfx v2.x.x is supported.&lt;/p&gt;
&lt;p&gt;Regarding the nrfx_saadc driver, there is two APIs available (&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.6/drivers/include/nrfx_saadc.h"&gt;#1&lt;/a&gt; - &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.6/drivers/include/nrfx_saadc_v2.h"&gt;#2&lt;/a&gt;). The driver was totally rewritten to resolve a few issues. Initially, the new API was only supported in nRFx v2.x.x, but this API was &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/migration.html#migr_lib_nrfx"&gt;backported to nrfx v1.8.4&lt;/a&gt; in used in SDK 17.0.0. Both API versions are available in nrfx v1.8.4 and later, you can switch between the APIs in compile-time with the preprocessor symbol&amp;nbsp;&lt;code&gt;NRFX_SAADC_API_V2&lt;/code&gt;. Some examples of the new API can be found in the &lt;a href="https://github.com/NordicSemiconductor/nrfx/wiki/nrfx-1.8.1-to-2.0.0#saadc-1"&gt;nrfx GitHub wiki&lt;/a&gt;, but I also provided some examples for use with nRF5 SDK v 17.x.0 in &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples"&gt;this repository&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]So am I right in thinking that in order to use the drivers that are not legacy I need to go and fix a load of library files that are part of the most recently provided SDK? Surely not -- that means that I&amp;#39;ll have to do it for each future SDK version??[/quote]
&lt;p&gt;I agree that legacy is not the best name for the &amp;quot;legacy driver APIs&amp;quot;, integration may have been better. There is no real advantage in switching to the nrfx APIs when using nRF5 SDK, as the legacy layer will use nrfx driver in the bottom layer anyway. Most of the libraries in the SDK is also not migrated to use the nrfx APIs directly.&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>