<?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/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91519/how-to-enable-disable-the-uart-with-ncs-zephyr</link><description>My BLE application needs to communicate with another &amp;#181;C using serial UART - so I started my app based on the sample in bluetooth/peripheral_Uart I&amp;#39;m have a nRF52_DK board (52832) and a custome hardware with the same features for testing. I&amp;#39;m currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2022 12:17:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91519/how-to-enable-disable-the-uart-with-ncs-zephyr" /><item><title>RE: How to enable/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/390641?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 12:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a0af97-eddd-4e32-903f-377dca2a17db</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The System can be woken up, when in System OFF mode, only by certain peripherals. You can refer the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_2#unique_220399309"&gt;System OFF mode documentation&lt;/a&gt; for this.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/389960?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 09:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ad9385-b31a-41fa-8631-59f69622ef22</guid><dc:creator>MDF</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I had a look at this other article, but nothing I tried helped me.&lt;/p&gt;
&lt;p&gt;I managed to get around the exception&amp;nbsp; - I&amp;#39;m not sure what I did, but I guess the LPUART feature was not enabled in Config - but now I have the issue that the GPIOs are not longer working.&lt;/p&gt;
&lt;p&gt;When my application is idle for more than 20 seconds (which means, there is not BLE connect) I going into PM_DEVICE_ACTION_SUSPEND and this seems to work because tge current goes to some 10 &amp;micro;A&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to use GPIO Port P0.07 for wakeup, simply by checking the Port signal in my main loop and this does not longer work. It works well without PM_DEVICE_ACTION_SUSPEND, although this refers to device_get_binding (&amp;quot;UART_0&amp;quot;) but it appears as if the whole chip goes into some deep sleep mode. The only way to wake up seems a hardware reset.&lt;/p&gt;
&lt;p&gt;The examples for LPUART seem to have a built-in wakeup behaviour - but I cant use this.&lt;/p&gt;
&lt;p&gt;can you tell me how to use the GPIOs while the UART is suspended ?&lt;/p&gt;
&lt;p&gt;thanks, Matthias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/384810?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 13:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32ea287-9faa-4264-a494-40fd2dd4d866</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Could you take a look at&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47578/nrf52832-uart-power-consumption"&gt; this ticket&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/384333?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 12:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e893f85b-b817-42fe-bc03-98d440c87476</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will be away for the weekend and will get back to you on Monday with a reply.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable/disable the UART with NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/384179?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 14:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26382dc8-17d9-47a3-a1ad-6403399dbb1b</guid><dc:creator>MDF</dc:creator><description>&lt;p&gt;I tried a code like this - but it causes a kernel crash:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;void uart_power_down()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; int err;&lt;br /&gt;&amp;nbsp;&amp;nbsp; enum pm_device_state uart0_power_state;&lt;br /&gt;&amp;nbsp;&amp;nbsp; const struct device* dev;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; dev = device_get_binding(CONFIG_BT_NUS_UART_DEV);&lt;br /&gt;&amp;nbsp;&amp;nbsp; err = pm_device_state_get(dev, &amp;amp;uart0_power_state);&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (uart0_power_state == PM_DEVICE_STATE_ACTIVE)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = pm_device_action_run(dev, PM_DEVICE_ACTION_SUSPEND);&amp;nbsp;&amp;nbsp; &amp;lt;-- crash!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (err) error();&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>