<?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>Trying to write PC(Program Counter ) &amp;amp; SP(Stack Pointer) using SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53571/trying-to-write-pc-program-counter-sp-stack-pointer-using-swd</link><description>Hi, 
 
 I have developed an SWD working code which read-write the Flash Memory and RAM which is working very good. 
 
 Now I have a problem in I need to write start address in PC via SWD. 
 
 I need to know what is the address of Registers for Nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 17:30:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53571/trying-to-write-pc-program-counter-sp-stack-pointer-using-swd" /><item><title>RE: Trying to write PC(Program Counter ) &amp; SP(Stack Pointer) using SWD</title><link>https://devzone.nordicsemi.com/thread/216447?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 17:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77498e78-bb3e-45d2-99ed-a5e75c26e2ef</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What program are you using for this?&lt;/p&gt;
&lt;p&gt;You can do this with &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_nrfjprogexe_reference.html?cp=6_1_3_0"&gt;nrfjprog&lt;/a&gt;&amp;nbsp;--readregs and&amp;nbsp;&lt;span&gt;--run [--pc &amp;lt;pc_addr&amp;gt; --sp &amp;lt;sp_addr&amp;gt;] commands. Can also be done&amp;nbsp;in python, using &lt;a href="https://infocenter.nordicsemi.com/topic/ug_pynrfjprog/UG/pynrfjprog/pynrfjprog_lpage.html?cp=6_2"&gt;pynrfjprog&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>