<?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>Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121892/connectivity-bridge-on-nrf52840-based-custom-board</link><description>Hi, 
 Tried to use Connectivity bridge app on a custom board based on NRF52840 and it seems that the UART-USB interface works initially, but after a while it gets stuck at communication level. The goal is to use it in the same way USBD_CDC_ACM sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jun 2025 09:02:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121892/connectivity-bridge-on-nrf52840-based-custom-board" /><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/538180?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 09:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d41466bd-d041-4991-97e0-de55122c424e</guid><dc:creator>Andrei H.</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. Attaching trace with the communication, with `uart_passthrough` example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logic_5F00_analyzer_5F00_UART0.sal"&gt;devzone.nordicsemi.com/.../logic_5F00_analyzer_5F00_UART0.sal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;* if I&amp;#39;m trying to send a char to the device it hangs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. For comparison, this is the logic analyzer trace with the&amp;nbsp;`&lt;span&gt;usbd_cdc_acm` sample:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/USBD_5F00_CDC_5F00_ACM_5F00_sample_5F00_variant.sal"&gt;devzone.nordicsemi.com/.../USBD_5F00_CDC_5F00_ACM_5F00_sample_5F00_variant.sal&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;* this variant works fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537973?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 06:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1350b813-b3a5-45ab-b301-fcb44633885b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to connect a logic analyzer on the 4 pins in questions, so we can see what is actually happening.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537915?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 15:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6a78fe-85af-4deb-b3aa-2f67167234d9</guid><dc:creator>Andrei H.</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve modified my custom_board.dts to have those but the result is the same. e.g.:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_RX,  0, 25)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_CTS, 0, 15)&amp;gt;;
			bias-pull-up;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_TX,  0, 11)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RTS, 0, 27)&amp;gt;;

		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX,  0, 11)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX,  0, 25)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_CTS, 0, 15)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RTS, 0, 27)&amp;gt;;
			low-power-enable;
		};
	};
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***
*** Using Zephyr OS v4.0.99-3e0ce7636fa6 ***
&amp;lt;&amp;lt;o2c: UART error: 0xc&amp;gt;&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update, I&amp;#39;ve run this with the delay, this is the result:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Delaying boot by 4000ms... ***
*** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***
*** Using Zephyr OS v4.0.99-3e0ce7636fa6 ***
&amp;lt;&amp;lt;o2c: UART error: 0xc&amp;gt;&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537909?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 15:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0720441-b2c3-4378-be8c-3c259006a378</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Floating RXD pin can cause such issue yes. If you don&amp;#39;t have the possibility to add an external pull-up, you can use the internal one, something like this (look for &amp;#39;bias-pull-up;&amp;#39; for the RXD pin):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	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;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537889?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 13:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3543b991-20d2-4d85-acf8-838487bf1cf1</guid><dc:creator>Andrei H.</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m using a custom board and the RXD is connected between the MCU and the peripheral there is no pull-up resistor. The passthrough is suppose to be between the USB-port `cdc_acm_uart0` and UART0 peripheral. For context, the `&lt;span&gt;USBD_CDC_ACM sample` works fine, only the `UART Passthrough` sample (and the `connectivity_bridge` sample) have&lt;/span&gt;&lt;span&gt; this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Could be that until USB is initialized some floating pins can cause this issue? so maybe `CONFIG_BOOT_DELAY` could ensure that the USB stack is properly initialized? (although I think I tried this and it didnt help).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537858?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 11:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e58e7c6a-f502-413d-8a36-881908e186f6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looks like you experience both an break and framing error, ref:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#ariaid-title31"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#ariaid-title31&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you add a pull-up resistor on the UART RXD line? Or ensure otherwise it&amp;#39;s always high when there is no serial data.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537731?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 18:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b8ea6b-5e70-429b-bf44-7704f764bfa3</guid><dc:creator>Andrei H.</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve tried that example and it doesnt seem to work, I get this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***
*** Using Zephyr OS v4.0.99-3e0ce7636fa6 ***
&amp;lt;&amp;lt;o2c: UART error: 0xc&amp;gt;&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve added support for CDC_ACM from the original description in this new example:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;custom_board.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE=y

CONFIG_UART_CONSOLE=y
CONFIG_UART_LINE_CTRL=y

CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zephyr USB console sample&amp;quot;
CONFIG_USB_DEVICE_PID=0x0004
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;custom_board.overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,console = &amp;amp;cdc_acm_uart0;
        uart,passthrough = &amp;amp;uart0;
	};
};

&amp;amp;zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
    };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537716?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 15:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f74fe2-f415-413c-81ab-f6cf2cb5044a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try this one:&amp;nbsp;&lt;a href="https://github.com/martelmy/NCS_examples/tree/main/peripherals/uart_passthrough"&gt;https://github.com/martelmy/NCS_examples/tree/main/peripherals/uart_passthrough&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: Connectivity bridge on NRF52840 based custom board</title><link>https://devzone.nordicsemi.com/thread/537478?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 06:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf7ecd6-4438-4e0e-aea7-09d803d0aab4</guid><dc:creator>Andrei H.</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;[Update]: &lt;a href="https://docs.zephyrproject.org/3.7.0/samples/drivers/uart/passthrough/README.html#uart-passthrough"&gt;UART Passthrough&lt;/a&gt;&amp;nbsp;behave the same, hangs at some point in communication.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>