<?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>UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117364/uarte-shell-and-log-compatibility</link><description>Hello, 
 We were developing on an nRF52840 board with the NCS 2.6.1 SDK and had configured logging and shell capabilities via UART. Once we moved to the 2.8.0 version, we found that these were no longer working. We have found that if the shell configurations</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2025 11:57:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117364/uarte-shell-and-log-compatibility" /><item><title>RE: UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/thread/521701?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 11:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69d6d1ad-469e-4a19-a71b-660add023061</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;You are right. There are some changes have been intorduced since NCS 2.8.0 to NCS 2.9.0. The following commits seems related what you have observed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/149a9710639288199d1e3657054d31b6a5488acf"&gt;[nrf fromtree] drivers: serial: nrfx_uarte: Fix runtime PM for interr… · nrfconnect/sdk-zephyr@149a971 · GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you have a try to with NCS 2.9.0? I will contact the driver&amp;nbsp;developer if the problem still exist.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/thread/521611?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 16:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930ff29d-f643-4cc7-beec-1362f2c9e9e7</guid><dc:creator>bvyates</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We ultimately found that we needed to disable CONFIG_PM_DEVICE_RUNTIME in order to get the shell to work. I looked through the commit history of the Nordic UART drivers in the Zephyr repository, and did see that runtime power management logic was added to the uarte code fairly recently. That would be why our functionality broke when moving from NCS version 2.6.1 to 2.8.0 I believe.&lt;/p&gt;
&lt;p&gt;There may be a bug in the shell UART backend then that the peripherals are not being enabled properly with the power management scheme. Maybe there is something else we are supposed to run from our application to enable power to UART hardware, but this was not necessary for other UART modules (ex logging without shell), so I suspect it is a shell backend problem.&lt;/p&gt;
&lt;p&gt;Regardless, this seems like something that would eb useful to address in the release notes or migrations guide.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/thread/517492?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 13:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fffb0ef-315b-4a70-be4a-0de5c583482f</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;Happy New Year! I hope you’ve made some progress since our last communication.&lt;/p&gt;
&lt;p&gt;Based on the information you’ve shared, here are some debugging thoughts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Example Application as a Baseline&lt;/strong&gt;&lt;br /&gt;If the example application works as expected, that’s a good sign. I recommend modifying the sample application step by step to incorporate your custom application. This approach is typical for development and even for updating to a new NCS version(when big system level changes make upgrading complicated).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Changes in NCS Versions&lt;/strong&gt;&lt;br /&gt;Moving from v2.6.1 to v2.8.0 introduces sysbuild support (starting with v2.7.0). While sysbuild includes some &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/app_dev/config_and_build/sysbuild/sysbuild_forced_options.html"&gt;Sysbuild forced options&lt;/a&gt;, I don’t believe any of them are directly related to the issue at hand. However, you should review the &lt;code&gt;build\zephyr\.config&lt;/code&gt; file for any potentially suspicious configurations used by all images. Keep in mind that &lt;code&gt;build\app\zephyr\.config&lt;/code&gt; is the configuration file specifically used for your application image.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Addressing the I2C Issue&lt;/strong&gt;&lt;br /&gt;I suggest disabling the I2C feature for now to focus on resolving the primary issue. Once the main problem is addressed, you can test and verify the I2C functionality separately. If necessary, feel free to open another ticket to get dedicated support for the I2C issue.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let me know if you need further assistance!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/thread/516186?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2024 22:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e86ec7e-a4bf-46a5-8323-d90b71a8ff56</guid><dc:creator>bvyates</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Thank you for your response. I have also been able to get the shell and logging working in the example application, but have still not been able to get any UART activity while using the shell and UARTE in our custom application. I&amp;#39;ve combed through the generated config files for&amp;nbsp;our application and the sample code, but have not seen anything missing from our file.&lt;br /&gt;&lt;br /&gt; Since our configuration was working without issue on v2.6.1, I was trying to understand if there are any known changes from v2.6.1 to v2.8.0 relating to UART that might be the cause of our breakage.&lt;/p&gt;
&lt;p&gt;Since my original post I have also been running into I2C issues with the nrf-twim module on the nRF54L15, whereas we were previously using nrf-twi on the nRF52840. My understanding is that nrf-twim and nrf-uarte are both the DMA driver version for their respective protocols, so maybe there is some connection there? But it might be a completely unrelated issue.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Shell and Log compatibility</title><link>https://devzone.nordicsemi.com/thread/515542?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 15:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c828ad46-b038-49b4-a2e5-34036bd889b8</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;As you can see from&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html"&gt;UARTE — Universal asynchronous receiver/transmitter with EasyDMA&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uart.html"&gt;UART — Universal asynchronous receiver/transmitter&lt;/a&gt;, UART0/UARTE0 are same pheripherical using same register address, and it is enable as &amp;quot;nrf-uarte&amp;quot; compitable by default.&lt;/p&gt;
&lt;p&gt;I did a quick check with&amp;nbsp;ncs\v2.8.0\zephyr\samples\subsys\shell\shell_module sample, both shell and log modules work as expected.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
[00:00:00.373,443] &amp;lt;inf&amp;gt; app: Sample start to run

uart:~$ 
uart:~$ help
Please press the &amp;lt;Tab&amp;gt; button to see all available commands.
You can also use the &amp;lt;Tab&amp;gt; button to prompt or auto-complete all commands or its subcommands.
You can try to call commands with &amp;lt;-h&amp;gt; or &amp;lt;--help&amp;gt; parameter for more information.

Shell supports following meta-keys:
  Ctrl + (a key from: abcdefklnpuw)
  Alt  + (a key from: bf)
Please refer to shell documentation for more details.

Available commands:
  bypass              : Bypass shell
  clear               : Clear screen.
  date                : Date commands
  demo                : Demo commands
  device              : Device commands
  devmem              : Read/write physical memory
                        Usage:
                        Read memory at address with optional width:
                        devmem &amp;lt;address&amp;gt; [&amp;lt;width&amp;gt;]
                        Write memory at address with mandatory width and value:
                        devmem &amp;lt;address&amp;gt; &amp;lt;width&amp;gt; &amp;lt;value&amp;gt;
  dynamic             : Demonstrate dynamic command usage.
  help                : Prints the help message.
  history             : Command history.
  kernel              : Kernel commands
  log                 : Commands for controlling logger
  log_test            : Log test
  rem                 : Ignore lines beginning with &amp;#39;rem &amp;#39;
  resize              : Console gets terminal screen size or assumes default in
                        case the readout fails. It must be executed after each
                        terminal width change to ensure correct text display.
  retval              : Print return value of most recent command
  section_cmd         : Demo command using section for subcommand registration
  shell               : Useful, not Unix-like shell commands.
  shell_uart_release  : Uninitialize shell instance and release uart, start
                        loopback on uart. Shell instance is reinitialized when
                        &amp;#39;x&amp;#39; is pressed
  stats               : Stats commands
  version             : Show kernel version
uart:~$ &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can find the following modification I made for testing. You can refer to this sample to check your application codes.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs280_5F00_shell_5F00_module.patch"&gt;devzone.nordicsemi.com/.../ncs280_5F00_shell_5F00_module.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>