<?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>Reading APPROTECTSTATUS register with J-Link commander</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19823/reading-approtectstatus-register-with-j-link-commander</link><description>Hello to all embedded Jedi Knights! 
 I was wondering, how could I read the CTRL-AP&amp;#39;s APPROTECTSTATUS register (of an nrf52832) using the J-Link commander. 
 I know that I must invoke writeDP to select the CTRL-AP and then use readAP . I am just missing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Feb 2017 15:37:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19823/reading-approtectstatus-register-with-j-link-commander" /><item><title>RE: Reading APPROTECTSTATUS register with J-Link commander</title><link>https://devzone.nordicsemi.com/thread/77100?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da47fe8-15eb-4bad-927c-45272b97baa7</guid><dc:creator>raccoon</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading APPROTECTSTATUS register with J-Link commander</title><link>https://devzone.nordicsemi.com/thread/77099?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 10:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e35b5f3-5f7f-41b1-9fb1-5e3ffe3c35e8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can read it like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SWDSelect                  //Selects SWD Interface
SWDWriteDP 1 0x50000000    //Enable power
SWDWriteDP 2 0x01000000   //Select CTRL-AP Bank 0
SWDReadAP 3 
SWDReadAP 3
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>