<?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>Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72012/change-uart-baud-rate-nrf5340-w-nrfconnect-sdk</link><description>Hello, 
 
 I am wondering where to change the baud rate for the UART in the NRFConnect SDK using zephyr. I am working with the peripheral_uart example. 
 
 Thanks, 
 RJ</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 10:41:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72012/change-uart-baud-rate-nrf5340-w-nrfconnect-sdk" /><item><title>RE: Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/thread/297450?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 10:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:807a7c53-158c-4092-86ca-36d1bc482ecf</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you checked what it&amp;#39;s set to in the file &lt;em&gt;&amp;lt;application&amp;gt;/&amp;lt;build&amp;gt;/zephyr/zephyr.dts&lt;/em&gt;? Search for&lt;code&gt; uart1&lt;/code&gt; an check what&amp;nbsp;&lt;code&gt;current-speed&lt;/code&gt; is equal to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/thread/297292?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 17:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62082fb-1584-4145-a938-71fe20c673f1</guid><dc:creator>RJengr</dc:creator><description>&lt;p&gt;Simon I changed the baud rate in the overlay file. However, it is still outputting a baud rate off 115.2k instead of a baud rate of 9600. See logic analyzer data and overlay file below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/* SPDX-License-Identifier: Apache-2.0 */

&amp;amp;uart1 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
        current-speed = &amp;lt;9600&amp;gt;; //&amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;33&amp;gt;;
	rx-pin = &amp;lt;32&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_03_2D00_02-at-10.59.56-AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/thread/296488?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 10:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a923aeeb-2645-40fc-8dbc-3f459b993b05</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I talked to the developer of the central_uart and peripheral_uart samples and the file prj.overlay does basically nothing. The file will be removed soon. Please add it to an overlay file in the following manner: &amp;lt;board name&amp;gt;.overlay. Check out&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/dts/howtos.html#set-devicetree-overlays"&gt;Set devicetree overlays&lt;/a&gt;&amp;nbsp;for more information about this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/thread/296341?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 15:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2efa0682-54af-4bf6-b191-03b1fda20383</guid><dc:creator>RJengr</dc:creator><description>&lt;p&gt;There is a prj.overlay file in the project already with a declaration of Uart0. is this the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UART baud rate NRF5340 w/ NRFConnect SDK</title><link>https://devzone.nordicsemi.com/thread/296332?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 15:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b6bae9-811b-4255-bfef-e1a23ce629e1</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try adding an overlay file nrf5340dk_nrf5340_cpuapp.overlay (use the same board-name as the one you&amp;#39;re bulding with) to your project with the following content:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;new baud rate&amp;gt;; //&amp;lt;115200&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That will overwrite the default speed set in &amp;lt;ncs location&amp;gt;\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>