<?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>New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96047/new-target-board-w-nrf-connect</link><description>I&amp;#39;ve got a new target board based on the nRF52810_xxAA_REV2. I can see it as a connected device in nRF Connect. 
 I built a new application called CM_Serial using the Nordic UART Bridge Service (NUS) sample as a template. 
 Then I built a new board called</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Feb 2023 13:20:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96047/new-target-board-w-nrf-connect" /><item><title>RE: New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/thread/407544?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 13:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc49c98e-7e89-4da1-bc06-9fb8f52dffa4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not sure exactly what that build error refers to. Would you mind sending me the current project that you are using, so that I can have a look? (I see that you uploaded a version in a previous reply, but I understand from this reply that you made some progress since then.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/thread/406942?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 22:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a2a822-f865-401f-9a17-105091472e69</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;It turns out that the failure in main.c for api-&amp;gt;callback_set was due to the following flag being undefined:&amp;nbsp;CONFIG_UART_ASYNC_API.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;I can get that flag to be defined by setting the &amp;quot;Asynchronous UART API&amp;quot; in kconfig. Again, I think this is a bug in the template, since it should have been copied over.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The next error I see is this:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:\ncs\v2.2.0-rc1\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:218:9: error: static assertion failed: &amp;quot;/soc/uart@40002000 defined without required pin configuration&amp;quot;
  218 |         BUILD_ASSERT((IS_ENABLED(CONFIG_PINCTRL) &amp;amp;&amp;amp; &lt;/pre&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;Which looks like a problem with pin assignments. But this should have been taken care of by the SoC dts file, since the UART pins are in a fixed location.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It looks like the &amp;quot;nRF pin controller driver&amp;quot; is associated with the CONFIG_PINCTRL flag so I enabled that in Kconfig under the nRF UART nrfx drivers section. That didn&amp;#39;t change the error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;While looking at the UART0 stuff, I see that there are many other flags that I think should have been copied over from the template - parity, ram buffer size, etc. This looks like another bug in the template copy process.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/thread/406936?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 21:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11ae0b8b-bcf6-4753-aceb-e7fa084a4507</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;I&amp;#39;m continuing to play with the app.overlay file to get the project to build. I added the following to app.overlay to turn on uart0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;ok&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then I see that uart0 is enabled in the output file zephyr.dts&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		uart0: uart@40002000 {
			compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
			reg = &amp;lt; 0x40002000 0x1000 &amp;gt;;
			interrupts = &amp;lt; 0x2 0x1 &amp;gt;;
			status = &amp;quot;ok&amp;quot;;
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m successfully changing the status to &amp;quot;ok&amp;quot;. But I think this is a bug in the UART Bridge template, since it should have been copied over from the template project correctly.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still getting the following warning messages from cmake and I&amp;#39;m not sure if they are important.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake Warning at C:/ncs/v2.2.0-rc1/zephyr/CMakeLists.txt:824 (message):
  No SOURCES given to Zephyr library: drivers__console

  Excluding target from build.


CMake Warning at C:/ncs/v2.2.0-rc1/zephyr/CMakeLists.txt:824 (message):
  No SOURCES given to Zephyr library: drivers__gpio

  Excluding target from build.


CMake Warning at C:/ncs/v2.2.0-rc1/zephyr/CMakeLists.txt:1833 (message):
  __ASSERT() statements are globally ENABLED
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And now I&amp;#39;m seeing an error in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:\Nordic\VS_Code\CM_serial\src\main.c:230:20: error: &amp;#39;const struct uart_driver_api&amp;#39; has no member named &amp;#39;callback_set&amp;#39;
  230 |         return (api-&amp;gt;callback_set != NULL);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/thread/406739?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 18:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11660bf-9e61-46c5-b883-bac7300a2832</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;I do have the app.overlay file in my project and it&amp;#39;s contents are identical to the one in the samples folder. My project files are attached here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CM_5F00_serial.zip"&gt;devzone.nordicsemi.com/.../CM_5F00_serial.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you say &amp;quot;board files&amp;quot;,&amp;nbsp;which specific file(s) do you mean and what should I look for? I&amp;#39;m looking at chargmate1.dts (created by the new-board wizard) and I see it includes &amp;lt;nordic/nrf52810_qfaa.dtsi&amp;gt;. That file, in turn includes&amp;nbsp;&amp;lt;nordic/nrf52810.dtsi&amp;gt; which contains this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		uart0: uart@40002000 {
			/* uart can be either UART or UARTE, for the user to pick */
			/* compatible = &amp;quot;nordic,nrf-uarte&amp;quot; or &amp;quot;nordic,nrf-uart&amp;quot;; */
			compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
			reg = &amp;lt;0x40002000 0x1000&amp;gt;;
			interrupts = &amp;lt;2 NRF_DEFAULT_IRQ_PRIORITY&amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I see the status is set to &amp;quot;disabled&amp;quot;. When I use kconfig to view the uart0 settings, I see this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/port0_5F00_in_5F00_kconfig.png" /&gt;&lt;/p&gt;
&lt;p&gt;Is my build problem because I have not defined the RX, TX, CTS, and RTS pins for the chip? Those pins are defined by the hardware so I&amp;#39;m surprised they don&amp;#39;t come pre-set by default. Or do I need to set something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New target board w/ nRF Connect</title><link>https://devzone.nordicsemi.com/thread/406648?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 12:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5f8521-8cfc-4452-aae6-70868b75d7e9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please look at the sample ncs\nrf\samples\bluetooth\peripheral_uart, and look at the app.overlay file. Do you have that in your application folder?&lt;/p&gt;
&lt;p&gt;If you do, I am not sure exactly what is missing, but it is something with your nus uart that isn&amp;#39;t configured correctly. Perhaps you are missing the uart0 in your board files. If you are stuck, can you please try to upload the project that you are working on (or at least one that will replicate the issue), and your board file, and I can have a look.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>