<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to obtain the full MAC address in nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13734/how-to-obtain-the-full-mac-address-in-nrfjprog</link><description>用dos命令执行命令： nrfjprog --memrd 0x100000a4 --n 8
得到结果：0x100000A4: E40908DD 4466D3DD |......fD| 
 而正确的MAC地址应该是：D3DDE40908DD 
 问题来了：要如何修改这个命令能一次性只得到“D3DDE40908DD” 
 Google translated 
 With dos command Run : nrfjprog --memrd 0x100000a4 --n 8 
get results</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Aug 2018 12:43:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13734/how-to-obtain-the-full-mac-address-in-nrfjprog" /><item><title>RE: How to obtain the full MAC address in nrfjprog</title><link>https://devzone.nordicsemi.com/thread/143569?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 12:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49fec408-daa5-4efa-8375-8542c01e1646</guid><dc:creator>liuxiao</dc:creator><description>&lt;p&gt;Did you resolve this problem？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to obtain the full MAC address in nrfjprog</title><link>https://devzone.nordicsemi.com/thread/52469?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 08:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9bd365b-6113-4d1c-beb1-353ba8e4a6fc</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;If you want something you can use out of the box, have a look at the &lt;a href="https://github.com/adafruit/Adafruit_Adalink"&gt;Adafruit_Adalink project&lt;/a&gt; on Github. This is a cross-platform project written in Python. It can be used with the J-Link Tools (Jlink probe) or OpenOCD (ST-Llink probe).&lt;/p&gt;
&lt;p&gt;You can use this command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;adalink nrf51822 --programmer jlink --info
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And you will get the something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Hardware ID : QFACA10 (32KB)
SD Version  : S110 8.0.0
Device Addr : C1:99:FC:D9:8A:D1
Device ID   : ****************
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note: nrf52 is not supported at this time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to obtain the full MAC address in nrfjprog</title><link>https://devzone.nordicsemi.com/thread/52467?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 07:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49fd15f8-875a-47b1-88ca-225a6600bb6d</guid><dc:creator>ehitil</dc:creator><description>&lt;p&gt;I want to use the DOS command line for MAC address。&lt;/p&gt;
&lt;p&gt;@echo off
for /f &amp;quot;delims=&amp;quot; %%i in (&amp;#39;nrfjprog --memrd 0x100000a4 --n 8&amp;#39;) do (echo %%i) &amp;gt;&amp;gt; d:\mac.txt
pause&lt;/p&gt;
&lt;p&gt;Use notepad save as &amp;quot;getmac.bat&amp;quot; and run the bat file.
but,a lot of MAC address is wrong&lt;/p&gt;
&lt;p&gt;see img :&lt;a href="http://thirdpartnar.cn/images/mac.jpg"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to obtain the full MAC address in nrfjprog</title><link>https://devzone.nordicsemi.com/thread/52468?ContentTypeID=1</link><pubDate>Tue, 10 May 2016 07:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6c38eb-11be-4751-bce6-dda3d12cdfed</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you have a very good explanation given &lt;a href="https://devzone.nordicsemi.com/question/6566/how-to-get-6-byte-mac-address-at-nrf51822/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to get device address, then you should maybe write a script (in python or something else) to strip down unnecessary things in the output or use the nrfjprog dll to write your own commands. Sorry to say but it does not seem that using nrfjprog itself it is not directly possible to get clean 6 byte MAC address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>