<?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>ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58807/ble_uart-and-saadc-merge-config-file-messed-up-device-not-advertising</link><description>Hello. 
 Currently I am trying to merge the peripheral example ble_uart and saadc examle. My little project is to send potentiometer values over ble. 
 As of now I have copied over the code and includes and merged the config file. The project does compile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2020 16:59:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58807/ble_uart-and-saadc-merge-config-file-messed-up-device-not-advertising" /><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238598?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a5a400-fbf9-4b3c-a10a-cad9f10441be</guid><dc:creator>Tormod123</dc:creator><description>&lt;p&gt;Thank you for the help J&amp;oslash;rgen.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try this later. For now have a great weekend!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238594?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9427bb4-13a7-4215-983f-e933605773a5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried to set a breakpoint in the saadc_callback function, to see if this gets called? I ran your code, and it seems like this is called, but the RTT Viewer if filled with the same log-message over and over again. You can also try to replace the calls to NRF_LOG_INFO in saadc_callback with printf, to see if you get the SAADC samples output on the UART terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238592?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb325f28-277c-4c2f-bdc2-a1f56838832e</guid><dc:creator>Tormod123</dc:creator><description>&lt;p&gt;Ok, thank you.&lt;/p&gt;
&lt;p&gt;Do you have any tips where I should now continue to fix my code to read from the potentiometer? Bare in mind that the code from the SAADC have just been copied over into the ble_uart example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238588?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:194aceab-dffb-4c7e-bafd-b0dd9c019ead</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There is a branch for SDK 15.2.0 migration. I intended to link directly to that, but I forgot. I have now updated the link. There should not be much changes from SDK 15.2.0 to SDK 15.3.0, but there may be some changes up to SDK 16.0.0. Most likely you can proceed with the project you have created yourself now, since you most likely may face similar issues if you try to port the GitHub example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238587?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 16:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df5bafce-9636-4c3b-8942-96e85e4a6858</guid><dc:creator>Tormod123</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Disabling the nrf_log_backend_uart seemed to work. The device now actually advertises, however the device does not read and print out values from the potentiometer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have seen that example you linked before but have steered away from using it exactly because it was not updated to the latest SDK version. How would I go about using the combined example considering its not updated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238583?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 15:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf914a5-f113-48ec-bb26-a12f1ea26b5d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all, you should not call printf() before you initialize UART. The printf-function is redirected to app_uart module to transfer strings over UART. If you call printf before app_uart is initialized, you may experience errors.&lt;/p&gt;
&lt;p&gt;Secondly, you cannot initialize the UART backend for the logger module, after you have initialized app_uart. These will by default use the same UART instance, causing an error to be returned. You disable this in your sdk_config.h file like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
//==========================================================
#ifndef NRF_LOG_BACKEND_UART_ENABLED
#define NRF_LOG_BACKEND_UART_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you are interested, there is already an &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/sdk_15.2.0_migration/ble_app_uart__saadc_timer_driven__scan_mode"&gt;example that combines ble_app_uart with SAADC&lt;/a&gt; on our GitHub, but this has not yet been updated to the latest SDK versions.&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><item><title>RE: ble_uart and saadc merge config file messed up. Device not advertising</title><link>https://devzone.nordicsemi.com/thread/238520?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 12:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41676a79-5a13-43eb-b8af-bafdfdf67bfd</guid><dc:creator>Tormod123</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8446.ble_5F00_app_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../8446.ble_5F00_app_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>