<?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>uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86978/uart_configure-error--134-using-uart_cfg_parity</link><description>I&amp;#39;m trying to use parity UART communications with the nrf52840 using nRF Connect SDK v1.9.1, but I&amp;#39;m getting an error -134 when I call uart_configure(). 
 When I use UART_CFG_PARITY_NONE or UART_CFG_PARITY_EVEN uart_configure() and following UART polling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jun 2025 09:37:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86978/uart_configure-error--134-using-uart_cfg_parity" /><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/538617?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 09:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5034e686-1326-4361-b7d0-cbcde4a304c6</guid><dc:creator>pushparaj</dc:creator><description>&lt;p&gt;Dont configure uart in main code delete it.&lt;br /&gt; just intitalize in project configure&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_NRFX&lt;/span&gt;&lt;span&gt;=y &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_1_NRF_PARITY_BIT&lt;/span&gt;&lt;span&gt;=y&lt;br /&gt;this will enable the odd parity bit&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/514217?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 11:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4afd3721-8dda-4195-b9c9-f64fce9c67e4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Closing this case since it&amp;#39;s very old, the supported parities are listed here for the nRF52833:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52833/page/uarte.html#ariaid-title46"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52833/page/uarte.html#ariaid-title46&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/514170?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 08:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4c075e-cf5b-40df-935d-3b832786fdbe</guid><dc:creator>cagri</dc:creator><description>&lt;p&gt;Hello. Are you saying that the nRF52833 does not support even parity? Are you sure about that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/363773?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 07:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5bdc7c5-6ad1-45a0-96b1-a52a4ca10588</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ah, I see now that only certain chips support odd parity, nrf52820, nrf52833 and nrf5340.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/363676?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 15:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0604801-ec73-48de-ac0d-28ec88cd51de</guid><dc:creator>Sean Montgomery</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/oivind"&gt;Øivind&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thanks for getting back to me. When I use&amp;nbsp;UART_CFG_PARITY_EVEN&amp;nbsp;uart_configure() returns zero (success), but when I use&amp;nbsp;UART_CFG_PARITY_ODD, I get a -134 error. Do I need to change any other settings to use odd?&lt;/p&gt;
&lt;p&gt;Below is the relevant code. All I&amp;#39;m changing is the commented out line for parity.&lt;/p&gt;
&lt;p&gt;Thanks, Sean&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;struct uart_config cfg;
cfg.baudrate = SAS_BAUD_RATE;
//cfg.parity = UART_CFG_PARITY_EVEN;
cfg.parity = UART_CFG_PARITY_ODD;
cfg.stop_bits = SAS_STOP_BITS;
cfg.data_bits = SAS_DATA_BITS;
cfg.flow_ctrl = SAS_FLOW_CTRL;

uart_data.parity = cfg.parity;  

ctrl_uart = device_get_binding(DT_LABEL(DT_NODELABEL(uart1)));
err = uart_configure(ctrl_uart, &amp;amp;cfg);
if (err != 0)
{
    printk(&amp;quot;cfg.parity : %u\n&amp;quot;, cfg.parity );
    printk(&amp;quot;ctrl_uart setup failed: %d\n&amp;quot;, err);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart_configure() error -134 using UART_CFG_PARITY</title><link>https://devzone.nordicsemi.com/thread/363503?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 09:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1394324-12f7-4791-b1d4-7cca00130757</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfx UART supports even and odd parity, not mark or space.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>