<?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>Using die temp interrupt causes BLE cannot be initialized</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121003/using-die-temp-interrupt-causes-ble-cannot-be-initialized</link><description>Hi, I&amp;#39;m working on the DK for nrf52832. I have a working code for BLE, and another working code for die temperature using interrupt. Now I want to merge them and trigger the die temp in an app_timer in main. Then the callback of temperature will be processed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 11 May 2025 06:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121003/using-die-temp-interrupt-causes-ble-cannot-be-initialized" /><item><title>RE: Using die temp interrupt causes BLE cannot be initialized</title><link>https://devzone.nordicsemi.com/thread/534755?ContentTypeID=1</link><pubDate>Sun, 11 May 2025 06:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d752235-f9f1-4f1b-aca8-2d2edf58b45d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You code failed because you MUST NOT use/enable any interrupts for restricted or blocked peripherials&amp;nbsp;&lt;em&gt;at all&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Also I wonder if you ever tried to measure you code power usage. With a measurement time &amp;lt;100&amp;micro;s I don&amp;#39;t expect much power savings with interrupt usage.&lt;/p&gt;
&lt;p&gt;Especially when you consider that one measurement per second is plenty (read: too much for most applications) there is not that much power usage in the first place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using die temp interrupt causes BLE cannot be initialized</title><link>https://devzone.nordicsemi.com/thread/534749?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 19:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57a2a1d-24d1-4bc8-bf78-4ec7d3ffb3f4</guid><dc:creator>Xander To</dc:creator><description>&lt;p&gt;I still don&amp;#39;t understand.&lt;/p&gt;
&lt;p&gt;Firstly, why did my code fail when it only uses Priority 3, which follows the requirement &amp;gt; 2 priority level by SoftDevice?&lt;/p&gt;
&lt;p&gt;Secondly, does sd_temp_get uses an interrupt to get the data? I want to save as much power as possible that&amp;#39;s quite I wrote my own library file to use the interrupt for getting data. Hope the sd_temp_get also uses the interrupt.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Xander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using die temp interrupt causes BLE cannot be initialized</title><link>https://devzone.nordicsemi.com/thread/533128?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 07:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f9d75cd-ca47-4520-878e-2f629749a660</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]&lt;p&gt;After I add this library code into my BLE code, the BLE cannot be initialized anymore. I traced back and error originated from&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_sdh_enable_request() fails to enable soft device with error code 4097. I don&amp;#39;t understand why. Can you please help?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;See this case:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60597/what-is-error_code-4097-in-sd_softdevice_enable"&gt;What is error_code 4097 in sd_softdevice_enable?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When using the SoftDevice, you should use the function&amp;nbsp;&lt;span&gt;sd_temp_get() to get the temperature&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>