<?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>Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59495/example-that-logs-over-segger-rtt-requiring-no-configuration-changes-by-me</link><description>I&amp;#39;m trying to get debug output to appear in my Segger J-LINK SWO viewer (from an NR52840 SDK board with NRF5 v16) which I understand is a potentially complicated process; I&amp;#39;ve received nothing in the SWO viewer so far. Do you have an example which sends</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2020 08:17:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59495/example-that-logs-over-segger-rtt-requiring-no-configuration-changes-by-me" /><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/242005?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 08:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fb2fa2-ae1c-44da-915a-0599c9fb5eae</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I just wanted to make sure it wasn&amp;#39;t a driver issue, so I repeated the tests on my end with JLink v6.64b, but it didn&amp;#39;t seem to make any difference. The Segger project I used for test is attached below (extract to /examples/peripheral/ to build)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-62aa5379c989466fbba4a4ebe6583ee3/blinky_5F00_logging.zip"&gt;devzone.nordicsemi.com/.../blinky_5F00_logging.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Stay safe!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241903?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d21139ce-66a6-4641-96bf-89880edd5de6</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Thanks for watching and understood on the other points.&amp;nbsp; I&amp;#39;ve made my default to do &lt;strong&gt;--chiperase --verify -r&lt;/strong&gt; to reduce paranoia.&amp;nbsp; I&amp;#39;ve also moved those GPIOs of mine to 20, 21, 22 and 23 which seems safest.&amp;nbsp; My first run after a power-on/download still doesn&amp;#39;t work proprly but the rest seem to work at the moment and, though there is still character loss, it is not huge.&lt;br /&gt;&lt;br /&gt;Thanks for all your persistent/consistent attention with this.&amp;nbsp; I will try SWO later and see if that is any better for me.&amp;nbsp; If I ever find out what the root cause is I will update this ticket.&lt;br /&gt;&lt;br /&gt;That&amp;#39;s good for now, happy isolation!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241877?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b42fd7-91c0-497c-80e1-fccaff454c7b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the videos. I watched through both. &amp;quot;unfortunately&amp;quot;, you&amp;#39;re doing everything right. The board switches are also in the correct positions. So I find this very strange. Particularly that it&amp;#39;s not consistent and that programming works correctly.&lt;/p&gt;
&lt;p&gt;The LED pins will always have the default configuration when coming out of a reset (input - disconnect). P0.18 is different because it has the optional pin reset functionality (NV reg - &lt;span class="item"&gt;&lt;a class="" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_3#register.PSELRESET-0-1"&gt;PSELRESET[n]&lt;/a&gt;&lt;/span&gt;). The NV register settings changes the reset configuration for that pin only.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use --eraseall to ensure that all NV settings are erased. And you can use --verify for good measure. Eg. nrfjprog --program app.hex --chiperase --verify -r&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241866?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 13:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8425a921-8b0f-420d-a0b5-01f82e18d8fd</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;A possibility: my code will eventually use GPIO lines and, even though nothing is connected to them at the moment, I was letting it configure those GPIO lines and had chosen 10 &amp;amp; 12 as outputs and 11 &amp;amp; 13 as inputs.&amp;nbsp; I&amp;#39;ve just noticed, reading the back of the PCB, that 10 is NFC2, 12 is button 2 and 13 is connected to an LED. Could setting these as output/output/input respectively somehow prevent subsequent downloads of your .hex file from working, &amp;#39;cos it remembers the GPIO settings (recalling that you said something about the GPIO as reset thing being stored in NV settings, rather than being something which the code sorts out when it loads). Should I always do an --eraseall instead of a --sectorerase to be safe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241843?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 13:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d785aba-adf0-48de-8cd9-6f6f167bcc32</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Understood, I will use &amp;quot;r&amp;quot; and then &amp;quot;g&amp;quot;.&amp;nbsp; As to the rest of this, I&amp;#39;ve just had the situation where nothing works once more and have taken a YouTube video of that case, just so that you can see absolutely everything that I can (when my mobile phone&amp;#39;s camera wants to focus) and all the things I try.&amp;nbsp; I&amp;#39;ve also uploaded a YouTube video I made just before this when I thought everything was in &amp;quot;non working&amp;quot; mode and instead it decide to work, just to prove that it &lt;em&gt;is&lt;/em&gt; able to work.&amp;nbsp; These videos are currently uploading and can be found here:&lt;/p&gt;
&lt;p&gt;Non-working case:&amp;nbsp;&lt;a href="https://youtu.be/mOo_iqvC8LQ"&gt;https://youtu.be/mOo_iqvC8LQ&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Working case:&amp;nbsp;&lt;a href="https://youtu.be/nuHNP4PzsLA"&gt;https://youtu.be/nuHNP4PzsLA&lt;/a&gt;&amp;nbsp;(this is rather shorter and so has now finished uploading)&lt;br /&gt;&lt;br /&gt;FYI they are unlisted videos with comments etc. disabled and I will delete them once we&amp;#39;re done with this.&lt;/p&gt;
&lt;p&gt;What &lt;em&gt;am&lt;/em&gt; I doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241827?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 12:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b87d4145-bd83-46ea-9805-e52f6fa4c230</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The &amp;#39;r&amp;#39; command in Jlink commander does a reset then immediately halts the target. You need to type &amp;#39;g&amp;#39; /go after to start execution.&amp;nbsp; But I&amp;#39;m not sure why it&amp;#39;s not running after power-cycling the board. That is not as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241819?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 12:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262e6ee9-9dcb-4416-a033-3ac4ac756f51</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;My Makefile does have&amp;nbsp;&lt;strong&gt;-DCONFIG_GPIO_AS_PINRESET&lt;/strong&gt; in both &lt;strong&gt;CFLAGS&lt;/strong&gt; and &lt;strong&gt;ASMFLAGS&lt;/strong&gt;&amp;nbsp;but even power-cycling the board doesn&amp;#39;t do it for me, the &amp;quot;r&amp;quot; command never has any effect.&lt;br /&gt;&lt;br /&gt;I tried the same thing with your .hex file and specifying &lt;strong&gt;--reset&lt;/strong&gt; on the command-line and, interestingly, then &amp;quot;r&amp;quot; stops the processor dead: the LEDs stop flashing and stay stopped.&amp;nbsp; Only pressing the reset button on the board starts them again.&amp;nbsp; Is that what you would expect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241808?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 11:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a774424a-b868-477d-8064-b81d348f425e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. The pinreset functionality is enabled by the startup code during first boot by writing to the non-volatile&amp;nbsp;NRF_UICR-&amp;gt;PSELRESET registers (if compiled with CONFIG_GPIO_AS_PINRESET). So the device must be reset through the debugger or by a power-cycle in order for the pinreset to be enabled. Could this possibly explain the inconsistent behavior earlier?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;startup code:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-62aa5379c989466fbba4a4ebe6583ee3/pastedimage1585223778332v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241802?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 11:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77b950a3-45d2-42b1-973c-38f4c18fdd79</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Other things in case they give you any clues:&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp; It never works the first time after powering the board on or programming the board, I always get a short output, i.e.:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Starting up...
Printing a hex count 256 * 10 times in a loop...
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDC&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; When there is character loss it is a whole &lt;strong&gt;NRF_LOG_INFO()&lt;/strong&gt;&amp;#39;s worth that is lost, so in my case two characters representing a hex number; I never see just a single lost character.&lt;br /&gt;&lt;br /&gt;3.&amp;nbsp; The &amp;quot;r&amp;quot; command in the JLink commander window never does anything, it never resets the target. It says:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Reset delay: 0 ms
Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...but your .hex file&amp;#39;s LEDs don&amp;#39;t start flashing (or re-start flashing if they were already flashing) unless I press the reset button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241792?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 11:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c742356d-5834-4689-a64c-b5c47919edd0</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Ooo, very nice, I like your SWO, I will try that.&amp;nbsp; Yes, this is an nRF52840 DK with the onboard JLink debugger.&lt;br /&gt;&lt;br /&gt;On the reset, that&amp;#39;s curious.&amp;nbsp; I just tried with &lt;strong&gt;--reset&lt;/strong&gt; on the command-line and it did indeed work, but I took it off again and tried downloading many times, manually pressing the reset button afterwards each time, and that &lt;em&gt;also&lt;/em&gt; worked, my system is in a &amp;quot;I don&amp;#39;t want to fail&amp;quot; mood now: half an hour ago pressing the reset button did nothing at all, no matter how many times I did it after my download, and no matter how many downloads (of your .hex file) I performed.&amp;nbsp; It&amp;#39;s almost like I&amp;#39;m suffering from bad downloads consistently for some period.&amp;nbsp; Could I have some setting or other wrong on the board? nRF power source is set to VDD, the nRF ONLY/DEFAULT switch is set to DEFAULT, nothing else is connected to the board, no jumpers etc.&amp;nbsp; Faulty reset button perhaps (it feels fine to me, pops up nicely)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241787?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f794b1-5131-440d-8156-ddd1c5e0fe2c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Strange. So just to confirm, are you testing this on a nRF52840 DK with the onboard Jlink debugger? &lt;/p&gt;
[quote userid="68812" url="~/f/nordic-q-a/59495/example-that-logs-over-segger-rtt-requiring-no-configuration-changes-by-me/241786"]What might I be doing wrong?&amp;nbsp; Download command-line (which is apparently successful) is:[/quote]
&lt;p&gt;As you may know, the target is halted after programming. Does it make any difference if you append -r/--reset when you program? &lt;/p&gt;
&lt;p&gt;I also did a quick test with SWO here but was not able to view the messages in the SWOViewer, only in SES:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1585220192957v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241786?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc178fa-b5b5-4dcb-9071-326b229332fc</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Interestingly, downloading your .hex file, I can see that sometimes it simply doesn&amp;#39;t run (the LEDs don&amp;#39;t flash in sequence).&amp;nbsp; It worked the first time I downloaded, but not subsequent times.&amp;nbsp; What might I be doing wrong?&amp;nbsp; Download command-line (which is apparently successful) is:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\&amp;gt;nrfjprog --sectorerase --program c:\temp\blinky_pca10056.hex
Parsing hex file.
Erasing page at address 0x0.
Erasing page at address 0x1000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241778?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7bb6eab-8783-4d1c-ab4a-6b4c54bf5d5b</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;There seem to be two distinct behaviours.&amp;nbsp; I&amp;#39;ve switched to the release version of the JLink tools (6.64B) and I find that sometimes I get absolutely nothing at all from the target, no matter how many times I power it down, restart &lt;strong&gt;JLink&lt;/strong&gt;, restart &lt;strong&gt;jlinkrttclient&lt;/strong&gt; etc.&amp;nbsp; Other times it bursts into life and stays working for a while and in that situation I see lost characters, sometimes all of them past a certain point in execution, sometimes just a few.&lt;/p&gt;
&lt;p&gt;I changed &lt;strong&gt;main()&lt;/strong&gt; to just do this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    NRF_LOG_INIT(NULL);
    NRF_LOG_DEFAULT_BACKENDS_INIT();

    NRF_LOG_RAW_INFO(&amp;quot;\nStarting up...\n&amp;quot;);
    NRF_LOG_RAW_INFO(&amp;quot;Printing a hex count 256 times in a loop...\n&amp;quot;);
    for (size_t count = 0; count &amp;lt; 256; count++) {
        NRF_LOG_RAW_INFO(&amp;quot;%02x&amp;quot;, count);
    }
    NRF_LOG_RAW_INFO(&amp;quot;\nDone.\n&amp;quot;);
    while (1) {};
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...and sometimes it just stops in the middle, which you can see in the second case here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Starting up...
Printing a hex count 256 times in a loop...
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
Done.

Starting up...
Printing a hex count 256 times in a loop...
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF
Starting up...
Printing a hex count 256 times in a loop...
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
Done.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Other times it loses characters, which if you look carefully you can see in the output here where it loses four prints, eight characters on the 6th iteration (I&amp;#39;ve inserted spaces so that you can see the gap):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Starting up...
Printing a hex count 256 * 10 times in a loop...
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2F3        03132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
Done.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In these cases the viewer is still running, if I press the reset button on the target and it&amp;#39;s in a &amp;quot;working&amp;quot; phase it reads the new output, it seem that the target either stopped or lost all further characters or lost some characters.&amp;nbsp; I had assumed that with&amp;nbsp;&lt;span&gt;&lt;strong&gt;NRF_LOG_DEFERRED 0&lt;/strong&gt; the &lt;strong&gt;NRF_LOG_RAW_INFO()&lt;/strong&gt; call should act just like a &lt;strong&gt;printf()&lt;/strong&gt; and block until all characters are sent, so there shouldn&amp;#39;t be a timing/buffering issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe I should go try that SWO, see if it is more reliable...?&amp;nbsp; Are there any other reliability things you might suggest?&amp;nbsp; I&amp;#39;m using a 15 cm long USB cable and I&amp;#39;ve tried this on all the USB ports on my (Dell) laptop.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241737?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 08:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9310a9b4-ebdd-425c-a549-1d9066e3c54c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I have seen some issues with the RTT viewer, but the RTT itself has been reliable in my experience (I&amp;#39;m usually viewing the logs in the SES IDE). I noticed now from your logs that you are using a beta release for the J-link, maybe that&amp;#39;s the problem. Could you try to update it?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Simple Blinky example with RTT logging:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_pca10056.hex"&gt;devzone.nordicsemi.com/.../blinky_5F00_pca10056.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I found this old thread I had on SWO: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31263/itm_sendchar-with-pca10056-nrf52840"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/31263/itm_sendchar-with-pca10056-nrf52840.&lt;/a&gt; As you can see, it will still require some configuration to get working plus we do not have a logger backend for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241671?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 18:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63bb8cb3-1bdc-4744-bbc0-2c2b10955911</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;No, even that&amp;#39;s not consistent, it just seems to be unreliable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241668?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 18:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35a3b69f-efc8-4b31-b127-1dfc3cf35e48</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;It seems to work only the first time after JLink connects.&amp;nbsp; If I do a reset (pressing &amp;#39;r&amp;#39; in JLink commander, or pressing the reset button on the board) nothing more comes out; I have to restart JLink commander and then does stuffs appear in the RTT viewer once more.&lt;/p&gt;
&lt;p&gt;Any clues as to why that might be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241667?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e986e9-479b-4ffa-984f-f04997afecf9</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;&lt;span&gt;Hmmm.&amp;nbsp; Haven&amp;#39;t been able to do it again though.&amp;nbsp; Any hints on reliability?&amp;nbsp; I&amp;#39;ve tried reducing the speed from 4000 kHz to 1000 kHz but that doesn&amp;#39;t seem to have helped.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241662?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7ef8b4-1f9c-4029-80df-4cb41ee336a1</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Ooo!&amp;nbsp; Belay that, I just built and download my own build to my board and J-Link RTT client suddenly burst into life:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Hello world.

&amp;lt;info&amp;gt; app: CELLULAR_PORT_TEST: tick time now is 0.

&amp;lt;info&amp;gt; app: CELLULAR_PORT_TEST: creating a mutex...

&amp;lt;info&amp;gt; app:                     returned error code 0, handle 0x20000978.

&amp;lt;info&amp;gt; app: CELLULAR_PORT_TEST: creating a queue...

&amp;lt;info&amp;gt; app:                     returned error code 0, handle 0x200009c0.

&amp;lt;info&amp;gt; app: CELLULAR_PORT_TEST: creating a test task with stack 2048 byte(s) and priority 12, passing it the pointer 0x20000220 containing&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Obviously I&amp;#39;m doing something right, just need to figure out the sequence.&amp;nbsp; Thanks for your help, if you have anything on using SWO then do let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241655?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e9ddda-ed36-408d-8228-d62896a41a67</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Yes, I would be interested in SWO I think, seems simpler for me.&lt;br /&gt;&lt;br /&gt;I did have auto-detect on in the RTT Viewer.&amp;nbsp; Just did what you suggested and started JLink in one DOS box:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.
J-Link&amp;gt;g

**************************
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
**************************

J-Link&amp;gt;r
Reset delay: 0 ms
Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
J-Link&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...but when I start&amp;nbsp;&lt;strong&gt;jlinkrttclient&lt;/strong&gt;&amp;nbsp;in another window it looks the same as yours except no debug is printed below it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Program Files (x86)\SEGGER\JLink_V641a&amp;gt;jlinkrttclient
###RTT Client: ************************************************************
###RTT Client: *               SEGGER Microcontroller GmbH                *
###RTT Client: *   Solutions for real time microcontroller applications   *
###RTT Client: ************************************************************
###RTT Client: *                                                          *
###RTT Client: *       (c) 2012 - 2016  SEGGER Microcontroller GmbH       *
###RTT Client: *                                                          *
###RTT Client: *     www.segger.com     Support: support@segger.com       *
###RTT Client: *                                                          *
###RTT Client: ************************************************************
###RTT Client: *                                                          *
###RTT Client: * SEGGER J-Link RTT Client   Compiled Nov 27 2018 14:10:37 *
###RTT Client: *                                                          *
###RTT Client: ************************************************************

###RTT Client: -----------------------------------------------
###RTT Client: Connecting to J-Link RTT Server via localhost:19021  Connected.
SEGGER J-Link V6.41a (beta) - Real time terminal output
J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 21 2020 17:30:48 V1.0, SN=683253856
Process: JLink.exe
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is with the &lt;strong&gt;ble_peripheral&lt;/strong&gt; build still on the NRF52840 DK board.&amp;nbsp; What &lt;em&gt;am&lt;/em&gt; I doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241652?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 16:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da347690-4d17-4fad-ad09-429ec741aec7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;ve generally had more success with the RTTClient. Could you try that as well? I have included some screenshots below to show how I tested it here. We do not have any examples for SWO that I&amp;#39;m aware of. I&amp;#39;m actually not sure if this output is even available on the Jlink lite we have on our DKs. I will find out if you are interested.&lt;/p&gt;
&lt;p&gt;RTT viewer:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-62aa5379c989466fbba4a4ebe6583ee3/pastedimage1585154188325v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-62aa5379c989466fbba4a4ebe6583ee3/pastedimage1585154230077v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;RTT Client:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-62aa5379c989466fbba4a4ebe6583ee3/pastedimage1585154559662v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241650?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 16:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9a1ac8-644a-4a64-b77a-0c8159744e9a</guid><dc:creator>RobMeades</dc:creator><description>&lt;p&gt;Ah, apologies, I thought RTT was the same thing as SWO.&amp;nbsp; Do you have SDO out also, nice and standard...?&lt;br /&gt;&lt;br /&gt;Anyway, RTT shows the same thing: all seems to start up OK but no sign of any of my debug.&lt;br /&gt;&lt;br /&gt;I tried that example you pointed to, which built and downloaded fine, but I still don&amp;#39;t see anything in the RTT viewer.&amp;nbsp; RTT viewer connects (see output below) and the green LED on the board flashes more rapidly but no text ever appears in the terminal window.&amp;nbsp; What else might I be doing wrong?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;LOG: Connecting to J-Link via USB...
LOG: Device &amp;quot;NRF52840_XXAA&amp;quot; selected.
LOG: InitTarget() start
LOG: InitTarget() end
LOG: Found SW-DP with ID 0x2BA01477
LOG: DPIDR: 0x2BA01477
LOG: Scanning AP map to find all available APs
LOG: AP[2]: Stopped AP scan as end of AP map has been reached
LOG: AP[0]: AHB-AP (IDR: 0x24770011)
LOG: AP[1]: JTAG-AP (IDR: 0x02880000)
LOG: Iterating through AP map to find AHB-AP to use
LOG: AP[0]: Core found
LOG: AP[0]: AHB-AP ROM base: 0xE00FF000
LOG: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
LOG: Found Cortex-M4 r0p1, Little endian.
LOG: FPUnit: 6 code (BP) slots and 2 literal slots
LOG: CoreSight components:
LOG: ROMTbl[0] @ E00FF000
LOG: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
LOG: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
LOG: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
LOG: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
LOG: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
LOG: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
LOG: RTT Viewer connected.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example that logs over Segger RTT requiring no configuration changes by me</title><link>https://devzone.nordicsemi.com/thread/241646?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 16:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22aa75a8-17db-451c-a1fb-c80a28b9dfd0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;RTT is printed out on the SWDIO line instead of SWO. Could you try the RTTViewer instead and&amp;nbsp;see if it works?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thre are several examples which have RTT logging enabled by default. ble_app_uart is one of them&amp;nbsp;(located in&amp;nbsp;\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_uart\pca10056\s140). Note: remember to load the Softdevice since it&amp;#39;s a BLE app: make flash_softdevice &amp;amp;&amp;amp; make flash&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;Edit: RTTViewer is not available for Linux MacOS if I recall correctly. So if you are not working in Windows, try to first connect the debugger with Jlink commander (JLinkExe) first, then run the RTTClient executable from another terminal window.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>