<?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>nrf_temp_read()  or  sd_temp_get(&amp;amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28421/nrf_temp_read-or-sd_temp_get-t-fault-with-s132</link><description>Hello, 
 I try to read temperature with embedded sensor. Works well with example but crash when using SoftDevice 3.0.0 on nRF52328. Was working with SoftDevice 2.0.0.7.alpha. 
 Difficult do find information about this functions in the online documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Dec 2017 09:47:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28421/nrf_temp_read-or-sd_temp_get-t-fault-with-s132" /><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112192?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 09:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c929f8f-1e92-42d5-b9b3-c7dd37577432</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;@akroizer a lot of the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/examples_hw_peripheral_devices.html?cp=4_0_0_4_6"&gt;hardware peripheral examples&lt;/a&gt; in the SDK is not usable with the softdevice, as they make use of blocked or restricted peripherals. You should always check the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_1_0_6_0"&gt;softdevice specifications&lt;/a&gt; to see which peripherals is available to the application. The hardware peripheral examples is supposed to show how the peripherals of the chip can be used. Not all chips are using the softdevice, and it does therefore not make sense to mix the softdevice into these examples. If you are having trouble getting things working, don&amp;#39;t hesitate to post a new thread here on DevZone to get help with your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112191?ContentTypeID=1</link><pubDate>Sun, 17 Dec 2017 08:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc2c089-ce44-4737-893a-77d5a43d8be8</guid><dc:creator>Ahuva Kroizer</dc:creator><description>&lt;p&gt;Hi, I actually had a similar problem where I thought the temperature example can be used as-is but took a long time (and looking for answers in the forum) to understand that it is not useable with a softdevice. I agree with @manymany that it would be good to at least add a comment to the temperature example that says it is not useable with a softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112190?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 14:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f90de72-a39f-406c-a0cf-99abc662bf5e</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;My point of view was to use a  very simple (easy to understand) example like temperature to show that there is two different world with Softdevice and without. But this comment was probably stupid, apologise please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112189?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc3fb2c2-2f3d-4005-aaa0-4632250f7dc6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand what you mean by saying that the temperature example is a good way to understand the concept of softdevice. The temperature example show how the temperature peripheral works, and I don&amp;#39;t think we should mix the softdevice into the peripheral examples. You cannot use the softdevice temp function without enabling the softdevice first, and starting to mix this into the peripheral example will just confuse people.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112188?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:104d1ea2-7bb8-474d-8e11-405ec80de37d</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;Yes. Sorry if I insist but I think temperature is a good basic example to understand the concept of Sofdevice and this should appear in  SDK example/temperature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112187?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd6e5af-d8ea-46be-a522-20732df15c20</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Great that you got it working! &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_0_0_6_0"&gt;Access to the TEMP peripheral is Restricted&lt;/a&gt; when running the softdevice and you should only access it through calls to softdevice functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112184?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e46a4ba-1b22-4d96-bc61-ad24e60c0c07</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;Thank you very much Jorgen, I&amp;#39;ve just managed to get it working. I had not removed NRF_TEMP-&amp;gt; ... things.
Now works fine. I spent a lot of time moving from S132-2.0.0-7_alpha to S132-3.0.0 mainly because of that.  Some comments on that could appear in the temperature example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112186?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21397dc-e707-4495-a2a4-814554e7d822</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;And this is not working? Did you initialize the softdevice before calling &lt;code&gt;sd_get_temp()&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112185?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99017a62-4bf9-464a-b985-418b44416da5</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;No just replace nrf_temp_read() by sd_temp_get().&lt;/p&gt;
&lt;p&gt;Remove also other stuff NRF_TEMP-&amp;gt; ...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//Without S132
float temp;

//   NRF_TEMP-&amp;gt;TASKS_START = 1; /** Start the temperature measurement. */
//  NRF_TEMP-&amp;gt;EVENTS_DATARDY = 0;
//  temp = nrf_temp_read()/4.0;
//  NRF_TEMP-&amp;gt;TASKS_STOP = 1; /** Stop the temperature measurement. */
  
//With S132
 
int32_t  t;
sd_temp_get(&amp;amp;t);
temp = t/4.0;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_temp_read()  or  sd_temp_get(&amp;t) fault with S132</title><link>https://devzone.nordicsemi.com/thread/112183?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 12:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ab435f4-6637-4b0f-ae1a-9638a85b10b3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The softdevice function &lt;code&gt;sd_temp_get()&lt;/code&gt; is documented in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#gade0ea69f513ff1feab2c4f6e1c393313"&gt;the infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I tested it using the ble_app_uart example in SDK 12.2 with S132 v3.0.0 softdevice, and it works fine. How do you use it in your application? Did you get any error codes in return when calling the function?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>