<?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>LPC Microcontrollers中的主题 Re: LPC804 Stuck or crash on IAP_ReadUniqueID</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1848991#M55886</link>
    <description>&lt;P&gt;IAP_ReadUniqueID() expects a pointer to 128bits (4 x 32bit values).&lt;/P&gt;&lt;P&gt;You see this if you step into IAP_ReadUniqeID().&lt;/P&gt;&lt;P&gt;You are passing only a pointer to 32bits, so memory gets overwritten. Fix that and it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 11:10:54 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2024-04-17T11:10:54Z</dc:date>
    <item>
      <title>LPC804 Stuck or crash on IAP_ReadUniqueID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1848850#M55880</link>
      <description>&lt;P&gt;I'm trying to read the Unique ID of a LPC804 but, I think it was working before, now I cannot access the UID any longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following function makes the whole process stop and not continue. In the debugger I find that IAP_ReadUniqueID is executed (although maybe not with success?) but a breakpoint on the status check is never reached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    uint32_t UIDValue = 0x00;
    status_t UIDStatus = kStatus_Fail;
    //  Read the UID
    UIDStatus = IAP_ReadUniqueID(&amp;amp;UIDValue);
    
    // Return when failed
    if(UIDStatus != kStatus_Success) return;
    
    // insert UID into message
    data[3] = (uint8_t)((UIDValue &amp;gt;&amp;gt; (8 * 3)) &amp;amp; 0xFF);
    data[4] = (uint8_t)((UIDValue &amp;gt;&amp;gt; (8 * 2)) &amp;amp; 0xFF);
    data[5] = (uint8_t)((UIDValue &amp;gt;&amp;gt; (8 * 1)) &amp;amp; 0xFF);
    data[6] = (uint8_t)(UIDValue &amp;amp; 0xFF);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Since I think it was working prior, might the flash memory have been emptied or reset? What could it be or what can I check?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 08:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1848850#M55880</guid>
      <dc:creator>MHMart</dc:creator>
      <dc:date>2024-04-17T08:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Stuck or crash on IAP_ReadUniqueID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1848991#M55886</link>
      <description>&lt;P&gt;IAP_ReadUniqueID() expects a pointer to 128bits (4 x 32bit values).&lt;/P&gt;&lt;P&gt;You see this if you step into IAP_ReadUniqeID().&lt;/P&gt;&lt;P&gt;You are passing only a pointer to 32bits, so memory gets overwritten. Fix that and it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1848991#M55886</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2024-04-17T11:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Stuck or crash on IAP_ReadUniqueID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1849591#M55892</link>
      <description>&lt;P&gt;Thanks, amazing! That solved my issue.&lt;/P&gt;&lt;P&gt;I could, indeed, have figured that out by checking the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my defense though, this documentation could be updated to fit that explenation?&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/2167/a00070.html#ga258d8c49d494cbd0d18321af56e11440" target="_blank" rel="noopener"&gt;https://mcuxpresso.nxp.com/api_doc/dev/2167/a00070.html#ga258d8c49d494cbd0d18321af56e11440&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems an important requirement that isn't mentioned directly.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 06:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Stuck-or-crash-on-IAP-ReadUniqueID/m-p/1849591#M55892</guid>
      <dc:creator>MHMart</dc:creator>
      <dc:date>2024-04-18T06:54:40Z</dc:date>
    </item>
  </channel>
</rss>

