<?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>Can&amp;#39;t get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118358/can-t-get-nrf52811-based-sample-projects-to-display-on-segger-j-link-rtt-viewer</link><description>Hi, 
 I am working on an FCC cert of our product which is nRF52811 based. We are currently on SDK 2.0.0. I have copied from the nrf samples bluetooth area the projects peripheral_uart and direct_test_mode and have been trying (in vain) to get them to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2025 02:05:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118358/can-t-get-nrf52811-based-sample-projects-to-display-on-segger-j-link-rtt-viewer" /><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/521647?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 02:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc64a26-1760-4c6f-9771-c6a27f8d66d6</guid><dc:creator>keegretupmoc</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Yes, it&amp;#39;s very perplexing.&amp;nbsp; I finally just gutted my working project (RTT displays) and put the direct_test_mode code in it and kind of got it working.&amp;nbsp; Hopefully well enough.&lt;/p&gt;
&lt;p&gt;It seems to be the SOC setup we have I guess.&amp;nbsp; Something in my project that is needed for even the simple projects to work on.&lt;/p&gt;
&lt;p&gt;Since I am past that with my workaround you can close out the ticket.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/521387?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 16:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7938b423-9232-4288-8cf1-d8bef94cbccb</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;I tried your sample, and it worked&amp;nbsp;on the nrf52832 DK for version v2.9.0 with some modification of the header file. That I mentioned on my previous reply.&lt;/p&gt;
&lt;p&gt;Now I have tried this on v2.0.0 as same as you. It worked (for old version there is no error related to log.h file, so no modification was needed).&lt;/p&gt;
&lt;p&gt;below is my configuration of RTT viewer.&amp;nbsp;&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/pastedimage1738688060579v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/520484?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 00:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07402104-545c-4a52-ac17-506bcf160161</guid><dc:creator>keegretupmoc</dc:creator><description>&lt;p&gt;Kazi,&lt;/p&gt;
&lt;p&gt;Yeah, 2.0.0 is very old.&amp;nbsp; We will be working on getting to the current version.&amp;nbsp; But right now we are on this version.&amp;nbsp; We have an app that is currently running on the nRF52811 processor that is sending RTT data to the display.&amp;nbsp; So I know it works under the SDK version 2.0.0&lt;/p&gt;
&lt;p&gt;I have two projects from the samples/bluetooth directory on SDK 2.0.0 under nrf (direct_test_mode and peripheral_uart) that I have been trying to get RTT display working on and it doesn&amp;#39;t work.&amp;nbsp; I have also beein trying to get the minimal_log.zip working, which it doesn&amp;#39;t work either.&lt;/p&gt;
&lt;p&gt;I have spent many hours on this and still no luck.&amp;nbsp; So I am sure there is something in our code on the working version (which I call the BLE) that must not be on the other test projects, but I don&amp;#39;t see it.&amp;nbsp; I have done a lot of combing around looking at parameters from proj.conf and what they eventually become in .config and haven&amp;#39;t really seen anything there.&lt;/p&gt;
&lt;p&gt;I have tried the logger thread on and off (it&amp;#39;s off on our working software I think).&amp;nbsp; So I have looked at a lot of things.&lt;/p&gt;
&lt;p&gt;I really need to get this working because I need to do an FCC cert on it soon.&amp;nbsp; So any helpful hints you might have would be appreciated.&lt;/p&gt;
&lt;p&gt;How does the rtt suff exactly work?&lt;/p&gt;
&lt;p&gt;We have the J-Link interface connected to the board on the JTAG I believe.&amp;nbsp; So we aren&amp;#39;t using any UARTs specifically.&amp;nbsp; It&amp;#39;s through the SWO/CLK/IO.&lt;/p&gt;
&lt;p&gt;It would really be helpful to get this working through for what I need to do.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/520385?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 14:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:887afbe3-8e90-4a17-a1ea-4b0425604841</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You are using NCS version 2.0.0? It is very old.&lt;/p&gt;
&lt;p&gt;I have tried to reproduce the minimal_log.zip on NCS version 2.9.0. Initially it shows there is no file like&lt;strong&gt; logging/log.h&lt;/strong&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/pastedimage1738072101132v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is because there is no use of &amp;#39;&amp;#39;&lt;code dir="ltr"&gt;#include &amp;quot;logging/log.h&amp;quot;&lt;/code&gt;&lt;span&gt;&amp;nbsp;in current NCS version. The include statement for public zephyr headers has changed what was on&amp;nbsp;NCS v2.0.0.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;The proper way to include the logging header in NCS 2.9.0 is:&lt;/div&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;span&gt;include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/logging/log.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then it worked as expected.&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/pastedimage1738072523639v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Have you set the target device properly? Which version of RTT viewer you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/520087?ContentTypeID=1</link><pubDate>Sun, 26 Jan 2025 01:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bee20f-f6f1-4b94-bbbb-334355594143</guid><dc:creator>keegretupmoc</dc:creator><description>&lt;p&gt;I found another devzone article with a zip file (minimal_log.zip) that has a project that just does what I need it to do.&amp;nbsp; I have downloaded it and built it, but it doesn&amp;#39;t output any data either.&amp;nbsp; I do see it connect to the RTT display though:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77622/how-to-enable-ncs-rtt-logging"&gt;devzone.nordicsemi.com/.../how-to-enable-ncs-rtt-logging&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;h.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get nRF52811 based sample projects to display on Segger J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/520083?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2025 20:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eebdf48e-d2b1-4d7b-b9a0-52a577771309</guid><dc:creator>keegretupmoc</dc:creator><description>&lt;p&gt;A little extra info.&amp;nbsp; On the J-Link RTT Viewer output, I can see that we are able to connect, but nothing displays:&lt;/p&gt;
&lt;p&gt;LOG: Connecting to J-Link via USB...&lt;br /&gt;LOG: Device &amp;quot;NRF52811_XXAA&amp;quot; selected.&lt;br /&gt;LOG: InitTarget() start&lt;br /&gt;LOG: InitTarget() end - Took 2.09ms&lt;br /&gt;LOG: Found SW-DP with ID 0x2BA01477&lt;br /&gt;LOG: DPIDR: 0x2BA01477&lt;br /&gt;LOG: CoreSight SoC-400 or earlier&lt;br /&gt;LOG: Scanning AP map to find all available APs&lt;br /&gt;LOG: AP[2]: Stopped AP scan as end of AP map has been reached&lt;br /&gt;LOG: AP[0]: AHB-AP (IDR: 0x24770011)&lt;br /&gt;LOG: AP[1]: JTAG-AP (IDR: 0x02880000)&lt;br /&gt;LOG: Iterating through AP map to find AHB-AP to use&lt;br /&gt;LOG: AP[0]: Core found&lt;br /&gt;LOG: AP[0]: AHB-AP ROM base: 0xE00FF000&lt;br /&gt;LOG: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;br /&gt;LOG: Found Cortex-M4 r0p1, Little endian.&lt;br /&gt;LOG: FPUnit: 6 code (BP) slots and 2 literal slots&lt;br /&gt;LOG: CoreSight components:&lt;br /&gt;LOG: ROMTbl[0] @ E00FF000&lt;br /&gt;LOG: [0][0]: E000E000 CID B105E00D PID 000BB000 SCS&lt;br /&gt;LOG: [0][1]: E0001000 CID B105E00D PID 003BB002 DWT&lt;br /&gt;LOG: [0][2]: E0002000 CID B105E00D PID 002BB003 FPB&lt;br /&gt;LOG: RTT Viewer connected.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s setup correctly, with the USB and Serial number, target device correct, interface SWD at 4000kHz and Auto Detection.&amp;nbsp; And as I said before the same display will correctly display our current real app that originally used peripheral_uart as a template.&amp;nbsp; So it seems to be something with these sample apps...&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>