<?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>Zephyr (nRF9160) UART: is it possible to configure UART flow control dynamically at runtime?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62108/zephyr-nrf9160-uart-is-it-possible-to-configure-uart-flow-control-dynamically-at-runtime</link><description>Is it possible to configure the Zephyr UART parameters like the hardware flow control dynamically at run time? We do that in an nRF52840 firmware with the nrfx libraries - but have so far failed in doing the same with Zephyr. We would like to build a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2020 13:29:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62108/zephyr-nrf9160-uart-is-it-possible-to-configure-uart-flow-control-dynamically-at-runtime" /><item><title>RE: Zephyr (nRF9160) UART: is it possible to configure UART flow control dynamically at runtime?</title><link>https://devzone.nordicsemi.com/thread/253310?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 13:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a7f39f-ccae-459b-ab67-8c23b4d1d23c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Pertti,&lt;/p&gt;
[quote user=""]Is there any other way to make this setting dynamic? Not a major problem for us, we can make separate firmwares for the use cases if this is not possible.[/quote]
&lt;p&gt;Using the Zephry driver API this will be decided compile time. The easiest way to do this dynamically is to use the nrfx UART driver directly instead, which gives you the flexibility to reconfigure everything at runtime.&lt;/p&gt;
[quote user=""]Also, there seemed to be an experimental Zephyr configuration CONFIG_UART_ASYNC_API available - but did not manage to find any information about the power consumption impact of enabling that. Is there such consumption measurement available?[/quote]
&lt;p&gt;I am not aware of that. However, please note that using the nrfx_uarte driver directly you can easily test both asynchronous and synchronous (blocking) modes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>