<?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>I want to use OpenOCD in the environment of NCS2.x.x and VSCode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91545/i-want-to-use-openocd-in-the-environment-of-ncs2-x-x-and-vscode</link><description>Until 1.9.0 of NCS, SES was recommended, so it was possible to use OpenOCD from there. With NCS 2.x.x, VCS is recommended, so it&amp;#39;s good to use it, but I want to continue using the OpenOCD environment, but I can&amp;#39;t. 
 ncs\v2.0.2\zephyr\boards\arm\ubx_evkninab1_nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Sep 2022 07:12:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91545/i-want-to-use-openocd-in-the-environment-of-ncs2-x-x-and-vscode" /><item><title>RE: I want to use OpenOCD in the environment of NCS2.x.x and VSCode.</title><link>https://devzone.nordicsemi.com/thread/384494?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 07:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59776579-972d-42c5-9cfe-67707307ea6a</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;We do not support openocd with NCS, but zephyr community does, as per this documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.1.0/develop/flash_debug/probes.html#flash-and-debug-with-st-link"&gt;https://docs.zephyrproject.org/3.1.0/develop/flash_debug/probes.html#flash-and-debug-with-st-link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As per the above link, it is stated that the default choice is openocd runner, and to override you set this in cmake:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(BOARD_FLASH_RUNNER jlink)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you remove the define, it should revert to using openocd.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still run into issues using openocd/pyocd, I would recommend contacting the zephyr community.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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>