<?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>Debugging with nRF52810 with OpenOCD and STLinkV2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53905/debugging-with-nrf52810-with-openocd-and-stlinkv2</link><description>I&amp;#39;ve been trying to get debugging working with the STLinkV2. I&amp;#39;m not able to step into code whatsoever, when I pause execution it appears t PC is at: 
 
 Info : halted: PC: 0xfffffffe 
 
 I don&amp;#39;t believe the code is executing correctly because this program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 12:04:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53905/debugging-with-nrf52810-with-openocd-and-stlinkv2" /><item><title>RE: Debugging with nRF52810 with OpenOCD and STLinkV2</title><link>https://devzone.nordicsemi.com/thread/218190?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 12:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b974cf84-563c-4125-8512-067c5376ec63</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can try to help you with this, but&amp;nbsp;please note&amp;nbsp;that we don&amp;#39;t have official support for openOCD so we don&amp;#39;t have as much experience with it as we do with j-link.&lt;/p&gt;
&lt;p&gt;The register values are wrong, but I&amp;#39;m not sure if&amp;nbsp;it&amp;#39;s because of&amp;nbsp;&amp;nbsp;a FW issue are an issue with the Debugger configuration. To narrow it down I suggest to try loading one of the pre-compiled hex files from the SDK and see if you get the same register readouts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a pre-compiled version of our blinky example (\examples\peripheral\blinky\hex) which you can try:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-fa0d2fd64b8541f28b488b7288f411b5/blinky_5F00_pca10040e.hex"&gt;devzone.nordicsemi.com/.../blinky_5F00_pca10040e.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Make sure to use the &amp;#39;pca10040e&amp;#39; configuration when testing SDK examples. These have the correct linker settings to run on nRF52810. See&amp;nbsp;&lt;a title="Developing for nRF52810" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf52810_user_guide.html?cp=5_1_5_0"&gt;Developing for nRF52810&lt;/a&gt;&amp;nbsp;for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>