<?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>i.MX RT Crossover MCUs中的主题 Re: Read UID(Unique ID) on i.MXRT RT1050</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1202715#M11802</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I adapt the evkbimxrt1050_ocotp_example demo in the SDK library and run it, I find these two approaches both can get the unique ID successfully. &lt;BR /&gt;I attach the test result below and the attachment is the demo code, please give it a try.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_0-1608605646140.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133212iC04408C91A43E947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_0-1608605646140.png" alt="jeremyzhou_0-1608605646140.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jeremyzhou_0-1608605646140.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 02:54:48 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-12-22T02:54:48Z</dc:date>
    <item>
      <title>Read UID(Unique ID) on i.MXRT RT1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1202637#M11800</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to read the unique ID on i.MXRT RT1050. First I read it like below:&lt;/P&gt;&lt;P&gt;uint32_t id1 = OCOTP-&amp;gt;CFG0; uint32_t id2 = OCOTP-&amp;gt;CFG1;&lt;/P&gt;&lt;P&gt;Then, I found in the forum that the right way to do so is:&lt;/P&gt;&lt;P&gt;OCOTP_ClearErrorStatus(OCOTP);&lt;BR /&gt;OCOTP_ReloadShadowRegister(OCOTP);&lt;BR /&gt;uid_read_data[0] = OCOTP_ReadFuseShadowRegister(OCOTP, fuse_address[0]);&lt;BR /&gt;uid_read_data[1] = OCOTP_ReadFuseShadowRegister(OCOTP, fuse_address[1]);&lt;/P&gt;&lt;P&gt;However, the second approach gives me only zero while the first one gives something more meaningful. Could anyone please tell me why reading directly from the register is not right, and why the second method does not work properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 21:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1202637#M11800</guid>
      <dc:creator>dynamix</dc:creator>
      <dc:date>2020-12-21T21:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Read UID(Unique ID) on i.MXRT RT1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1202715#M11802</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I adapt the evkbimxrt1050_ocotp_example demo in the SDK library and run it, I find these two approaches both can get the unique ID successfully. &lt;BR /&gt;I attach the test result below and the attachment is the demo code, please give it a try.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_0-1608605646140.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133212iC04408C91A43E947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_0-1608605646140.png" alt="jeremyzhou_0-1608605646140.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jeremyzhou_0-1608605646140.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 02:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1202715#M11802</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-12-22T02:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read UID(Unique ID) on i.MXRT RT1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1203091#M11807</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;As reference, it is done like this in the uTasker project:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    POWER_UP_ATOMIC(2, OCOTP_CTRL_CLOCK);
    fnDebugMsg("i.MX RT Unique ID:");
    fnDebugHex(HW_OCOTP_CFG2, (WITH_SPACE | WITH_LEADIN | sizeof(unsigned long)));
    fnDebugMsg("-");
    fnDebugHex(HW_OCOTP_CFG0, (sizeof(unsigned long)));
    fnDebugHex(HW_OCOTP_CFG1, (sizeof(unsigned long) | WITH_CR_LF));
    POWER_DOWN_ATOMIC(2, OCOTP_CTRL_CLOCK);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;i.MX RT Unique ID: 0x50000020-b96fe9ba916bfa5a&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 13:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1203091#M11807</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-12-22T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read UID(Unique ID) on i.MXRT RT1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1203170#M11810</link>
      <description>&lt;P&gt;Thank you so much! &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; I realized that I did not initialize OCOTP in my code.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 17:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-UID-Unique-ID-on-i-MXRT-RT1050/m-p/1203170#M11810</guid>
      <dc:creator>dynamix</dc:creator>
      <dc:date>2020-12-22T17:06:43Z</dc:date>
    </item>
  </channel>
</rss>

