<?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 Baud to non-standard value in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69701/uarte-baud-to-non-standard-value-in-zephyr</link><description>To setup the UARTE for use in Zephyr I&amp;#39;ve configured a nrf52840dk_nrf52840.overlay as Zephyr documentation suggests: 
 
 
 
 &amp;amp; uart1 { 
 
 compatible = &amp;quot;nordic,nrf-uarte&amp;quot; ; 
 
 current-speed = &amp;lt; 1000000 &amp;gt;; 
 
 status = &amp;quot;okay&amp;quot; ; 
 
 tx-pin = &amp;lt; 14 &amp;gt;; 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Dec 2020 15:04:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69701/uarte-baud-to-non-standard-value-in-zephyr" /><item><title>RE: UARTE Baud to non-standard value in Zephyr</title><link>https://devzone.nordicsemi.com/thread/286094?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 15:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0d7079-7f66-473e-a234-c4fbcd9b56d5</guid><dc:creator>_r_y_a_n</dc:creator><description>&lt;p&gt;I have found a working solution by setting the BAUDRATE register directly,&amp;nbsp;following the solution described on this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.particle.io/t/solved-non-standard-baud-rate/48064"&gt;https://community.particle.io/t/solved-non-standard-baud-rate/48064&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I calculated the register value using previous posts on this forum such as:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/391/uart-baudrate-register-values"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/391/uart-baudrate-register-values&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For future reference:&amp;nbsp;&lt;span&gt;It is probably important to note, i&lt;/span&gt;n the specific case of Zephyr setup the .overlay file still needs a standard baud rate when the device starts up, otherwise it will crash when that UART tries to initialise because it will find no value in the lookup table of &lt;span&gt;uart_nrfx_uarte.c&lt;/span&gt;. Then anytime after this it is possible to reset to BAUDRATE register to the desired value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>