<?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 to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80346/how-to-enable-j-link-rtt-viewer-on-nrf5340-using-the-enhanced-shock-burst-esb-sample-code</link><description>Hi, 
 I am trying to get my nrf24L01+ to communicate with nrf5340 using the enhanced shock burst sample code. In the sample code there are LOG_INF, LOG_ERR, LOG_DBG commands available? How do I print them out on the console? I would prefer to use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Oct 2021 20:37:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80346/how-to-enable-j-link-rtt-viewer-on-nrf5340-using-the-enhanced-shock-burst-esb-sample-code" /><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/333142?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 20:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8b0a8b1-732a-44be-9a60-1c83b6dfe4b9</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;PERFECT!!! IT Worked! Yahoooo...&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633639008452v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/333137?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 19:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1a0f411-cea1-4ff4-a3f7-100afb5cd756</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please run the commands from cmd.exe instead. I see from the log that west is not invoking&amp;nbsp;the python interpreter located in the SDKs toolchain directory indicating that the PATH was not updated correctly. Also, the file you want to program is merged_domains.hex as it includes the empty app core image needed for the Application processor. Zephyr.hex contains the esb application.&lt;/p&gt;
&lt;p&gt;I have the SDK installed via the toolchain manager and I&amp;rsquo;m running windows 10. Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/333112?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 16:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2584870a-f8f6-471b-8e24-ccca72601e62</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I tried following the process using the command line tool. I am able to build using the command line tools. But unable to flash.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633622237041v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I used the nrf connect GUI tool:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633622555582v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But still, I see no logging.&lt;/p&gt;
&lt;p&gt;Can you tell me what tools, setup and configuration, O.S you used to get the logging enabled. May be if I can replicate it exactly, I may be successful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332994?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61b1b64-6c58-4956-8404-cfae61a5d155</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see the same now when I try to use Segger Embedded Studio and I need more time to investigate. Are you able to work with the &lt;a href="https://nordicplayground.github.io/vscode-nrf-connect/"&gt;VS code extension&lt;/a&gt; or from the command line in the meantime?&lt;/p&gt;
&lt;p&gt;Building from the command line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Update PATH to include the SDK build tools
c:\Users\&amp;lt;user&amp;gt;\ncs\v1.7.0&amp;gt;toolchain\cmd\env.cmd

// Change directory to sample folder
c:\Users\&amp;lt;user&amp;gt;\ncs\v1.7.0&amp;gt;cd nrf\samples\esb\prx

// Build command. Includes &amp;quot;empty app core&amp;quot; as a child image
c:\Users\&amp;lt;user&amp;gt;\ncs\v1.7.0\nrf\samples\esb\prx&amp;gt;west build -b nrf5340dk_nrf5340_cpunet -- -DCONFIG_NCS_SAMPLE_EMPTY_APP_CORE_CHILD_IMAGE=y

