<?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 modbus rtu server device tree configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111774/zephyr-modbus-rtu-server-device-tree-configuration</link><description>Hi, 
 I&amp;#39;m trying to use the samples/subsys/modbus/rtu_server/ sample. We use the st3485eb as rs485 driver. The problem is that I don&amp;#39;t receive any data. 
 I&amp;#39;m converting our product from the nordic propritary code to zephyr. The nordic code works perfectly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2024 13:25:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111774/zephyr-modbus-rtu-server-device-tree-configuration" /><item><title>RE: Zephyr modbus rtu server device tree configuration</title><link>https://devzone.nordicsemi.com/thread/487930?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 13:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d841b479-4e8f-4c04-b41e-acbd87fe6695</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You have found some solution that is really great.&lt;/p&gt;
&lt;p&gt;However, t&lt;span&gt;&lt;span dir="ltr"&gt;he pins can be set correctly in the register and at the same time still be used by other peripheral and not work.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;There is an easy way to read register value like&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;NRF_UARTE1-&amp;gt;PSEL.TXD and NRF_UARTE1-&amp;gt;PSEL.RXD&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr modbus rtu server device tree configuration</title><link>https://devzone.nordicsemi.com/thread/487771?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 14:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9f9a14-9eae-4b89-b22b-beb5807533b4</guid><dc:creator>avos</dc:creator><description>&lt;p&gt;I printed out the uart registers directly:&lt;/p&gt;
&lt;p&gt;uint32_t *p = (uint32_t *) (0x40028000 + 0x508);&lt;br /&gt;NRF_LOG_INFO(&amp;quot;txd: %d\n&amp;quot;, *(p + 1));&lt;br /&gt;NRF_LOG_INFO(&amp;quot;rxd: %d\n&amp;quot;, *(p + 3));&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;It showed that the rx and tx pins are correct, so this is not the problem. Sorry to bother you, thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr modbus rtu server device tree configuration</title><link>https://devzone.nordicsemi.com/thread/487358?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 14:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572d09cc-b759-428d-bc5c-8ee7c8df0499</guid><dc:creator>avos</dc:creator><description>&lt;p&gt;No, the hardware is fixed, I cannot change that. And as I said, with the nordic code (without zephyr) it works this way. Or is there a problem with zephyr and and p0.4 and p0.5 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr modbus rtu server device tree configuration</title><link>https://devzone.nordicsemi.com/thread/487354?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 14:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ca790c-734a-41a0-9731-40c404fb246d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you use GPIO pin P1.1 as RX and pin p1.2 as TX in the pincontrol file?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart1_default: uart1_default {
group1 {
psels = &amp;lt;NRF_PSEL(UART_RX, 1, 1)&amp;gt;;
bias-pull-up;
};
group2 {
psels = &amp;lt;NRF_PSEL(UART_TX, 1, 2)&amp;gt;;
};
};

uart1_sleep: uart1_sleep {
group1 {
psels = &amp;lt;NRF_PSEL(UART_RX, 1, 1)&amp;gt;,
&amp;lt;NRF_PSEL(UART_TX, 1, 2)&amp;gt;;
low-power-enable;
};
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>