<?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>Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105530/thingy-91-nrf9160-printing-messages-to-console</link><description>I have ordered Thingy 91 in order to practise with nRF9160. Some important information: 
 I am using: 
 
 Thingy 91 
 Segger J-Link programmer to program nRF9160 and nRF52840 on the Thingy 91 
 NCS v2.5.0 
 
 When I want to flash the nRF9160, I just put</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Nov 2023 08:49:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105530/thingy-91-nrf9160-printing-messages-to-console" /><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/455067?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 08:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b7adb77-a9e9-44de-a782-5533bdc45fbe</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/455065?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 08:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5ba44d-0131-4df9-8c81-f50be7586d0e</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/achimkraus"&gt;Achim Kraus&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help. While I was replying back to your comment I have realized the stupid mistake I have done. In my nrf9160DK code , I do the following:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;printk(&amp;quot;Hello world\n&amp;quot;);&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;However, in the serial terminal I used the following settings:&lt;/div&gt;
&lt;div&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/pastedimage1699604695261v3.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Nottice &amp;quot;Append CR&amp;quot; setting. This setting makes the serial terminal to only print data when it is \r terminated....&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;After replacing my initial hello world print with the following:&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;printk(&amp;quot;Hello world\n\r&amp;quot;);&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I can confirm that it works as expected:&lt;/div&gt;
&lt;div&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/pastedimage1699604868448v4.png" alt=" " /&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;Thank you&amp;nbsp; :)&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/455052?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 07:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b750ff-c2e0-4099-9b69-07530b80a415</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; My goal is to be able to forward the nRF9160 over to the console via nRF52840.&lt;/p&gt;
&lt;p&gt;Sure, and that&amp;#39;s what works for the very most I know. Unfortunately I don&amp;#39;t know, what you did to break it ;-).&lt;/p&gt;
&lt;p&gt;&amp;gt; As I have mentioned in my initial post,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The RTT log, which you mention to show the nRF9160 log , shows the nRF52840 log. Even if you aware of the &amp;quot;SWD select mode&amp;quot;, you need to put that in the right position, or?&lt;/p&gt;
&lt;p&gt;&amp;gt; I am holding the SW3 button pressed while switching ON the Thingy91.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SW3 =&amp;gt; nRF9160&lt;/p&gt;
&lt;p&gt;SW4 =&amp;gt; nRF52840&lt;/p&gt;
&lt;p&gt;Anyway, if the JLINK works that&amp;#39;s a good first step. (it would also do with the Programmer app, just select the JLINK not the Thingy.)&lt;/p&gt;
&lt;p&gt;So, according your comment, you now have the &amp;quot;Connectivity Bridge application running on the nRF52840 &amp;quot;. That&amp;#39;s perfect.&lt;/p&gt;
&lt;p&gt;&amp;gt; and simple printk hello world in a loop on the nRF9160.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess, you setup a project from the scratch and there is something missing. Though I work from the &amp;quot;other side&amp;quot; (take a working sample and try to reduce it), I have no experience, what went wrong in your case.&lt;/p&gt;
&lt;p&gt;Is that the stuff in&amp;nbsp;&lt;a href="https://github.com/krupis/thingy91_learning"&gt;krupis/thingy91_learning&lt;/a&gt; ? There the prj.conf is empty. I have no experience with the defaults, I prefer to have my settings always in the &amp;quot;prj.conf&amp;quot;.&amp;nbsp; From your nRF52840 training project:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=y&lt;br /&gt;CONFIG_LOG=y&lt;/p&gt;
&lt;p&gt;Maybe you try that, to see, if the defaults are different?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/455049?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 05:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44478415-b93a-4b41-8236-f9459d628762</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;As I have mentioned in my initial post, I have the connectivity bridge application running on the nRF52840 board. I have took it from the latest NCS v.2.5.0 and flashed it to nRF52840 via external programmer (Segger J-Link) using 10 pin SWD.&lt;/p&gt;
&lt;p&gt;See my setup below:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699595976608v1.jpeg" /&gt;&lt;br /&gt;&lt;br /&gt;I have tried to flash it via Programmer but for some reason I am not able to put it in MCUboot mode:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699594887595v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am holding the SW3 button pressed while switching ON the Thingy91. After it is turned ON, I release the SW3 but that does not seem to do anything. However, I am able to program the device with the following HEX:&lt;br /&gt; \thingy91_fw_2023-10-26_1fae141f\img_fota_dfu_hex&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699597975832v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Anyways, I prefer flashing the device using external Segger programmer via 10 pin SWD directly from the VSCode nRF Connect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="5203" url="~/f/nordic-q-a/105530/thingy-91-nrf9160-printing-messages-to-console/454958"]Afterwards, switch the &amp;quot;SWD selecting switch&amp;quot; to select the nRF91. Then apply your sample and check, what happens.[/quote]
&lt;p&gt;When selecting the SWD switch to the nRF52 position and monitoring RTT logs:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699595506045v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When selecting the SWD switch to the nRF91 position and monitoring RTT logs:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699595466975v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So to summarise everything up:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. I have Connectivity Bridge application running on the nRF52840 and simple printk hello world in a loop on the nRF9160. My goal is to be able to forward the nRF9160 over to the console via nRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/454958?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 14:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d5bb989-8bc5-4bf2-8b4d-7090fde1472a</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;The messages in the RTT logger seems to indicate, that the &amp;quot;SWD selecting switch&amp;quot; selects the nRF52. (That&amp;#39;s the small black switch between the usb and 10 pin swd, see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_thingy91%2FUG%2Fthingy91%2Fhw_description%2Fprogramming_debugging_interface.html"&gt;Thingy:91 - Programming and debugging interface&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;With that, your JLINK flashs the nRF52840 of the thingy. Please flash the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.5.0/page/nrf/applications/connectivity_bridge/README.html"&gt;Connectivity bridge&lt;/a&gt; you find in the &lt;a href="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/thingy91/thingy91_fw_2023-10-26_1fae141f.zip"&gt;thingy91_fw_2023-10-26_1fae141f.zip&lt;/a&gt; (thingy91_fw_2023-10-26_1fae141f/img_app_bl/thingy91_nrf52_connectivity_bridge_2023-10-26_1fae141f.hex). The nRF Connect for Desktop / Programmer App may be used for that.&lt;/p&gt;
&lt;p&gt;Afterwards, switch the &amp;quot;SWD selecting switch&amp;quot; to select the nRF91. Then apply your sample and check, what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 nRF9160 printing messages to console</title><link>https://devzone.nordicsemi.com/thread/454952?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 14:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c870859-b59b-4ce3-aba7-2ffafc2d394e</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; what is running on the nRF52840?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.5.0/page/nrf/applications/connectivity_bridge/README.html"&gt;Connectivity bridge&lt;/a&gt; you may find that in the &lt;a href="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/thingy91/thingy91_fw_2023-10-26_1fae141f.zip"&gt;thingy91_fw_2023-10-26_1fae141f.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>