<?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>Add SAADC peripheral (and others) to example project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70810/add-saadc-peripheral-and-others-to-example-project</link><description>I am using SES and nRF5 SDK v17.0.2. 
 
 I am tying to add a few peripherals (SAADC, I2C, SPI, etc.) to the peripheral UART example with EVK (ble_app_uart_pca10040_s112). 
 
 To add SAADC, I modified the SDK_config.h file line 3298 to &amp;quot;#define NRFX_SAADC_ENABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Jan 2021 20:05:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70810/add-saadc-peripheral-and-others-to-example-project" /><item><title>RE: Add SAADC peripheral (and others) to example project</title><link>https://devzone.nordicsemi.com/thread/291610?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 20:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f562622e-2487-41de-85a0-ab318591fb6f</guid><dc:creator>Jackson Wilson</dc:creator><description>&lt;p&gt;I have not heard any response to my follow-up.&amp;nbsp; Is there a Nordic engineer assigned to look at this issue?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jackson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add SAADC peripheral (and others) to example project</title><link>https://devzone.nordicsemi.com/thread/290833?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 20:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22a3f627-862c-48a7-a075-972c8aeaa8c7</guid><dc:creator>Jackson Wilson</dc:creator><description>&lt;p&gt;Thanks for the information about steps to include peripherals.&amp;nbsp; I have done this successfully with the SAADC.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, even following these steps, there were several points where&amp;nbsp;NRFX_CHECK() failed.&amp;nbsp; For example, the&amp;nbsp;saadc_sampling_event_init() routine calls&amp;nbsp;nrf_drv_timer_init(), which fails to build:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611346696086v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This occurs because the first #define in nrfx_timer.c calls NRFX_CHECK(), which fails:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611346770528v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This happens even though NRFX_TIMER_ENABLED has been set to &amp;quot;1&amp;quot; in sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611346905845v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I comment out this NRFX_CHECK() (and several others) build succeeds.&lt;/p&gt;
&lt;p&gt;This situation appears for other drivers (like nrfx_ppi) as well.&amp;nbsp; The #define in sdk_config.h does not seem to be affecting the driver file&amp;#39;s compilation.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add SAADC peripheral (and others) to example project</title><link>https://devzone.nordicsemi.com/thread/290832?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 19:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5decce8-7d8f-4a8e-87b6-dee6a0b51039</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=t-kh1EbesvI&amp;amp;ab_channel=NordicSemiconductor"&gt;This &lt;/a&gt;is also a nice tutorial for importing files and drivers in SES.&lt;/p&gt;
&lt;p&gt;It goes without saying that you need to include driver&amp;#39;s&amp;nbsp; .h file into your main file&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611345527086v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add SAADC peripheral (and others) to example project</title><link>https://devzone.nordicsemi.com/thread/290831?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 19:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959616db-1791-4046-8bb9-f2b0866f9040</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="79066" url="~/f/nordic-q-a/70810/add-saadc-peripheral-and-others-to-example-project"]How to properly add peripherals to a project -- the documentation and Devzone are very incomplete on this topic.[/quote]
&lt;p&gt;1. Include the driver/library to your project&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611342625402v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. Enable the driver from the sdk.config.h file&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611342687837v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. Ensure that driver&amp;#39;s/library path is included in preprocessor directory&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611342798702v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="79066" url="~/f/nordic-q-a/70810/add-saadc-peripheral-and-others-to-example-project"]Why does NRFX_CHECK() fail in the case I described above?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I do not know.. could you share the error?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="79066" url="~/f/nordic-q-a/70810/add-saadc-peripheral-and-others-to-example-project"]Why does build succeed even with SDK_config.h disabling SAADC?[/quote]
&lt;p&gt;It doesn&amp;#39;t affect the compilation if the driver is disabled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>