<?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 Re: Accessing UUID in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053312#M40785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;Thanks, I tried the flashiap1 demo and it works, so I investigated what the demo had that my project was missing.&amp;nbsp; It turned out I needed two things:&lt;/P&gt;&lt;P&gt;Copy the BOARD_BootClockFROHF96M function from the example and call it.&lt;/P&gt;&lt;P&gt;Call FLASH_Init.&lt;/P&gt;&lt;P&gt;Now I can read the UUID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will study the BOARD_BootClockFROHF96M function; I assume it is doing things that really should be done in the IDE Clocks tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2020 10:20:28 GMT</pubDate>
    <dc:creator>mditto1</dc:creator>
    <dc:date>2020-08-04T10:20:28Z</dc:date>
    <item>
      <title>Accessing UUID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053310#M40783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running on our custom LPC55S69 board.&amp;nbsp; I'm trying to access the UUID in the protected flash region.&amp;nbsp; After reading the &lt;SPAN class=""&gt;Flash_ifr_driver&lt;/SPAN&gt; section of the SDK API Reference Manual, I added the "IAP1" driver in MCUXpresso and added this code to my project:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;#include "fsl_iap_ffr.h"&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;flash_config_t flash_config;
uint8_t uuid_buf[16];
printf("FFR_Init: %d\n", FFR_Init(&amp;amp;flash_config));
printf("FFR_GetUUID: %d\n", FFR_GetUUID(&amp;amp;flash_config, uuid_buf));
printf("uuid_buf: %02X %02X %02X %02X %02X %02X %02X %02X\n",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uuid_buf[0], uuid_buf[1], uuid_buf[2], uuid_buf[3],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uuid_buf[4], uuid_buf[5], uuid_buf[6], uuid_buf[7]);
printf(" %02X %02X %02X %02X %02X %02X %02X %02X\n",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uuid_buf[8], uuid_buf[9], uuid_buf[10], uuid_buf[11],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uuid_buf[12], uuid_buf[13], uuid_buf[14], uuid_buf[15]);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The code compiles and the functions return success (0) but the data is all 0xFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why isn't it working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 10:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053310#M40783</guid>
      <dc:creator>mditto1</dc:creator>
      <dc:date>2020-08-03T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing UUID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053311#M40784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;I just add your code into "flashiap" demo under SDK, it can work well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109303iB34F9CDFB18E4C11/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the version of your chip ? You can get it from the masking of chip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how about use the latest SDK v2.8 and latest MCUXpresso IDE v11.2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 02:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053311#M40784</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-08-04T02:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing UUID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053312#M40785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;Thanks, I tried the flashiap1 demo and it works, so I investigated what the demo had that my project was missing.&amp;nbsp; It turned out I needed two things:&lt;/P&gt;&lt;P&gt;Copy the BOARD_BootClockFROHF96M function from the example and call it.&lt;/P&gt;&lt;P&gt;Call FLASH_Init.&lt;/P&gt;&lt;P&gt;Now I can read the UUID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will study the BOARD_BootClockFROHF96M function; I assume it is doing things that really should be done in the IDE Clocks tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 10:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053312#M40785</guid>
      <dc:creator>mditto1</dc:creator>
      <dc:date>2020-08-04T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing UUID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053313#M40786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On further analysis, if I update the ConfigTools Clocks settings to enable the FRO 96M clock, then the MCUXpresso-generated code (clock_config.c) is sufficient and I don't need to copy the BOARD_BootClockFROHF96M function from the example.&amp;nbsp; I also don't seem to need to call FLASH_Init any more, just calling FFR_Init is sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that after I've successfully called FFR_Init and FFR_GetUUID, I can't free/re-use the memory where the flash_config_t object was stored because it continues to be referenced by some sort of interrupt handler, even though I am not calling any FFR or flash functions.&amp;nbsp; The SDK API reference manual mentions a function FFR_Deinit, but this function doesn't exist in the SDK header files.&amp;nbsp; I made the object static/global to get around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working well enough for me now, thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2020 06:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053313#M40786</guid>
      <dc:creator>mditto1</dc:creator>
      <dc:date>2020-08-09T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing UUID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053314#M40787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks for your sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 09:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-UUID/m-p/1053314#M40787</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-08-10T09:07:42Z</dc:date>
    </item>
  </channel>
</rss>

