<?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>Temp device tree node</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115775/temp-device-tree-node</link><description>Hi, I want to use the temp node from the Device Tree of nrf52840. However, when I do something like this: I have an error saying : undefined reference to `__device_dts_ord_xx&amp;#39; . However, if I enable CONFIG_SENSOR it works. Is possible to use the node</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 13:08:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115775/temp-device-tree-node" /><item><title>RE: Temp device tree node</title><link>https://devzone.nordicsemi.com/thread/507761?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 13:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2669f2a-4db6-4648-b3e6-f71417545a7d</guid><dc:creator>Miguel Ferreira</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks! Yeah that seems to be the case! Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temp device tree node</title><link>https://devzone.nordicsemi.com/thread/507733?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 11:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bfeaeb2-d09c-4a04-ab6c-bc1946402a26</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/mpsl/doc/mpsl.html"&gt;MSPL&lt;/a&gt;&amp;nbsp;will reserve access to the TEMP peripheral if you are enabling Bluetooth in application. TEMP is used for clock calibration when the internal RC oscillator is selected as the clock source.&lt;/p&gt;
&lt;p&gt;In that case, you can request temperature readings using the&amp;nbsp;mpsl_temperature_get() function.&lt;/p&gt;
&lt;p&gt;e.g.,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
#include &amp;lt;mpsl_temp.h&amp;gt;

    ...
    printk(&amp;quot;Temperature %d\n&amp;quot;, mpsl_temperature_get() / 4);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temp device tree node</title><link>https://devzone.nordicsemi.com/thread/507631?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 16:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75378db0-bb96-4f46-af6b-1448a212b9b9</guid><dc:creator>Miguel Ferreira</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Im aware of this example, however I dont want to use the Sensor API and I developed my own driver. In this case I just pretend to access the temp node : temp: temp@4000c000&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temp device tree node</title><link>https://devzone.nordicsemi.com/thread/507630?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 16:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ea9ad16-1529-4153-b0fb-262c031cc6b7</guid><dc:creator>nordicator_prim3</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The driver that allows you to control / access that device uses the sensor api. So for that reason, you must enable CONFIG_SENSOR to be able to use it.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to use the sensor api, then you would have to write your own driver to interface with the temp device, but I would recommend just using it as is.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/zephyr/samples/bluetooth/peripheral_ht/README.html"&gt;Here&lt;/a&gt; is a good sample program that uses the die temp device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>