<?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>Device Tree, proj.conf and strange uart behaviour</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110322/device-tree-proj-conf-and-strange-uart-behaviour</link><description>What is going on here? 
 I&amp;#39;m trying to get the central_uart example to run on the xiao ble sense nrf52840 board but uart_init() fails when trying to set the callback: 
 
 uart_callback_set ( uart , uart_cb , NULL ); // This fails since no set function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Apr 2024 14:21:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110322/device-tree-proj-conf-and-strange-uart-behaviour" /><item><title>RE: Device Tree, proj.conf and strange uart behaviour</title><link>https://devzone.nordicsemi.com/thread/479490?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 14:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf5eb3d-8196-4687-9a95-5014aad575b7</guid><dc:creator>Jas39</dc:creator><description>&lt;p&gt;When set in the other order the buildsystem warned that&amp;nbsp;&lt;span&gt;CONFIG_UART_0_INTERRUPT_DRIVEN=y&amp;nbsp;when setting&amp;nbsp;CONFIG_UART_0_ASYNC=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I switched order and did not investigate further. Your statement is inline with my expectations on build that order should not matter.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Tree, proj.conf and strange uart behaviour</title><link>https://devzone.nordicsemi.com/thread/479480?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 14:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43a4e2a-3b36-486f-b7fb-2b29d5c82fcf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hm, the order should not matter. I recommend checking the generated .config file in build/zephyr if you want to verify if the symbol is set correctly. You should also see Kconfig warnings in the build log if assignments from your prj.conf are ignored due to missing dependencies or conflicting configurations.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713449022484v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Tree, proj.conf and strange uart behaviour</title><link>https://devzone.nordicsemi.com/thread/479467?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 13:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f987b32-a083-4b3f-adac-04c921b22f51</guid><dc:creator>Jas39</dc:creator><description>&lt;p&gt;Thanks Vidar.&lt;/p&gt;
&lt;p&gt;Worth noting is that order seems to be important, this sequence works:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;# Expilict async on uart0 to override USB CDC&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;CONFIG_UART_0_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;CONFIG_UART_0_ASYNC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Tree, proj.conf and strange uart behaviour</title><link>https://devzone.nordicsemi.com/thread/479429?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 12:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cd0ef91-a162-4f0f-a2e3-4db549455804</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;xiao ble sense board is using USB CDC for console, logging, etc, and the USB stack is not compatible with the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/hardware/peripherals/uart.html#uart-async-api"&gt;&lt;span&gt;Asynchronous API&lt;/span&gt;&lt;/a&gt;, only the&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/hardware/peripherals/uart.html#uart-interrupt-api"&gt;&lt;span&gt;Interrupt-driven API&lt;/span&gt;&lt;/a&gt;. However, it should be possible to &lt;span style="text-decoration:line-through;"&gt;disable&lt;/span&gt;&amp;nbsp; enable the ASYNC api for the uart0 node by setting&amp;nbsp;CONFIG_UART_0_INTERRUPT_DRIVEN=n and&amp;nbsp;&lt;span&gt;CONFIG_UART_0_ASYNC=y in your prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Edit:&amp;nbsp;&lt;/strong&gt;Replaced the word &amp;#39;disable&amp;#39; with &amp;#39;enable&amp;#39;. Attached below is also a modified version of the central UART sample I created to support the USB interface if you prefer that over using UART. (Note: it requires SDK v2.5.2 to build, as it has not been ported to v2.6.0).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_uart_5F00_w_5F00_usb_5F00_ncs_5F00_2_5F00_5_5F00_2.zip"&gt;devzone.nordicsemi.com/.../central_5F00_uart_5F00_w_5F00_usb_5F00_ncs_5F00_2_5F00_5_5F00_2.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>