<?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 in KW36 in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910515#M6756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are testing on both Freedom KW36 and our own PCB.&lt;/P&gt;&lt;P&gt;ICs on both Freedom and our PCBs are indeed marked as PW36 (provided directly by NXP for a new package version).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until we have a MWK marked IC we will not really have a MAC address in the MAC_LSB register, is that it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2019 08:36:19 GMT</pubDate>
    <dc:creator>no6524</dc:creator>
    <dc:date>2019-08-19T08:36:19Z</dc:date>
    <item>
      <title>MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910511#M6752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently working on a BLE product using a KW36 MCU.&lt;/P&gt;&lt;P&gt;In order to build the advertisement data we want to send, we are trying to get the MAC address of the chip in the RSIM-&amp;gt;MAC_LSB and RSIM-&amp;gt;MAC_MSB registers.&lt;/P&gt;&lt;P&gt;Unfortunately, the two registers return respectively 0xFF and 0xFFFFFFFF when read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason for the MAC address not to be present and / or readable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 11:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910511#M6752</guid>
      <dc:creator>no6524</dc:creator>
      <dc:date>2019-08-12T11:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910512#M6753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that what you might be looking for it's mostly the &lt;STRONG style="color: #993366; "&gt;BDAddress&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information about this, could you please check &lt;A _jive_internal="true" href="https://community.nxp.com/thread/429919" rel="nofollow noopener noreferrer" target="_blank"&gt;this &lt;/A&gt;other post ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will help you in the understanding of the addressing, nonetheless, the function you are looking in the latest stack version and the KW36 would be the following function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;ControllerSetBD_ADDR 
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find this function in the &lt;SPAN style="color: #0000ff;"&gt;ble_controller_task.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 17:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910512#M6753</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-08-12T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910513#M6754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the ControllerSetBD_ADDR, it uses the function BOARD_GetMACAddr.&lt;/P&gt;&lt;P&gt;This function reads the RSIM-&amp;gt;MAC_LSB and RSIM-&amp;gt;MAC_MSB registers I have talked about in my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing ControllerSetBD_ADDR on a Freedom KW36 board, I see that the function also reads 0xFF from the RSIM registers.&lt;/P&gt;&lt;P&gt;The rest of the function then reads the MCU UID, uses the lower part of this ID, computes an SHA of the UID and uses that as MAC address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get MCUUID and create a SHA256 output */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_GetMCUUid(uid, &amp;amp;len);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHA256_Hash(uid, len, sha256Output);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLib_MemCpy(gHardwareParameters.bluetooth_address, sha256Output, mBD_ADDR_RandPartSize_c);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand why the MAC address registers are full or 0xFF. From my understanding, NXP garantees that a unique MAC address for all its KW series MCU are stored in these registers, as explaned in AN12272 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;NXP's Kinetis wireless microcontroller series (KW) include a unique 40-bit MAC address factory programmedwhich can be used to form a global unique address for BLE and IEEE 802.15.4 based wireless protocols. Itisincluded in KW40Z/30Z/20Z, KW41Z/31Z/21Z, KW35A/36A, KW35Z/36Z and K32W0x microcontrollers.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910513#M6754</guid>
      <dc:creator>no6524</dc:creator>
      <dc:date>2019-08-13T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910514#M6755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you testing this in the freedom board? Or is it in your custom board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working in the freedom board it is most likely the marking of your chip starts with a P, could you please help me confirm if that it's the case? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is, you will&amp;nbsp; need to have the IC with the marking starting with an M in order to have a different MAC address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910514#M6755</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-08-14T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910515#M6756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are testing on both Freedom KW36 and our own PCB.&lt;/P&gt;&lt;P&gt;ICs on both Freedom and our PCBs are indeed marked as PW36 (provided directly by NXP for a new package version).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until we have a MWK marked IC we will not really have a MAC address in the MAC_LSB register, is that it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910515#M6756</guid>
      <dc:creator>no6524</dc:creator>
      <dc:date>2019-08-19T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910516#M6757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes,&amp;nbsp; that it's correct. Just to confirm , when you bought the MKW36 chip, was it marked with the "P"? Was it a sample ? Do you have only one chip with that marking or is your complete badge marked like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 14:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910516#M6757</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-08-19T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: MAC address in KW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910517#M6758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a couple of MKW36 (marked 'P') that are indeed samples from NXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are still in development phase and have not yet bought the batch that we will use for our series of products. These should then be 'M' maked and contain a MAC address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MAC-address-in-KW36/m-p/910517#M6758</guid>
      <dc:creator>no6524</dc:creator>
      <dc:date>2019-08-19T15:18:17Z</dc:date>
    </item>
  </channel>
</rss>

