<?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>Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98120/starting-a-debug-session-from-vscode-extension-always-erases-and-flashes-the-target</link><description>Using VSCode and the nRF Connect VSCode extension, each time a debug session is started the target is erased and programmed, regardless of whether the code was changed. 
 This really slows down the development time. 
 The extension should really check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Apr 2025 05:45:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98120/starting-a-debug-session-from-vscode-extension-always-erases-and-flashes-the-target" /><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/532246?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 05:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62118b78-2094-4a2d-9e0b-22eb383d157a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Raoul is a prior Nordic employee, so that is the Nordic response on this ticket. If you have a related question, please create a new ticket as this is rather old at this point.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/532192?ContentTypeID=1</link><pubDate>Sun, 20 Apr 2025 18:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f003914-7a9f-458c-bad5-dbf37f4845cd</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Has Nordic commented on this? I don&amp;#39;t see any responses from them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/419506?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 21:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb41219-cc81-4f91-8b97-35a8dfa0a0e4</guid><dc:creator>wallyb</dc:creator><description>&lt;p&gt;thanks for the tip Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/419079?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 14:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd12585f-72e0-4c3c-a313-cdc28b5a4925</guid><dc:creator>SidPrice</dc:creator><description>&lt;p&gt;This is a poor work-around. The right way to do it is to check if the firmware has changed and ONLY erase//flash when it has. This is the expected behavior for such a tool.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/raoul"&gt;Raoul&lt;/a&gt;&amp;nbsp;Thank you for the suggestions.&lt;/p&gt;
&lt;p&gt;Sid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/419077?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 14:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0689957-a213-4136-9efb-adca9617c812</guid><dc:creator>Anthony W</dc:creator><description>&lt;p&gt;This is definitely preferable to the default behavior, thank you for pointing this out.&lt;/p&gt;
&lt;p&gt;It&amp;nbsp;might still be good to have a mode that would reflash if there was a binary mismatch to avoid debugging with incorrect symbols if you forgot to reflash manually. But this definitely solves the bigger issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/419073?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 13:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8117e6-7e7d-44fb-ad9f-a1baa9e08d09</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi everyone!&lt;/p&gt;
&lt;p&gt;There are two options for this:&lt;br /&gt; &lt;br /&gt;- Create a custom debug configuration, and set the flash property to false. See docs here: &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/connect/advanced_features.html#custom-launch-and-debug-configurations"&gt;https://nrfconnect.github.io/vscode-nrf-connect/connect/advanced_features.html#custom-launch-and-debug-configurations&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;- Set &lt;code&gt;nrf-connect.debugging.flash&lt;/code&gt; to false in your VS Code settings&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/417534?ContentTypeID=1</link><pubDate>Sun, 26 Mar 2023 01:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b7f57b-ad53-4f9c-8ebe-dc35511ff15e</guid><dc:creator>wallyb</dc:creator><description>&lt;p&gt;I agree. &amp;nbsp;would be a big help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a debug session from VSCode extension always erases and flashes the target</title><link>https://devzone.nordicsemi.com/thread/417521?ContentTypeID=1</link><pubDate>Sat, 25 Mar 2023 02:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11013e5-5d67-4939-a3cf-7b0e93a51d04</guid><dc:creator>Anthony W</dc:creator><description>&lt;p&gt;Agreed, it should check first like Ozone. For large applications especially the delay is not insignificant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>