<?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>Device get stuck when trying to read MAC address via SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42050/device-get-stuck-when-trying-to-read-mac-address-via-swd</link><description>Hi, 
 I am using the command line tool nrfjprog to read the device MAC address using the following command: 
 nrfjprog --memrd 0x100000A4 --w 8 --n 6 
 I am connected using Segger J-link base. 
 My problem is that after running this command the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Jan 2019 11:32:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42050/device-get-stuck-when-trying-to-read-mac-address-via-swd" /><item><title>RE: Device get stuck when trying to read MAC address via SWD</title><link>https://devzone.nordicsemi.com/thread/163407?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 11:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddbea6d6-bab8-4d4d-bca3-2e99e38a619d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the expected behavior.&lt;/p&gt;
&lt;p&gt;nrfjprog will halt the CPU when reading the flash. If your application uses the SoftDevice, you will assert if you call &amp;quot;nrfjprog --run&amp;quot; afterwards, as the CPU is only halted, not the peripherals, which will cause a timing assertion in the softdevice. Due to this, calling nrfjprog --reset makes sense after reading out the flash.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are interested in seeing the sequence nrfjprog uses, add &amp;quot;--log&amp;quot; and then have a look at the generated log.log file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>