<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Using RTT and RTT terminal under VS Code</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/85579/using-rtt-and-rtt-terminal-under-vs-code</link><description>Hi, 
 
 When using RTT for debugging on the nRF5340, after every flash i have to press the following button: 
 
 Then every time i get presented with the following dialog: 
 
 Then followed by: 
 
 Where i have to manually find and choose the correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 09 Mar 2022 15:13:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/85579/using-rtt-and-rtt-terminal-under-vs-code" /><item><title>RE: Using RTT and RTT terminal under VS Code</title><link>https://test-devzone.nordicsemi.com/thread/357237?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 15:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb61c3ab-1836-4ff4-a3df-de0a5610e743</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The behavior when connecting to RTT is caused by how the&amp;nbsp;extension gets the device name. In the extension, the device name is retrieved from the device version returned by nrfjprog, which also includes the revision of the chip, e.g. _ENGD, _REV2 etc. Segger does not handle revisions and only use the general device name. This causes inconsistencies between the name provided by the VS Code extension when connecting to RTT and the device name used by Segger. The developers are looking into options on how to solve this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT and RTT terminal under VS Code</title><link>https://test-devzone.nordicsemi.com/thread/357136?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 12:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d4dbb3-bb29-472e-9bf1-ab9e51e80ba5</guid><dc:creator>user92402</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Also, how do we clear the contents of the nRF Terminal if we want to start afresh? I cannot find a clear option anywhere (and under windows the copy/paste does not work from the nRF terminal)[/quote]
&lt;p&gt;This feature was added in the last version of nRF Terminal that was released just yesterday, so if you update the extension and reload VS Code you should be able to&amp;nbsp;use the feature.&amp;nbsp;You can either do it by clicking the clear button next to the RTT or serial port connection:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://test-devzone.nordicsemi.com/resized-image/__size/500x200/__key/communityserver-discussions-components-files/4/pastedimage1646827101699v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Or you can use command palette and write&amp;nbsp;&lt;strong&gt;nRF Terminal: Clear&lt;/strong&gt;.&lt;/p&gt;
[quote user=""]How can i set VS Code/JLink tools to automatically select the part so the RTT will work as soon as i press the button?[/quote]
&lt;p&gt;I have asked the developers if there is a simpler way to do this or if it is possible to add a feature where you can select the core directly in VS Code instead of having to go through the target device settings.&amp;nbsp;I am still waiting for a response to this,&amp;nbsp;and I will update you when I hear back from them.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>