<?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>Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52752/implementing-saadc-example-to-send-data-over-bluetooth</link><description>Hi, 
 
 I&amp;#39;m trying to implement a testing firmware for my Nordic nRF52840 PDK where I can send the data generated on an analog input over Bluetooth. 
 Basically the idea is to send something like a potentiometer data over Bluetooth MIDI. 
 First I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2019 10:08:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52752/implementing-saadc-example-to-send-data-over-bluetooth" /><item><title>RE: Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/thread/212958?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 10:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe07a6d7-5796-4852-a4da-9059cc638eaa</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="joneves"]While running&amp;nbsp;&lt;span&gt;&amp;quot;saadc_sampling_event_init&amp;quot; the program gets into &amp;quot;app_error_fault_handler&amp;quot; inside &amp;quot;app_error_weak.c&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;This is something you can debug by yourself. Please look at this &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;blog&lt;/a&gt;&amp;nbsp;which will make you understand how to debug errors that lead to&amp;nbsp;&lt;span&gt;app_error_fault_handler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user="joneves"]Is this a memory issue? What I&amp;#39;m I doing wrong and how should I solve it? If it is possible.[/quote]
&lt;p&gt;&amp;nbsp;The error code will give us a proper direction to look into. Can you please tell me what error code you got with APP_ERROR_CHECK, that lead your code execution into&amp;nbsp;&lt;span&gt;app_error_fault_handler?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/thread/212859?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 15:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087f7e1d-da4f-4050-9d6a-ab026b6d4806</guid><dc:creator>joneves</dc:creator><description>&lt;p&gt;After the debug I discovered that apparently I get stuck in the function &amp;quot;nrf_log_panic&amp;quot; inside &amp;quot;nrf_log_frontend.c&amp;quot;.&lt;/p&gt;
&lt;p&gt;The program gets in this function from the &amp;quot;saadc_sampling_event_init&amp;quot; function in my main.&lt;/p&gt;
&lt;p&gt;While running&amp;nbsp;&lt;span&gt;&amp;quot;saadc_sampling_event_init&amp;quot; the program gets into &amp;quot;app_error_fault_handler&amp;quot; inside &amp;quot;app_error_weak.c&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;&amp;quot;saadc_sampling_event_init&amp;quot;&amp;nbsp;runs ok until:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;timer_cfg.bit_width = NRF_TIMER_BIT_WIDTH_32;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this a memory issue? What I&amp;#39;m I doing wrong and how should I solve it? If it is possible.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/thread/212842?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 13:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c33fe8d-7f64-4851-9466-92d3635ee5ea</guid><dc:creator>awneil</dc:creator><description>[quote userid="82582" url="~/f/nordic-q-a/52752/implementing-saadc-example-to-send-data-over-bluetooth/212834"] I&amp;#39;m not that experienced writing code this way[/quote]
&lt;p&gt;Maybe start here, then:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf5gs/struct/nrf5gs_sw_dev.html"&gt;https://infocenter.nordicsemi.com/topic/struct_nrf5gs/struct/nrf5gs_sw_dev.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is are specific sections on debugging; eg,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;infocenter.nordicsemi.com/.../debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See also:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/thread/212834?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 13:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:289171d0-27ef-45ab-b712-fd83fa9a0dc1</guid><dc:creator>joneves</dc:creator><description>&lt;p&gt;To be honest with you, I thought about using the debugger to understand what is happening better. But as I&amp;#39;m not that experienced writing code this way, I&amp;#39;m even less using debug tools. Not that sure how to configure it.&lt;/p&gt;
&lt;p&gt;Anyway, I was trying to understand if there was any known issue or direct tip.&lt;/p&gt;
&lt;p&gt;I will search a bit more to understand how to make a proper and useful debug. If you have any tip on this...it would be really welcome &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SAADC example to send data over Bluetooth</title><link>https://devzone.nordicsemi.com/thread/212686?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 22:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0d23d6-863c-4fd5-8753-6c4bb109b6d9</guid><dc:creator>awneil</dc:creator><description>[quote userid="82582" url="~/f/nordic-q-a/52752/implementing-saadc-example-to-send-data-over-bluetooth"]Nordic nRF52840 PDK[/quote]
&lt;p&gt;You mean the &lt;em&gt;Preview&lt;/em&gt; Dev Kit?&lt;/p&gt;
&lt;p&gt;That was early silicon with known issues - you should get a current Dev Kit.&lt;/p&gt;
[quote userid="82582" url="~/f/nordic-q-a/52752/implementing-saadc-example-to-send-data-over-bluetooth"]Apparently&amp;nbsp;it is not reaching the Bluetooth device &amp;quot;generation&amp;quot; function[/quote]
&lt;p&gt;Have you used the debugger to see what&amp;#39;s happening in the code?&lt;/p&gt;
&lt;p&gt;Are you using a Debug configuration - with log outputs ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>