<?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>After VS Code downloads the program, it will not automatically reset and run the program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113876/after-vs-code-downloads-the-program-it-will-not-automatically-reset-and-run-the-program</link><description>Restarting the circuit will run the program, and not restarting will not run the program. 
 
 I used SES to develop before, and the program would run automatically after downloading. I want to know what else needs to be configured in VS Code so that the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2024 07:43:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113876/after-vs-code-downloads-the-program-it-will-not-automatically-reset-and-run-the-program" /><item><title>RE: After VS Code downloads the program, it will not automatically reset and run the program</title><link>https://devzone.nordicsemi.com/thread/497943?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 07:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7bfd910-2a21-4ec2-a2ab-0464ea1a77f8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;VS Code will perform a pin reset to make the program run after flashing. However, the pin reset will only work if you&amp;#39;re using a board that routes the pin reset line to the debug connector. If you&amp;#39;re using a custom or third-party board that does not do this, you will need to perform a soft reset instead.&lt;/p&gt;
&lt;p&gt;To make VS code issue a soft reset, you can either create a custom SDK board or enable the &amp;#39;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/settings.html"&gt;softreset&lt;/a&gt;&amp;#39; flag for your project.&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;Example of a board that uses softreset (issued through debug interface) as the default reset strategy instead of pinreset:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/b79e7db21bf7098680e11f10e2bab759766c4dd6/boards/arm/nrf52840gmouse_nrf52840/board.cmake#L7"&gt;https://github.com/nrfconnect/sdk-nrf/blob/b79e7db21bf7098680e11f10e2bab759766c4dd6/boards/arm/nrf52840gmouse_nrf52840/board.cmake#L7&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>