<?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>LPCXpresso IDE中的主题 Re: Read Serial Number</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542398#M7828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Mar 31 07:42:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess that it is a Globally Unique Id:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://en.wikipedia.org/wiki/Globally_unique_identifier&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you want a unique number, your are going to need to use all 128 bits...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:16:00 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:16:00Z</dc:date>
    <item>
      <title>Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542384#M7814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briand on Wed Oct 20 15:01:42 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a register or memory location that can be read to get the processor serial number?&amp;nbsp; I see this mentioned only from the external ISP interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternately, what's the best way to generate unique values in code for USB serial numbers?&amp;nbsp; I don't want every device to have the same value or I won't be able to tell multiple devices in the same system apart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542384#M7814</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542385#M7815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Wed Oct 20 15:25:10 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll assume your are referring to the LPC1300 M3 parts. The UM has this information. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Search for the Device ID register, address 0x4004 83F4. IAP command can also be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The parts also have unique ID accessible via ISP and IAP calls.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542385#M7815</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542386#M7816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briand on Wed Oct 20 15:53:45 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Right, for some reason I was thinking of IAP as an external interface like ISP.&amp;nbsp; It still seems clunky rather than making the Device Identification Number in directly accessible registers, but it'll do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542386#M7816</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542387#M7817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Oct 20 16:04:15 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Uuuuups, too late :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#642880][SIZE=2][COLOR=#642880]printf[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Serial: %08X\n\r"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],LPC_SYSCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DEVICE_ID[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's part of my LPC11C14 code, they also have this ID.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542387#M7817</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542388#M7818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briand on Wed Oct 20 16:30:14 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Much better.&amp;nbsp; No wonder my greps for "serial" never hit on anything but uart code.&amp;nbsp; Thanks Zero.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542388#M7818</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542389#M7819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Wed Oct 20 23:20:52 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That's device ID (to differentiate between ie. lpc1343 and lpc1342) and NOT SERIAL ID.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542389#M7819</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542390#M7820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 21 02:42:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Uups, should read my own code more careful :rolleyes:. It's all there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UM LPC11xx:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;[B][FONT=Arial][COLOR=#005042][FONT=Arial][COLOR=#005042]20.7.9 ReadUID (IAP)[/COLOR][/FONT][/COLOR][/FONT][/B]&lt;BR /&gt;[FONT=Arial][COLOR=#005042][FONT=Arial][COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B][B][FONT=Arial][SIZE=1][COLOR=#005042][FONT=Arial][SIZE=1][COLOR=#005042][FONT=Arial][SIZE=1][COLOR=#005042]Table 295. IAP ReadUID command[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/B][/B][/SIZE][/FONT][/SIZE][/FONT][/COLOR][/FONT][/COLOR][/FONT]&lt;BR /&gt; &lt;BR /&gt;[FONT=Arial][COLOR=#005042][FONT=Arial][COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Input[/B][/SIZE][/FONT][/SIZE][/FONT][/COLOR]&lt;BR /&gt;[COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Command code: 5810[/B][/SIZE][/FONT][/SIZE][/FONT][/COLOR]&lt;BR /&gt; &lt;BR /&gt;[LEFT][COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Return Code CMD_SUCCESS[/B][/SIZE][/FONT][/SIZE][/FONT][/COLOR][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][COLOR=#005042][SIZE=1][FONT=Arial][SIZE=1][FONT=Arial][B]Result[/B][/FONT][/SIZE][/FONT][/SIZE][/COLOR]&lt;BR /&gt;[COLOR=#005042][B][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]Result0: [/SIZE][/FONT][/SIZE][/FONT][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]The first 32-bit word (at the lowest address).[/SIZE][/FONT][/SIZE][/FONT][/B][/COLOR]&lt;BR /&gt;[COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Result1: [/B][/SIZE][/FONT][/SIZE][/FONT][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]The second 32-bit word.[/SIZE][/FONT][/SIZE][/FONT][/COLOR]&lt;BR /&gt;[COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Result2: [/B][/SIZE][/FONT][/SIZE][/FONT][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]The third 32-bit word.[/SIZE][/FONT][/SIZE][/FONT][/COLOR]&lt;BR /&gt;[COLOR=#005042][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1][B]Result3: [/B][/SIZE][/FONT][/SIZE][/FONT][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]The fourth 32-bit word.[/SIZE][/FONT][/SIZE][/FONT][/COLOR][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][COLOR=#005042][SIZE=1][FONT=Arial][SIZE=1][FONT=Arial][B]Description This command is used to read the unique ID.[/B][/FONT][/SIZE][/FONT][/SIZE][/COLOR][/LEFT]&lt;BR /&gt;[/FONT][/COLOR][/FONT]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial][SIZE=2]So IAP is used, define something like:[/SIZE][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
