<?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>SAADC with softdevice cann&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39830/saadc-with-softdevice-cann-t-work</link><description>Hi, 
 Now, i want to use SAADC with softdevice of SDK15.0 to make a beacon program. 
 I migrate SAADC example in nRF5_SDK_15.0.0_a53641a\examples\peripheral to beacon with softdevice. My cpu is NRF52810. Of course, i change timer from timer0 to timer1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Oct 2018 10:17:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39830/saadc-with-softdevice-cann-t-work" /><item><title>RE: SAADC with softdevice cann't work</title><link>https://devzone.nordicsemi.com/thread/154647?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 10:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34ecbba-bd98-4086-960e-d1ed09a6c51c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you debug to see what happens when &amp;quot;the program stops&amp;quot;? Using a debugger you should be able to see what is happening. What is the state of the CPU etc. when it seems like it is stopped? What happens within&amp;nbsp;nrfx_ppi_channel_alloc()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC with softdevice cann't work</title><link>https://devzone.nordicsemi.com/thread/154587?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 02:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9295718-6381-4ebf-b9af-a6e3716e4a87</guid><dc:creator>liu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Einar.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Now, i add some printf to show where the progarm stop.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1540519912273v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It shows program stop at&amp;nbsp;saadc_sampling_event_init(), in it we can find:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1540520042048v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the result shows the code&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; err_code = nrf_drv_ppi_channel_alloc(&amp;amp;m_ppi_channel);&lt;/div&gt;
&lt;div&gt;cann&amp;#39;t run through.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;we can find this result&amp;nbsp;&amp;nbsp;by sscom32:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1540520095498v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC with softdevice cann't work</title><link>https://devzone.nordicsemi.com/thread/154471?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 11:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87ca956-e6a5-49d6-9bc4-01d5b4451560</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please elaborate&amp;nbsp;on what actually happens&amp;nbsp;when you write &amp;quot;can&amp;#39;t run&amp;quot;. Also, please look at this example (&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6d3008cd362c49119a710e5b27c4c805/ble_5F00_app_5F00_beacon_5F00_saadc_5F00_sdk_5F00_15.2.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_beacon_5F00_saadc_5F00_sdk_5F00_15.2.zip&lt;/a&gt;) which I just adapted for &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39781/test-ppi-adc-but-system-error-softdevice-invalid-memory-access/"&gt;this thread&lt;/a&gt;. It combines the SKD &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_beacon.html?cp=4_0_0_4_1_2_2"&gt;beacon example application&lt;/a&gt; with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/nrf_dev_saadc_example.html?cp=4_0_0_4_5_33"&gt;SAADC example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC with softdevice cann't work</title><link>https://devzone.nordicsemi.com/thread/154411?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 08:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e020a0e5-296c-434e-a2f6-ea8cd459ac8a</guid><dc:creator>liu</dc:creator><description>&lt;p&gt;I use timer1 or timer2,but it cann&amp;#39;t work also;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; saadc_init(); &amp;nbsp; //cann&amp;#39;t run through this code;&lt;br /&gt;&lt;br /&gt; saadc_sampling_event_init();&lt;br /&gt;&lt;br /&gt; saadc_sampling_event_enable();&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>