<?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>nrf52 ADC code based on nrfx 1.7.0 won&amp;#39;t work on nrfx 2.1.0.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62071/nrf52-adc-code-based-on-nrfx-1-7-0-won-t-work-on-nrfx-2-1-0</link><description>Hi all, 
 I am developing ADC functions with Mynewt on nrf52 DK PCA10040 board. 
 The working example code based on SAADC driver nrfx 1.7.0 won&amp;#39;t work on nrfx 2.1.0. 
 Example in the Mynewt official website ( https://mynewt.apache.org/latest/tutorials</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jun 2020 16:19:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62071/nrf52-adc-code-based-on-nrfx-1-7-0-won-t-work-on-nrfx-2-1-0" /><item><title>RE: nrf52 ADC code based on nrfx 1.7.0 won't work on nrfx 2.1.0.</title><link>https://devzone.nordicsemi.com/thread/253101?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 16:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77498459-c364-448f-ba57-30539a7446bf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hopefully, there will be some documentation/examples with the new driver in the next SDK release. For details on when that will be available, you need to contact your regional sales manager.&lt;/p&gt;
[quote user="shanyechungu"]Also, regarding Mynewt, do you suggest them to backport to 1.8.x as well?[/quote]
&lt;p&gt;Not necessarily, but I would recommend updating the sample/documentation to work with the new API. We are using &lt;a href="https://github.com/nrfconnect/sdk-hal_nordic/tree/master/nrfx"&gt;nrfx 2.x.x in nRF Connect SDK&lt;/a&gt;, but it looks like the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/drivers/adc/adc_nrfx_saadc.c"&gt;SAADC implementation in Zephyr&lt;/a&gt; is using HAL functions and not the new nrfx_saadc driver, so this does not provide any useful information about how to use the new API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 ADC code based on nrfx 1.7.0 won't work on nrfx 2.1.0.</title><link>https://devzone.nordicsemi.com/thread/253090?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 15:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a97cab-1b84-402a-a305-2a4beb387ee0</guid><dc:creator>shanyechungu</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response, although, this is a sort of disappointing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;May I know if there is a timeline Re: when the support document will be available?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, regarding Mynewt, do you suggest them to backport to 1.8.x as well?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 ADC code based on nrfx 1.7.0 won't work on nrfx 2.1.0.</title><link>https://devzone.nordicsemi.com/thread/252938?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 09:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beea585a-f2bb-4cf1-a598-d4907904c916</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you figured, the nrfx 2.x API is not supported in the nRF5 SDK exactly because of the large changes in the SPI of the new nrfx_saadc driver. The driver have been completely rewritten to fix some issues seen with the old driver. The new driver will be backported to nrfx v1.8.x in the next release of nRF5 SDK, but the legacy driver will still be available. The example code needs to be completely rewritten to support the new driver. Unfortunately, for now, we do not have any examples available for the new driver. I would recommend you to stick with the driver from nrfx v1.8.x for now.&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>