<?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: Mac address on FRDM-K64F in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326642#M10417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're just using a Microship EPROM with an embedded MAC, it's in the 24AAxxx family I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 22:06:18 GMT</pubDate>
    <dc:creator>ironsean</dc:creator>
    <dc:date>2015-04-06T22:06:18Z</dc:date>
    <item>
      <title>Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326634#M10409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, is there a Mac address assigned to the FRDM-K64F Freedom platform boards? I believe some skimming at mbed led me to believe there was. If so, is there any documentation on where and how to programmatically read and use it using MQX 4.1.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326634#M10409</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2014-12-04T21:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326635#M10410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the MAC address is defined in frdmk64f.h which is located in {MQX}\mqx\source\bsp\frdmk64f\.&lt;/P&gt;&lt;P&gt;the MAC address is defined as {0x00,0x00,0x5E, 0, 0, 0} as the base address and then you can change the MAC address in file init_enet.c by re-define value of parameter "value".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 03:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326635#M10410</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-12-05T03:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326636#M10411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there is no included/assigned official MAC address currently on the boards? And therefore adding a small EEPROM chip or something similar is the best way to get a valid MAC address for deployment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 19:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326636#M10411</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2014-12-08T19:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326637#M10412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean Mackay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is NO included/assigned offical MAC address on the boards, you have to buy MAC address from OUI for your product.&lt;/P&gt;&lt;P&gt;The MAC address {0x00, 0x00, 0x5E, 0, 0, 0} can be used for development!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 03:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326637#M10412</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-12-09T03:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326638#M10413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know, Sean, I was under the same impression.&amp;nbsp; I was using a MAC/EEPROM chip from Microchip to get a MAC address for our boards before, but then got rid of my definition for mbed_mac_address and just used mbed's, which seemed to work fine.&amp;nbsp; :smileyhappy:&amp;nbsp; I don't know how they did it, but I'll dig into it a little.&amp;nbsp; It would be nice not to have to add another IC just to get a MAC if we can generate something unique with the parts already available on the board.&amp;nbsp; At least in our case, the device won't be hooked up to the internet and is limited to a single PC connection only.&amp;nbsp; I'll post up whatever I happen to find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 21:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326638#M10413</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-31T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326639#M10414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean, for deployment of a "real" product that really needs to have a unique MAC address, you can integrate a Microchip 24AA02E64 (or E48) -- it's very simple, but will cost you a little extra money and space on your PCB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how mbed does it -- they query a memory region in the K64 that is marked "System integration module (SIM)".&amp;nbsp; I don't know what this module does, but I'm going to look it up shortly.&amp;nbsp; Anyhow, here's their code for getting a "semi-unique" MAC address.&amp;nbsp; I think this is the approach I will be using in my device since it's not IoT or anything like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;void&lt;/SPAN&gt; mbed_mac_address(&lt;SPAN style="color: blue;"&gt;char&lt;/SPAN&gt; *mac)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&amp;nbsp; // Fetch word 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint32_t word0 = *(uint32_t *)0x40048060;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&amp;nbsp; // Fetch word 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&amp;nbsp; // we only want bottom 16 bits of word1 (MAC bits 32-47)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&amp;nbsp; // and bit 1 forced to 1, bit 0 forced to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&amp;nbsp; // Locally administered MAC, reduced conflicts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&lt;SPAN&gt;&amp;nbsp; // &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://en.wikipedia.org/wiki/MAC_address" target="_blank"&gt;http://en.wikipedia.org/wiki/MAC_address&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint32_t word1 = *(uint32_t *)0x4004805C;&lt;/P&gt;&lt;P&gt;&amp;nbsp; word1 |= 0x00000002;&lt;/P&gt;&lt;P&gt;&amp;nbsp; word1 &amp;amp;= 0x0000FFFE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[0] = (word1 &amp;amp; 0x000000ff);&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[1] = (word1 &amp;amp; 0x0000ff00) &amp;gt;&amp;gt; 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[2] = (word0 &amp;amp; 0xff000000) &amp;gt;&amp;gt; 24;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[3] = (word0 &amp;amp; 0x00ff0000) &amp;gt;&amp;gt; 16;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[4] = (word0 &amp;amp; 0x0000ff00) &amp;gt;&amp;gt; 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mac[5] = (word0 &amp;amp; 0x000000ff);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45666iF2A26CAC91AB1906/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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/46801iBF8F9D025A5EDC7B/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;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 22:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326639#M10414</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-31T22:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326640#M10415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave, thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this manual: &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/ref_manual/SIMRM.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/ref_manual/SIMRM.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/ref_manual/SIMRM.pdf&lt;/A&gt;&lt;BR /&gt;"The SIM supplies a clock signal to the rest of the microcontroller, provides system protection features, and manages the external bus. In addition, the SIM provides on-chip chip-select signals and (if the pins are not being used for their alternate functions) I/O ports."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And based on the information there it looks like the SIM contains some unique identification registers which mbed is using as a basis for generating a MAC Address, which they set to Locally Administered to prevent it conflicting with proper assigned MAC addresses in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's very interesting to know that's there, and how mbed determines it's MAC address. This also answers my question about whether it is valid or not. For development this would be fine, but we actually are developing IoT devices for the field so an external chip with a MAC will be necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326640#M10415</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-04-01T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326641#M10416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sean, thanks for that additional information.&amp;nbsp; Just out of curiosity, what chip are you going to use for the MAC assignment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326641#M10416</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-01T20:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326642#M10417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're just using a Microship EPROM with an embedded MAC, it's in the 24AAxxx family I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 22:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326642#M10417</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-04-06T22:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mac address on FRDM-K64F</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326643#M10418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks.&amp;nbsp; We're using the same family.&amp;nbsp; I was just curious to know what else might be out there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mac-address-on-FRDM-K64F/m-p/326643#M10418</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-07T13:07:40Z</dc:date>
    </item>
  </channel>
</rss>

