<?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>Logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65218/logging</link><description>Hi all, I&amp;#39;m a little blown away by the complexity of logging for this application (its highly likely I&amp;#39;m missing a few key elements to my understanding). I&amp;#39;m under the impression that by default, the device logs to LTE Link Monitor. I can&amp;#39;t seem to get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Aug 2020 22:40:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65218/logging" /><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/267319?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 22:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a97360c-3e22-4c22-8630-97b47469a9ee</guid><dc:creator>Nevera</dc:creator><description>&lt;p&gt;It seems that reimporting my project created a new Project in Segger called &amp;quot;Project zephyr/merged.hex&amp;quot;. Now everything runs flawlessly. It appears that you were right, and that was the issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266793?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 15:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a555609-5964-40ea-98d6-80aae53438ab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which board are you&amp;nbsp;configuring your project for? I used nrf9160dk_nrf9160ns for my test.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Nevera"]I&amp;#39;m pretty sure I&amp;#39;m entirely missing a whole bunch of stuff in here. I&amp;#39;m not sure where this merged.hex file comes from, or what I&amp;#39;m supposed to do in &amp;quot;Target -&amp;gt; Download File&amp;quot;. The prompt opened is expecting me to give it a hex file, but I have no idea where from.[/quote]
&lt;p&gt;&amp;nbsp;When building for the non-secure region (nrf9160dk_nrf9160ns), you will trigger a multi-image build, as the secure region will be populated with the &amp;quot;spm&amp;quot; (secure partition manager), and non-secure with your actual example.&lt;/p&gt;
&lt;p&gt;Its important that you configure your project to be non-secure if you&amp;#39;re communicating with the modem, as it can only work in non-secure mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Once you have build your project, in case its a multi-build, a merged.hex is available in my-build-folder/zephyr/merged.hex. This will then include all images in the multi-image build (if used)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Nevera"]I followed a bunch of guides a while back, and I have no idea what I&amp;#39;ve removed/added/changed.[/quote]
&lt;p&gt;&amp;nbsp;In your project, there a build folder, typically named &amp;quot;build_whateverboardname&amp;quot;. Try deleting this folder, and re-importing your project in SES NordicEdition, to ensure you&amp;#39;re starting from scratch.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266485?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 12:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa2ba27-b925-49e2-8a18-1f30b5b5e98f</guid><dc:creator>Nevera</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok, I think I&amp;#39;m missing something here.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598443595036v1.png" alt=" " /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598443813592v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m pretty sure I&amp;#39;m entirely missing a whole bunch of stuff in here. I&amp;#39;m not sure where this merged.hex file comes from, or what I&amp;#39;m supposed to do in &amp;quot;Target -&amp;gt; Download File&amp;quot;. The prompt opened is expecting me to give it a hex file, but I have no idea where from.&lt;br /&gt;&lt;br /&gt;I followed a bunch of guides a while back, and I have no idea what I&amp;#39;ve removed/added/changed.&lt;br /&gt;&lt;br /&gt;Sorry to be so difficult, I&amp;#39;m just really struggling to understand.&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266471?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 11:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde054a4-da0d-414a-8ab2-38a344a218b3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suspect this is because SES-NordicEdition flashes only the application, while you actually have a multi-image setup, where you should download the merged.hex file.&lt;/p&gt;
&lt;p&gt;You can specify the file under &amp;quot;Target -&amp;gt; Download file&amp;quot;.&lt;/p&gt;
&lt;p&gt;Or you can use the Programmer application in nrf for desktop to program the merged.hex manually.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A third option: you can use nrfjprog, which you can install from the nRF command line tools:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;path/to/nrfjprog --program &amp;lt;merged.hex location&amp;gt; -f nrf91 --sectorerase&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if you get any output in RTT viewer?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266423?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 09:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af7ce296-071d-46dc-ae79-c94e650a1dbc</guid><dc:creator>Nevera</dc:creator><description>&lt;p&gt;To provide a little more insight, the &amp;quot;Unknown function&amp;quot; error occurs when I click the green play button in Segger after running Build &amp;amp; Run.&lt;br /&gt;&lt;br /&gt;Regardless, nothing shows in the RTT Viewer.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266413?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 09:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f71c2b-5a31-4c1c-b363-4354d40b95b0</guid><dc:creator>Nevera</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve erased the nrf91 using the nRF Connect programmer. I&amp;#39;m able to establish a connection using JLink RTT Viewer with the same connection settings as you, but the unknown function error remains.&lt;br /&gt;&lt;br /&gt;If the command line part is important, could you clarify that a little? nrfjprog isn&amp;#39;t defined in Bash/PowerShell/CMD (windows). I&amp;#39;ve seen where it is in the west_commands folder, but attempting to run it with python doesn&amp;#39;t succeed either.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll try running it in the hello world sample like you have next and see if theres something else going on.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging</title><link>https://devzone.nordicsemi.com/thread/266378?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 08:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e55f6d-4b39-45d6-b281-af92789a40a0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I took your sample src, and prj.conf, and pasted it into the &amp;quot;hello_world&amp;quot; sample.&lt;/p&gt;
&lt;p&gt;When opening JLinkRTTViewer, it shows the log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:15.459,381] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:15.609,466] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:15.759,552] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:15.909,637] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.059,753] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.209,838] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.359,924] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.510,009] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.660,095] &amp;lt;inf&amp;gt; main: looped loginf

00&amp;gt; [00:00:16.810,180] &amp;lt;inf&amp;gt; main: looped loginf&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I run into `Unknown function at 0xFFFFFFFE`.[/quote]
&lt;p&gt;Could you try to erase the device, then program it again? This can be done via &amp;quot;nrfjprog -e -f nrf91&amp;quot; from the command line.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I&amp;#39;m under the impression that by default, the device logs to LTE Link Monitor.[/quote]
&lt;p&gt;&amp;nbsp;This is true for UART devices, but there&amp;#39;s currently no RTT support, unfortunately. For RTT, you have to use JLink RTT Viewer.&lt;/p&gt;
&lt;p&gt;This is my configuration when opening the session:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-27c5284f46244049b242297c4bde1f15/pastedimage1598429133625v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it runs?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>