<?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>How can I read the logs from an external nrf52840 using VS Code and nRF5340-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110418/how-can-i-read-the-logs-from-an-external-nrf52840-using-vs-code-and-nrf5340-dk</link><description>Hello, 
 I have Micromod nRF52840 module on a carrier board and I&amp;#39;ve built and flashed Matter Light Switch sample on it but I need to read the logs from the module 
 How can I read the logs from this external nrf52840 module? 
 
 Best regards, 
 Base</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2024 07:42:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110418/how-can-i-read-the-logs-from-an-external-nrf52840-using-vs-code-and-nrf5340-dk" /><item><title>RE: How can I read the logs from an external nrf52840 using VS Code and nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/485959?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 07:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c01fe9-b8a1-4e01-92eb-1aa6992a747d</guid><dc:creator>Basem Barakat</dc:creator><description>&lt;p&gt;Thanks AHaug, and i&amp;#39;m sorry for my late response.&lt;/p&gt;
&lt;p&gt;The following URLs helped me:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.golioth.io/use-rtt-with-zephyr-when-console-output-via-uart-just-isnt-convenient/"&gt;blog.golioth.io/.../&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105314/log_-over-rtt-and-shell-over-uart2"&gt;devzone.nordicsemi.com/.../log_-over-rtt-and-shell-over-uart2&lt;/a&gt;&lt;br /&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/logging.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/logging.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Conclusion:&lt;br /&gt;I used the following configs to enable RTT to send the logs from the&amp;nbsp;custom nRF52840 board through nRF5340-DK to VS Code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#CONFIG_UART_CONSOLE=n
#CONFIG_RTT_CONSOLE=y
#CONFIG_USE_SEGGER_RTT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Basem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I read the logs from an external nrf52840 using VS Code and nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/479976?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 12:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb51e356-bc12-4c10-bf93-75f5f3790b57</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could connect the log module to a UART or RTT and connect the 5340 to the 52840 with said UART and read out the logs this way. You might find some useful information in&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>