<?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>Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99915/build-fails-with-nrfx_temp-driver</link><description>Hi, 
 I am using nRF Connect SDK 2.3.0 with VS code and would like to use the nordic driver for the internal thermometer of the nRF5340. 
 When I include in my application the nrfx_temp.h file, the build fails with the following: 
 
 
 Obviously the structure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 May 2023 11:05:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99915/build-fails-with-nrfx_temp-driver" /><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/428139?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 11:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd5b5c5-3212-48ac-9ad1-59825324072f</guid><dc:creator>Sebastian</dc:creator><description>&lt;p&gt;Thank you Naeem.&lt;/p&gt;
&lt;p&gt;This works.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/427603?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 16:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d640ac-23ef-4815-8e47-670fd4a96324</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, you can get temperature on the net core, also you can send it to app core through some IPC mechanism.&amp;nbsp;As you do not want anything else on the NET core except the controller, it is best to use HCI command using&amp;nbsp;BT_HCI_OP_VS_READ_CHIP_TEMP opcode.&lt;/p&gt;
&lt;p&gt;Yes this is good way to do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/427022?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 16:42:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2c95c2-40f6-47c8-82fa-ef39585b05cd</guid><dc:creator>Sebastian</dc:creator><description>&lt;p&gt;Hello Naeem,&lt;/p&gt;
&lt;p&gt;Thank you for you reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am new to a two processor system. Maybe this is the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the net processor I would only like to have the softdevice controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to use the softdevice controller to readout the net core temperature?&lt;/p&gt;
&lt;p&gt;Is there a way to access the net core thermometer from the application core?&lt;/p&gt;
&lt;p&gt;Please point me to an example on how to execute code in the net processor while the softdevice controller is running and the application core is controlling it via HCI.&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;----- EDIT ------&lt;/p&gt;
&lt;p&gt;Now I can see that in order to read the chip temperature when the softdevice controller is running on the net processor this must be done via the HCI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a command, BT_HCI_OP_VS_READ_CHIP_TEMP which must do just that.&lt;/p&gt;
&lt;p&gt;Can you please confirm if this is the correct way to do it?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/426998?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 14:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dac12a28-8df7-4c52-ae1c-339149ed5d5d</guid><dc:creator>Naeem Maroof</dc:creator><description>[quote user="vgram"]Also when I include the file and build for the net processor there is no issue.&amp;nbsp;[/quote]
&lt;p&gt;Yes, the temp peripheral is on the net core, so yes it will be able to access that.&lt;/p&gt;
[quote user="vgram"]When, however, I try to call &lt;strong&gt;nrfx_temp_result_get()&amp;nbsp;&lt;/strong&gt;in my main application I get the same error indicated above.&amp;nbsp;[/quote]
&lt;p&gt;Might be you are trying to access it from the app core?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use this function (&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrfx_temp_results_get()&lt;/span&gt;) and others to access the TEMP peripheral on the NET core. Build it and flash it for the NET core, and see if you could get log output from the NET core.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You must use nrfx_temp_measure() and nrfx_temp_init() for initialization before using&amp;nbsp;nrfx_temp_result_get() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/426742?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 06:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e491cc3e-8a8a-4570-a9f2-4e864390029a</guid><dc:creator>Sebastian</dc:creator><description>&lt;p&gt;Hello Naeem,&lt;/p&gt;
&lt;p&gt;Thanks for coming back on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I exclude the file&amp;nbsp;&lt;strong&gt;&amp;quot;nrfx_temp.h&amp;quot;&amp;nbsp;&lt;/strong&gt;so that my application builds and check the /build/zephyr of the net processor I can see that the thermometer options have been enabled:&lt;/p&gt;
&lt;p&gt;CONFIG_SENSOR=y&lt;/p&gt;
&lt;p&gt;CONFIG_TEMP_NRF5=y&lt;/p&gt;
&lt;p&gt;CONFIG_TEMP_NRF5_FORCE_ALT=y&lt;/p&gt;
&lt;p&gt;CONFIG_TEMP_NRF5_MPSL=y&lt;/p&gt;
&lt;p&gt;CONFIG_NRFX_TEMP=y&lt;/p&gt;
&lt;p&gt;CONFIG_HAS_HW_NRF_TEMP=y&lt;/p&gt;
&lt;p&gt;Also when I include the file and build for the net processor there is no issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When, however, I try to call &lt;strong&gt;nrfx_temp_result_get()&amp;nbsp;&lt;/strong&gt;in my main application I get the same error indicated above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/426523?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 11:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f305806b-5fe6-4e2d-b389-f765fe2ea275</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You are building for the application core or net core?&lt;/p&gt;
&lt;p&gt;The TEMP peripheral is only accessible from the NET core:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Ftemp.html&amp;amp;cp=3_0_0_6_33"&gt;TEMP Sensor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1684753679640v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try building for the network core of nrf5340&amp;nbsp;and see if the error vanishes.&lt;/p&gt;
&lt;p&gt;You may also look at compiled DTS to make sure that the temp peripheral is active.&lt;/p&gt;
&lt;p&gt;You may also check .config (in /build/zephyr) to make sure related configurations are done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build fails with nrfx_temp driver</title><link>https://devzone.nordicsemi.com/thread/426257?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 11:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c46f48-288c-4141-816e-c79dac9d2f98</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Apologies, but we are short staffed this week due to Public Holidays in Norway. We will be back on Monday 22nd and hope to be able to answer all incoming requests within a couple of days, depending on the backlog. Sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>