<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic iMX8MM temperature sensor gives unconsistent values in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810161#M220036</link>
    <description>&lt;P&gt;When doing some temperature measurement on our devices, we observed that the temperature given by the imx8mm (`cat /sys/class/thermal/thermal_zone0/temp`) can greatly fluctuate from one device to the other, with the exact same Linux image running.&lt;/P&gt;&lt;P&gt;We also measured the chip temperature with an IR camera and observed that we saw that the difference between imx sensor and the camera can go up to 20°C !&lt;/P&gt;&lt;P&gt;We verified that the imx8mm_thermal driver is included in our kernel.&lt;/P&gt;&lt;P&gt;What can be the reason of these huge temperature differences ?&lt;BR /&gt;Maybe there is an issue with the hardware sensor calibration ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 17:33:45 GMT</pubDate>
    <dc:creator>Gerome</dc:creator>
    <dc:date>2024-02-16T17:33:45Z</dc:date>
    <item>
      <title>iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810161#M220036</link>
      <description>&lt;P&gt;When doing some temperature measurement on our devices, we observed that the temperature given by the imx8mm (`cat /sys/class/thermal/thermal_zone0/temp`) can greatly fluctuate from one device to the other, with the exact same Linux image running.&lt;/P&gt;&lt;P&gt;We also measured the chip temperature with an IR camera and observed that we saw that the difference between imx sensor and the camera can go up to 20°C !&lt;/P&gt;&lt;P&gt;We verified that the imx8mm_thermal driver is included in our kernel.&lt;/P&gt;&lt;P&gt;What can be the reason of these huge temperature differences ?&lt;BR /&gt;Maybe there is an issue with the hardware sensor calibration ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 17:33:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810161#M220036</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-02-16T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810247#M220039</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209520"&gt;@Gerome&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share the below details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using a custom board or EVK?&lt;/P&gt;
&lt;P&gt;What BSP version are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 20:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810247#M220039</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-02-16T20:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810932#M220087</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368" target="_blank"&gt;@Alejandro_Salas&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I am using a custom board and the manifest &lt;STRONG&gt;imx-5.4.70-2.3.2.xml&lt;/STRONG&gt;, it is a bit old but I didn't see any relevant commits on temperature since then.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gerome&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1810932#M220087</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-02-19T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1811132#M220099</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209520"&gt;@Gerome&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please check your&amp;nbsp;&lt;SPAN&gt;VDD_SOC, VDD_ANA0_1P8, and VDD_ANA0_0P8 power rails.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That power rails impact directly to sensor. You can refer to EVK Schematics.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Salas.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 17:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1811132#M220099</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-02-19T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1813971#M220322</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;We just checked, we have VDD_SOC = VDD_ANA0_0P8 = 849mV, and VDD_ANA0_1P8 = 1.78V.&lt;BR /&gt;Measures are pretty similar across the different boards (even the ones that have a big thermal sensor difference)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerome&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1813971#M220322</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-02-22T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1816500#M220475</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also checked that a 100k resistor is connected to J24, so this is not the issue either.&lt;/P&gt;&lt;P&gt;Can you confirm that the temperature read from the imx8mm thermal driver includes the 1 point calibration (so the DC offset is already subtracted from the value) ? Because the problem we have looks like an offset compensation error.&lt;/P&gt;&lt;P&gt;Do you have any other ideas on what could cause this problem ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help&lt;/P&gt;&lt;P&gt;Gerome&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1816500#M220475</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-02-27T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1817723#M220541</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;We made some further investigations and tried to read the value in register &lt;EM&gt;TMU_TSCR&lt;/EM&gt;, which should contain the direct sensor value without 1 point calibration Tsense (?).&lt;/P&gt;&lt;P&gt;And we saw that when we apply the 1 point calibration formula&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tcalib = Tsense - (TE1 - 25)&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt;&amp;nbsp;&amp;nbsp; Tcalib = TSCR - (TE1 - 25)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;to the value in TSCR, we have completely different value from the &lt;EM&gt;TMU_TRITSR&lt;/EM&gt; register !&lt;/P&gt;&lt;P&gt;On 3 different devices under different conditions, in °C:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;Tcalib &lt;/STRONG&gt;( = TSCR - (TE1 - 25) )&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;TRISTR&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;59&lt;/TD&gt;&lt;TD width="50%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;50&lt;/TD&gt;&lt;TD width="50%"&gt;59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;55&lt;/TD&gt;&lt;TD width="50%"&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with our calculation ?&lt;/P&gt;&lt;P&gt;Is it possible that some kernel configuration breaks TRISTR hardware calibration ?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;&lt;P&gt;Gerome&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2024 14:51:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1817723#M220541</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-03-05T14:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1828560#M221272</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that burning the fuses when we are locking the device creates this temperature error !&lt;/P&gt;&lt;P&gt;Is there a potential side effect ?&lt;/P&gt;&lt;P&gt;Is it possible that writing some values in &lt;STRONG&gt;the OTP breaks the TMU&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;As a workaround, &lt;STRONG&gt;is it safe to read TSCR in the driver&lt;/STRONG&gt; and calculate the calibration ourselves based on TE1 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Gerome&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 14:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1828560#M221272</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-03-14T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1922993#M226892</link>
      <description>&lt;P&gt;Talking to NXP's support, they said that this bug has been reported before and that this was fixed in the BSP version &lt;SPAN&gt;5.15.32.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;They also said that it should be safe, as a workaround, to read TSCR and TE1 and recalculate the calibrated value (that should be the same as reading TRISRT register).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 12:31:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1922993#M226892</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-08-01T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM temperature sensor gives unconsistent values</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1922998#M226893</link>
      <description>We could not update our BSP so we did not validate the first solution.&lt;BR /&gt;But the workaround is working fine for us.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 01 Aug 2024 12:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-temperature-sensor-gives-unconsistent-values/m-p/1922998#M226893</guid>
      <dc:creator>Gerome</dc:creator>
      <dc:date>2024-08-01T12:36:41Z</dc:date>
    </item>
  </channel>
</rss>