[FONT=Arial][SIZE=2][COLOR=#7f0055][COLOR=#7f0055][COLOR=#3f7f5f][COLOR=#3f7f5f][B]//IAP[/B][/COLOR][/COLOR][/COLOR][/COLOR][/SIZE][/FONT]
[COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][COLOR=#7f0055][COLOR=#7f0055][B]#define [/B][/COLOR][/COLOR][COLOR=#000000]IAP_ADDRESS 0x1FFF1FF1[/COLOR][/SIZE][/FONT][/COLOR][/COLOR]
[LEFT][COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][COLOR=#7f0055][COLOR=#7f0055][B]unsigned [/B][/COLOR][/COLOR][COLOR=#000000]param_table[5];[/COLOR][/SIZE][/FONT][/COLOR][/COLOR]
[COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][COLOR=#7f0055][COLOR=#7f0055][B]unsigned [/B][/COLOR][/COLOR][COLOR=#000000]result_table[5];[/COLOR][/SIZE][/FONT][/COLOR][/COLOR][/LEFT]
 
[LEFT][COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][COLOR=#7f0055][COLOR=#7f0055][B]void [/B][/COLOR][/COLOR][COLOR=#000000][B]iap_entry[/B]([/COLOR][COLOR=#7f0055][COLOR=#7f0055][B]unsigned[/B][/COLOR][/COLOR][COLOR=#000000] param_tab[],[/COLOR][COLOR=#7f0055][COLOR=#7f0055][B]unsigned[/B][/COLOR][/COLOR][COLOR=#000000] result_tab[])[/COLOR][/SIZE][/FONT][/COLOR][/COLOR]
[COLOR=#7f0055][COLOR=#7f0055][B][FONT=Arial][SIZE=2]{[/SIZE][/FONT][/B][/COLOR][/COLOR]
[COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][B][COLOR=#7f0055][COLOR=#7f0055]void[/COLOR][/COLOR] (*iap)([COLOR=#7f0055][COLOR=#7f0055]unsigned[/COLOR][/COLOR] [],[COLOR=#7f0055][COLOR=#7f0055]unsigned[/COLOR][/COLOR][/B][B] []);[/B][/SIZE][/FONT][/COLOR][/COLOR][/LEFT]
[COLOR=#7f0055][COLOR=#7f0055][FONT=Arial][SIZE=2][B]iap = ([/B][B][COLOR=#7f0055][COLOR=#7f0055]void[/COLOR][/COLOR] (*)([COLOR=#7f0055][COLOR=#7f0055]unsigned[/COLOR][/COLOR] [],[COLOR=#7f0055][COLOR=#7f0055]unsigned[/COLOR][/COLOR][/B][B] []))IAP_ADDRESS;[/B][/SIZE][/FONT]
[B][FONT=Arial][SIZE=2]iap(param_tab,result_tab);[/SIZE][/FONT][/B]
[B][FONT=Arial][SIZE=2]}[/SIZE][/FONT][/B]
[/COLOR][/COLOR]&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial][SIZE=2]and use[/SIZE][/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
[FONT=Arial][SIZE=2][FONT=Arial][SIZE=2][B][COLOR=#7f0055]void[/COLOR][/B] [B]read_serial_number[/B]([B][COLOR=#7f0055][COLOR=#7f0055]void[/COLOR][/COLOR][/B]) [COLOR=#3f7f5f][COLOR=#3f7f5f]//read serial via IAP[/COLOR][/COLOR][/SIZE][/FONT]
[COLOR=#3f7f5f]{[/COLOR]
[/SIZE][/FONT][FONT=Arial][SIZE=2]param_table[0] = 58; [COLOR=#3f7f5f][COLOR=#3f7f5f]//IAP command[/COLOR][/COLOR][/SIZE][/FONT]
[FONT=Arial][SIZE=2]iap_entry(param_table,result_table);[/SIZE][/FONT]
[FONT=Arial][SIZE=2][B][COLOR=#7f0055][COLOR=#7f0055]if[/COLOR][/COLOR][/B](result_table[0] ==0) [COLOR=#3f7f5f][COLOR=#3f7f5f]//return: CODE SUCCESS[/COLOR][/COLOR][/SIZE][/FONT]
[FONT=Arial][SIZE=2]{[/SIZE][/FONT]
[LEFT][FONT=Arial][SIZE=2][B][COLOR=#642880][COLOR=#642880]printf[/COLOR][/COLOR][/B]([COLOR=#2a00ff][COLOR=#2a00ff]"Serial Number: %08X %08X %08X %08X\n\r"[/COLOR][/COLOR],result_table[1],result_table[2],result_table[3],result_table[4]);[/SIZE][/FONT][/LEFT]
[FONT=Arial][SIZE=2]}[/SIZE][/FONT]
[B][COLOR=#7f0055][FONT=Arial][SIZE=2][COLOR=#7f0055]else[/COLOR][/SIZE][/FONT][/COLOR][/B]
 
 

[LEFT][FONT=Arial][SIZE=2]{[/SIZE][/FONT]

[LEFT][FONT=Arial][SIZE=2][B][COLOR=#642880][COLOR=#642880]printf[/COLOR][/COLOR][/B]([COLOR=#2a00ff][COLOR=#2a00ff]"Sorry, Serial Number Read Error\n\r"[/COLOR][/COLOR]);[/SIZE][/FONT]
[LEFT][FONT=Arial][SIZE=2]}[/SIZE][/FONT]
[FONT=Arial][SIZE=2]}[/SIZE][/FONT][/LEFT]
[/LEFT]
[/LEFT]

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;[LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LEFT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542390#M7820</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542391#M7821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cyberstudio on Mon Nov 01 12:26:55 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So, every LPC111x has a serial number that is universally unique? Neat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542391#M7821</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542392#M7822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Mon Nov 01 16:06:10 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, the newer LPC parts have this Unique ID feature, this includes the LPC1100, LPC1700 and LPC1300 family of devices.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542392#M7822</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542393#M7823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcu_programmer on Fri Nov 05 08:58:17 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative is to reserve bytes in the linker script, eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.text :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEP(*(.isr_vector))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. = 0x00000200;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEP(*(.serial_number))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. = 0x00000204;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEP(*(.date_of_manufacture_year))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. = 0x00000206;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEP(*(.date_of_manufacture_month))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. = 0x00000207;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEP(*(.date_of_manufacture_day))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*(.text*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*(.rodata*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;} &amp;gt; MFlash32&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the C code you write,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".serial_number"))) const uint32_t SERIAL_NUMBER&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".date_of_manufacture_year"))) const unsigned short DATE_OF_MANUFACTURE_YEAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".date_of_manufacture_month"))) const unsigned char DATE_OF_MANUFACTURE_MONTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".date_of_manufacture_day"))) const unsigned char DATE_OF_MANUFACTURE_DAY&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you write a program that programs those values in the .bin or .hex file that you use to program the device&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tested this, would anyone confirm the correctness?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542393#M7823</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542394#M7824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pivic on Thu Mar 31 04:43:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a unique number of 32bits stored in the device permanently. I think that the "ReadUID (IAP)" is the perfect thing to use for my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is because I'm only using 32bits out of 128bits I would like to know if this number has been generated during manufacture process by increment starting from 0. Or has it been randomly generated over the 128bits available?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After writing my post I'm pretty sure that the answer would be a random number over the 128bits but I still would like confirmation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542394#M7824</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542395#M7825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by OXO on Thu Mar 31 04:50:16 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pivic&lt;/STRONG&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I need a unique number of 32bits stored in the device permanently. I think that the "ReadUID (IAP)" is the perfect thing to use for my application.&lt;BR /&gt;&lt;BR /&gt;My problem is because I'm only using 32bits out of 128bits I would like to know if this number has been generated during manufacture process by increment starting from 0. Or has it been randomly generated over the 128bits available?&lt;BR /&gt;&lt;BR /&gt;After writing my post I'm pretty sure that the answer would be a random number over the 128bits but I still would like confirmation.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As it is guaranteed to be unique, I would not expect it to be randomly assigned. That would be too much trouble for the fab..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542395#M7825</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542396#M7826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pivic on Thu Mar 31 06:28:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that but if it is a number that increments it would mean that the first 4,294,967,296 produced chips, the 2nd,3rd and fourth 32bits results would stay at 0. Ok it is unique but it seems weird !?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542396#M7826</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542397#M7827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by OXO on Thu Mar 31 06:51:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pivic&lt;/STRONG&gt;&lt;BR /&gt;I understand that but if it is a number that increments it would mean that the first 4,294,967,296 produced chips, the 2nd,3rd and fourth 32bits results would stay at 0. Ok it is unique but it seems weird !?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe that's the reason we have to use the ReadUID function. It could be that it's simply an incrementing value in the chips, but ReadUID scrambles the bits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, that would seem to me to be quite pointless..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542397#M7827</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542398#M7828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Mar 31 07:42:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess that it is a Globally Unique Id:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://en.wikipedia.org/wiki/Globally_unique_identifier&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you want a unique number, your are going to need to use all 128 bits...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542398#M7828</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542399#M7829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pivic on Thu Mar 31 08:13:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really need a unique unique number. 1 over a million would be OK for the application, but not more. So I'm wondering if I use just the first 32bits of the unique ID it would be safe for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be your guess/idea? How can I get a non-guess answer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542399#M7829</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542400#M7830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Mar 31 08:30:10 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;A GUID is only unique over all 128 bits. You cannot make any assumptions about that number is made up. So choosing a 32-bit quantity out of that is not going to be unique. It is up to you to decide on the risks of not being unique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm no expert, but you might be able to perform some function on the full 128-bits that will give a reasonable uniqueness in 32-bits. Suggest you do some googling...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542400#M7830</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542401#M7831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Thu Mar 31 09:33:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a strong reason why you can't use the full 128 bits?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's already in the device and therefore you won't have to create your own ID.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542401#M7831</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542402#M7832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Thu Mar 31 17:09:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pivic&lt;/STRONG&gt;&lt;BR /&gt;How can I get a non-guess answer?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose you could ask about this at NXP tech support. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.nxp.com/techsupport/index.php&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542402#M7832</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read Serial Number</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542403#M7833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pivic on Fri Apr 01 03:24:08 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok thanks for the advice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason for not using the 128bits is because I will send it on RF at 2.4GHz as part of a small message to identify where the message comes from. Using 128bits is largely overkill and take more time to send and I would like to use only one General Purpose Register to save it when I sleep (speed up the system at wake up).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Read-Serial-Number/m-p/542403#M7833</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:16:03Z</dc:date>
    </item>
  </channel>
</rss>

