<?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>how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77362/how-to-get-nrf5340-soc-temperature</link><description>Can I get the temperature of the nrf5340 SOC via sd_temp_get just like nrf52 ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Sep 2021 09:38:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77362/how-to-get-nrf5340-soc-temperature" /><item><title>RE: how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/thread/327556?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 09:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0111ee66-dde3-41ec-ad69-f5a4c0f44476</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi, I have taken over this case while Simon is on leave. Sorry for the long delay.&lt;/p&gt;
&lt;p&gt;The &amp;#39;0&amp;#39; you read could perhaps be because the measurement is not yet ready.&amp;nbsp;Have you tried using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fdrivers_nrfx_v2.3.0%2Fgroup__nrfx__temp.html"&gt;nrfx_temp_result_get&lt;/a&gt;&lt;code&gt;()&lt;/code&gt;? Or have you tried&amp;nbsp;&lt;span&gt;nrfx_temp_measure() in blocking mode?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="simoniversen"]You can also use the&amp;nbsp;function &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/485953daf090da486880d7a3496759372f201e7a/mpsl/include/mpsl_temp.h#L26-L33"&gt;mpsl_temperature_get()&lt;/a&gt;[/quote]
&lt;p&gt;Have you tried this suggestion? F&lt;span&gt;rom the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrfxlib/mpsl/doc/api.html?highlight=mpsl_temperature_get"&gt;documentation&lt;/a&gt;:&amp;nbsp;&amp;quot;This function will block until the temperature measurement is done.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please also feel free to share your code. We could try to reproduce this behavior.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/thread/322773?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 02:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c4ee43-4e52-430f-b96e-02858eca7d73</guid><dc:creator>tianwanjie</dc:creator><description>&lt;p&gt;hello,simon&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span class="transSent"&gt;After I have tested nrfx_temp_measure, I can normally read the temperature data, but some of the devices in my hand will have the phenomenon that the read temperature is 0. After I reset it by NVIC_SystemReset function, the read value of nrfx_temp_measure function is still 0.&lt;/span&gt;&lt;span class="transSent"&gt;Unable to recover. Do you have any directions?&lt;/span&gt;&lt;span class="transSent"&gt;In addition, ask whether the NVIC_SystemReset function can reset netcore?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/thread/320278?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 13:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f14cea7-6ea9-4ed3-9202-c11a668d8127</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I got some more insight into this.&lt;/p&gt;
&lt;p&gt;In NCS v1.5.0, there was added an HCI command for reading the temperature:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/485953daf090da486880d7a3496759372f201e7a/softdevice_controller/include/sdc_hci_vs.h#L51"&gt;SDC_HCI_OPCODE_CMD_VS_ZEPHYR_READ_CHIP_TEMP&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Triggers&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/485953daf090da486880d7a3496759372f201e7a/softdevice_controller/include/sdc_hci_vs.h#L464-L474"&gt;sdc_hci_cmd_vs_zephyr_read_chip_temp()&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/master/softdevice_controller/CHANGELOG.rst#added-1"&gt;changelog NCS v1.5.0&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also use the&amp;nbsp;function &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/485953daf090da486880d7a3496759372f201e7a/mpsl/include/mpsl_temp.h#L26-L33"&gt;mpsl_temperature_get()&lt;/a&gt;&amp;nbsp;(this was &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/master/softdevice_controller/CHANGELOG.rst#changes-4"&gt;replaced by the function ble_controller_temp_get()&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/thread/319692?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 02:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec1fbee-9d4a-4d38-97ec-d4f48c6cf23d</guid><dc:creator>tianwanjie</dc:creator><description>&lt;p&gt;thanks,i solve it.&amp;nbsp; by the way, can i call&amp;nbsp;nrfx_temp_measure() function&amp;nbsp;&lt;span&gt;directly from appCore?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get nrf5340 soc temperature</title><link>https://devzone.nordicsemi.com/thread/319602?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 12:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8bcca50-8d1e-4783-8d82-430164a60083</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It does not seem like this is supported through the Zephyr API, but you can use the NRFX API:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-hal_nordic/blob/v1.5.1/nrfx/drivers/include/nrfx_temp.h"&gt;https://github.com/nrfconnect/sdk-hal_nordic/blob/v1.5.1/nrfx/drivers/include/nrfx_temp.h&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I created a temperature sample using this API, check it out here:&amp;nbsp;&lt;a href="https://github.com/simon-iversen/sdk-nrf/tree/temperature/samples/peripheral/temperature"&gt;https://github.com/simon-iversen/sdk-nrf/tree/temperature/samples/peripheral/temperature&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>