<?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>Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72102/troubles-in-saadc-module-pre-prepared-program-in-nrf52840</link><description>I am working on the nRF52840 DK board SAADC module with nRF5_SDK_17.0.0 SDK, and I am unable to get the output on RTT.\ 
 I am working on the pre-prepared program from the peripheral folder of SAADC from the SDK. 
 I am using the pre-prepared program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 09:17:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72102/troubles-in-saadc-module-pre-prepared-program-in-nrf52840" /><item><title>RE: Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/thread/297402?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 09:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff282a9f-a7e1-4871-8b9d-b7708cfd07a6</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user="Ashu@2000"]Thank you for your help, have extracted a new SDK and run the preprepared program of SAADC&amp;nbsp; of it and it runs perfectly.[/quote]
&lt;p&gt;I am happy to hear that you&amp;#39;ve now got it up an running as expected, great!&lt;/p&gt;
[quote user="Ashu@2000"]I would have made some wrong changes in the previous file, that&amp;#39;s why it wouldn&amp;#39;t be working.[/quote]
&lt;p&gt;I recommend creating a copy of each example you intend to modify, and keep your work in the copy - to ensure that you always have access to an unmodified version, in case something goes wrong with the modification.&lt;br /&gt;Furthermore, I also recommend that you never make changes to the drivers / components provided with the SDK for the same reason. If you should want to modify a driver for whatever reason, you should first copy it into your project folder, then make the modifications to it.&lt;/p&gt;
[quote user="Ashu@2000"]Thank you, for your help.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&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: Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/thread/297345?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 04:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e917cb83-7fd8-46c5-b4db-5ecebd2cd238</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;Hey Karl,&lt;/p&gt;
&lt;p&gt;Thank you for your help, have extracted a new SDK and run the preprepared program of SAADC&amp;nbsp; of it and it runs perfectly.&lt;/p&gt;
&lt;p&gt;I would have made some wrong changes in the previous file, that&amp;#39;s why it wouldn&amp;#39;t be working.&lt;/p&gt;
&lt;p&gt;Thank you, for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/thread/296751?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 07:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b29a55-dd9b-48bf-9128-561e5fdd15db</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Ashu@2000"]&lt;p&gt;Have done your suggested changes, unable to get any ADC value. The only thing I get is as follow:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SAADC HAL simple example started.&lt;/p&gt;[/quote]
&lt;p&gt;Could you confirm for me whether you are testing the unmodified SAADC peripheral example from the SDK, or if you have made any changes to it? In the case that you have made changes, could you share your main.c file here, so I may take a look?&lt;br /&gt;The unmodified example works just fine for me here on my end, running on the nRF52840 DK.&lt;/p&gt;
[quote user="Ashu@2000"]The program is not entering the saadc_callback function.[/quote]
&lt;p&gt;It sounds very strange that it never enters the saadc callback. This should happen periodically, as the timer CC event triggers the sampling through PPI, and the buffer fills up.&lt;br /&gt;How are you checking whether it enters the callback or not? Could it be that you never start its timer?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&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: Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/thread/296672?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2021 04:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27b9ade-781c-4459-a0b9-102dc4d32fde</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;Have done your suggested changes, unable to get any ADC value. The only thing I get is as follow:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SAADC HAL simple example started.&lt;/p&gt;
&lt;p&gt;The program is not entering the saadc_callback function.&lt;/p&gt;
&lt;p&gt;Because when I tried running a simple program where I was making SAADC work in Blocking mode I am getting ADC output on the RTT terminal.&lt;/p&gt;
&lt;p&gt;I have attached a 5K pot on the input terminal P0.04(AIN2), for variable analog signal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubles in SAADC Module pre-prepared program in nRF52840</title><link>https://devzone.nordicsemi.com/thread/296638?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 18:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62294a04-5666-455f-949c-a04007ccb0d3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;I am working on the nRF52840 DK board SAADC module with nRF5_SDK_17.0.0 SDK, and I am unable to get the output on RTT.\&lt;/p&gt;
&lt;p&gt;I am working on the pre-prepared program from the peripheral folder of SAADC from the SDK.&lt;/p&gt;[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_dev_saadc_example.html"&gt;The SAADC example provided in the SDK&lt;/a&gt;&amp;nbsp;uses the UART logging backend by default.&lt;br /&gt;If you would like to switch from the loggers UART backend to the RTT backend, you will have to change the following definitions in the sdk_config.h file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_LOG_BACKEND_UART_ENABLED 0

#define NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Making these changes should make the logger output through RTT.&lt;br /&gt;If you do not make these changes, you would need to have open &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_dev_saadc_example.html"&gt;a serial monitor with the configuration specified in the SAADC Example documentation&lt;/a&gt;&amp;nbsp;to see the output.&lt;br /&gt;&lt;br /&gt;Try this, and let me know if it resolves your issue.&lt;/p&gt;
[quote user=""]I am using the pre-prepared program for now and as far as I have observed program doesn&amp;#39;t enter the saadc_callback function. Have checked that using NRF_LOG_INFO.[/quote]
&lt;p&gt;The example writes a statement to the logger upon startup, so if you have not seen anything written to your RTT viewer or debug terminal, chances are that you are using the wrong backend, or have configured the serial monitor incorrectly.&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>