<?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 setup Zephyr for RTT logging with nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46083/how-to-setup-zephyr-for-rtt-logging-with-nrf9160</link><description>I&amp;#39;m using a modified at_client program running on an nRF9160. It runs ok as a nonsecure application, under spm. The program can flashed, breakpoints set, single stepped etc. - debugger connection is working ok under SES. I&amp;#39;ve tried different prj.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Apr 2019 09:47:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46083/how-to-setup-zephyr-for-rtt-logging-with-nrf9160" /><item><title>RE: How to setup Zephyr for RTT logging with nRF9160</title><link>https://devzone.nordicsemi.com/thread/184013?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 09:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c512adf9-15cf-43a4-b618-005c628341c3</guid><dc:creator>Pertti Kasanen</dc:creator><description>&lt;p&gt;Now things have worked properly. When using the &amp;quot;Configure nRF Connect SDK project&amp;quot; editor. &lt;br /&gt;&lt;br /&gt;When I was modifying prj.conf directly, something went wrong. I did not have a proper version control set up then for that project so cannot check what was the difference...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Zephyr for RTT logging with nRF9160</title><link>https://devzone.nordicsemi.com/thread/183993?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 08:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36257933-4afc-4d42-8f28-7b3769b56c23</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello. what project were you running when it worked? And when it didn&amp;#39;t? What did the .conf file look like in that case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Zephyr for RTT logging with nRF9160</title><link>https://devzone.nordicsemi.com/thread/181697?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 16:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a65995a-e0e4-4340-b4ab-323932251396</guid><dc:creator>Pertti Kasanen</dc:creator><description>&lt;p&gt;I have not really figured this out yet. Did not manage to copy the working configuration to another project yet...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Zephyr for RTT logging with nRF9160</title><link>https://devzone.nordicsemi.com/thread/181623?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 13:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e132229-7a42-4673-a7ec-4c1c547dba1b</guid><dc:creator>Pertti Kasanen</dc:creator><description>&lt;p&gt;Now after a few more experiments, RTT logging is working for the first time.&amp;nbsp;Need to test what made the difference. &lt;br /&gt;The working setup had only two lines with changes&lt;/p&gt;
&lt;pre&gt;CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=n
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Here is the conf that is working.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;CONFIG_TRUSTED_EXECUTION_NONSECURE=y

#CONFIG_NO_OPTIMIZATIONS=y
CONFIG_PRINTK=y
CONFIG_CONSOLE=y

# UART logging &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41742/nrf91-zephyr-enable-lte-logging"&gt;devzone.nordicsemi.com/.../nrf91-zephyr-enable-lte-logging&lt;/a&gt;
#CONFIG_LOG=y
#CONFIG_SERIAL=y
#CONFIG_STDOUT_CONSOLE=y
#CONFIG_UART_INTERRUPT_DRIVEN=y
# or disable it
CONFIG_SERIAL=y
CONFIG_STDOUT_CONSOLE=y

#&lt;a href="https://docs.zephyrproject.org/latest/guides/tools/nordic_segger.html#nordic-segger"&gt;docs.zephyrproject.org/.../nordic_segger.html&lt;/a&gt;
CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y
CONFIG_HAS_SEGGER_RTT=y
CONFIG_USE_SEGGER_RTT=y

#CONFIG_LOG_BACKEND_RTT=y
#CONFIG_SHELL_BACKEND_RTT=y
#CONFIG_LOG_BACKEND_RTT_FORCE_PRINTK=y&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>