<?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>Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110490/troubleshooting-rtt-logging-issues-with-nrf52840dk-in-vscode</link><description>Hi all , I &amp;#39;m using NRF52840DK and I want to use RTT to print logging , but I configured a lot of different configs and I can &amp;#39;t print any information in RTT after all . 
 
 I am using printk to print self string and using 
 b 
 ut as it is not working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2024 12:48:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110490/troubleshooting-rtt-logging-issues-with-nrf52840dk-in-vscode" /><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480211?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 12:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3bd8be-d8a4-41b9-9879-a82529b71324</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Glad to hear it,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will just set the case to solved if there are no more questions&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480202?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 12:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f8d7e4-b36f-43d9-aa01-76c80ca0b899</guid><dc:creator>oliver0804</dc:creator><description>&lt;p&gt;It worked for me. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_2A621657_-2024_2D00_04_2D00_23-_5A660A4E_8.16.47.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480186?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 11:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a51cd3-96d7-4260-8204-ade5ebf6497d</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I added the following to your project and it worked for my&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_UART&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480132?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 08:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e6a3b7f-f47d-49d6-94d6-481fc33f8ca6</guid><dc:creator>oliver0804</dc:creator><description>&lt;p&gt;&lt;a id="" href="https://github.com/Oliver0804/NRF52840_RTT"&gt;https://github.com/Oliver0804/NRF52840_RTT&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;i also uploaded the project to github, you can also check from there, by the way &amp;quot;CONFIG_LOG_BACKEND_RTT=y&amp;quot; have added it, but still can not print!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480128?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 08:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3196359f-323e-4ee4-9d5c-1c24926ef44c</guid><dc:creator>oliver0804</dc:creator><description>&lt;p&gt;I think the output config should be the final output, that&amp;#39;s why I attached it.&lt;br /&gt;&lt;br /&gt;I will be using 2.2.0 to maintain the previous project, but I have been having problems with the RTT feature, here is my prj.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_LBS&amp;quot;

# Enable the LBS service
CONFIG_BT_LBS=y
CONFIG_BT_LBS_POLL_BUTTON=y
CONFIG_DK_LIBRARY=y

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

CONFIG_GPIO=y
CONFIG_LOG=y
CONFIG_RTT_CONSOLE=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480112?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 07:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f00c4ab-2e8d-4dcd-858d-6e366cfd92e0</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Oliver, I will look into your case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you post the prj.conf. It will make it easier to read though then 2k+ lines of config options.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general if this is a new project I would highly recommend updating to a newer version of NCS like 2.6 a bonus point here is also additional documentation like more info regarding &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/test_and_optimize/logging.html"&gt;logging&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However I could not see that you have enabled CONFIG_LOG_BACKEND_RTT which enables RTT&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Troubleshooting RTT Logging Issues with NRF52840DK in VSCode</title><link>https://devzone.nordicsemi.com/thread/480089?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 05:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7cf1787-432d-4a4f-925b-8720aa1c8b3f</guid><dc:creator>oliver0804</dc:creator><description>&lt;div class="flex-1 overflow-hidden"&gt;
&lt;div class="react-scroll-to-bottom--css-pomjv-79elbk h-full"&gt;
&lt;div class="react-scroll-to-bottom--css-pomjv-1n7m0yu"&gt;
&lt;div&gt;
&lt;div class="flex flex-col text-sm pb-9"&gt;
&lt;div class="w-full text-token-text-primary" dir="auto" data-testid="conversation-turn-7"&gt;
&lt;div class="px-4 py-2 justify-center text-base md:gap-6 m-auto"&gt;
&lt;div&gt;
&lt;div class="relative flex w-full flex-col agent-turn"&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="flex flex-grow flex-col max-w-full"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="8d8e6d42-dbd6-4927-9ce9-e179da5cde04"&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;To summarize the issue, I added RTT logging to the peripheral_lbs example, but I can&amp;#39;t get the logs to print correctly in VSCode.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="mt-1 flex gap-3 empty:hidden"&gt;
&lt;div&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;
&lt;div class="flex items-center gap-1.5 text-xs"&gt;SDK2.2.0 board nRF52840DK&lt;/div&gt;
&lt;div class="flex"&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>