// Run recovery procedure, then flash both cores
c:\Users\&amp;lt;user&amp;gt;\ncs\v1.7.0\nrf\samples\esb\prx&amp;gt;west flash --recover&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332899?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 17:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110bc502-8794-4467-bd12-0121850f8410</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;I have tried to verify the code.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633541087148v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It appears nothing is downloaded to the the network core&amp;#39;s flash. Is the core locked? How do I unlock it? When I compile and download It keeps saying successfully&amp;nbsp; downloaded, not sure what is it successfully downloading if the verification fails.&lt;/p&gt;
&lt;p&gt;Any comment on what all this is? I literally just need a console log out put. Seems like there are other issues that need to be addressed here :( .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332898?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 17:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f75b0470-b68d-4f85-a292-69ffcccf0bab</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I think there is a deeper issue at play here.&lt;/p&gt;
&lt;p&gt;After the program is downloaded successfully, it says:&lt;/p&gt;
&lt;p&gt;Illegal value 0x21001450 written to register 66 (MSP_NS) ignored&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633540121562v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this something got to do with why the program/ console logs are not working?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I added the for loop to print a msg. I still see nothing. I removed &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/kconfig/CONFIG_NCS_SAMPLES_DEFAULTS.html#std-kconfig-CONFIG_NCS_SAMPLES_DEFAULTS"&gt;CONFIG_NCS_SAMPLES_DEFAULTS&lt;/a&gt; as well, and no logs seem to appear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332896?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 16:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b9f9190-4aba-4cfe-92aa-10ad98c699c6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="3318" url="~/f/nordic-q-a/80346/how-to-enable-j-link-rtt-viewer-on-nrf5340-using-the-enhanced-shock-burst-esb-sample-code/332892#332892"]Pressed the reset button to restart the code.[/quote]
&lt;p&gt;The problem with this is that a pinreset will cause the debugger to loose connection with your device so you will have to manually re-connect afterwards. UART is better in that regard. You also need to remove the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/kconfig/CONFIG_NCS_SAMPLES_DEFAULTS.html#std-kconfig-CONFIG_NCS_SAMPLES_DEFAULTS"&gt;CONFIG_NCS_SAMPLES_DEFAULTS&lt;/a&gt; setting as it selects CONFIG_LOG_MINIMAL that doesn&amp;#39;t support the RTT backend.&lt;/p&gt;
&lt;p&gt;To make debugging this easier, you could consider adding a loop like the one below at end of your main function&amp;nbsp; to make the app print something periodically and not just on startup.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for (;;) {
    LOG_INF(&amp;quot;main loop&amp;quot;);
    k_sleep(K_MSEC(500));
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332892?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 16:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5c6570-354f-4386-954c-91869f82c343</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I just tried your suggestion. I still cannot seem to get it working. Sorry about that. What am i missing. This is the change to the prj.conf file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633537337765v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After making the changes, I imported the project once again to segger embedded studio.&lt;/p&gt;
&lt;p&gt;The main.c file is as per the 1.7.1 sdk. I removed the #defines previously stated in this thread. (Even with adding those #defines it does not log)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633537416330v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Compiled the file and have downloaded it to nrf5340-DK. Disconnected the RTT viewer and enabled it again. Pressed the reset button to restart the code.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633537509569v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I do not see any logging.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332889?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 16:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f758db6b-b9f9-47e2-a442-5e3d1b7999bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Surya&amp;#39;s answer is correct for the nRF5 SDK, but since you are using the new nRF connect SDK it does not apply in your case.&lt;/p&gt;
&lt;p&gt;To enable RTT you change the configuration in your prj.conf file as shown below. The ESB sample has only logging over UART enabled by default.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_LOG=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
CONFIG_ASSERT_NO_MSG_INFO=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_USE_SEGGER_RTT=y

CONFIG_ESB=y

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this configuration you should get the following output (tested with SDK version 1.7.0)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633536164337v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332885?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 15:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d8b276-e6f6-4156-a3d5-61c136f1d124</guid><dc:creator>Anthony Shivakumar</dc:creator><description>&lt;p&gt;Hi Surya,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt reply. Where exactly are they to be enabled? Are these #defines that I need to add in the main.c file? I did that and it still does not work.&lt;/p&gt;
&lt;p&gt;Are there header files I need to add to the sample code to enable logging? Are there other files I need to add to the project that needs to be compiled and&amp;nbsp; linked? This update of adding #defines seems insufficient. &lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nordic_5F00_semi2.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To move forwards my first step is to 1st enable logging.&amp;nbsp; I want to see &lt;strong&gt;&amp;quot;Enhanced ShockBurst prx sample&amp;quot;&lt;/strong&gt; logged on the console as soon as the program starts. This logging info is provided by the sdk itself. Just not sure how to make it work. Please help what other change are needed to get this working..&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633533327686v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you once again for your prompt reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable J-Link RTT Viewer on nRF5340 using the Enhanced shock burst (esb) sample code?</title><link>https://devzone.nordicsemi.com/thread/332736?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 07:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d04a8a-7e1d-431a-b351-4e09f5fc3a81</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;make sure&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED and NRF_LOG_ENABLED are 1&lt;/p&gt;
&lt;p&gt;NRF_LOG_DEFAULT_LEVEL should be setted accordingly to get ERROR, DEBUG, INFO outputs&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_LOG_DEFAULT_LEVEL - Default Severity level&lt;br /&gt; &lt;br /&gt;// &amp;lt;0=&amp;gt; Off &lt;br /&gt;// &amp;lt;1=&amp;gt; Error &lt;br /&gt;// &amp;lt;2=&amp;gt; Warning &lt;br /&gt;// &amp;lt;3=&amp;gt; Info &lt;br /&gt;// &amp;lt;4=&amp;gt; Debug&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>