<?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>SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75340/sdkv1-5-1-blinky-example-with-uart</link><description>Dear Nordic support, 
 i&amp;#39;m evaluating the Nordic nRF52840_Dongle with the SDK 1.5.1, inlucing Zephyr etc. I could successfully compile and load the Blinky-example (..\ncs\v1.5.1\zephyr\samples\basic\blinky\build_nrf52840dongle_nrf52840) and manipulated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 May 2021 12:19:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75340/sdkv1-5-1-blinky-example-with-uart" /><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/312364?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 12:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd97974c-a084-44d3-99f2-fcd3ed2b943e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sören,&lt;/p&gt;
&lt;p&gt;You cannot use&amp;nbsp;uart_tx() with&amp;nbsp;CONFIG_UART_INTERRUPT_DRIVEN, as that is only supported by the newer&amp;nbsp;CONFIG_UART_ASYNC_API. Note that&amp;nbsp;CONFIG_UART_ASYNC_API is also interrupt driven so there are typically no reason to use the older API unless you want to be conservative.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/312120?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 13:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c4a4c3-b006-42e2-a686-b32e6cc7e423</guid><dc:creator>SoerenBirth</dc:creator><description>&lt;p&gt;Thanks Einar,&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622121283946v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The key was just one line in the prj.conf file&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622121370435v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;after i deleted CONFIG_UART_INTERRUPT_DRIVEN it immediately worked!&lt;br /&gt;&lt;br /&gt;The next question will be, how do i get the interrupt based transfer started.&lt;br /&gt;&lt;br /&gt;Best regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;S&amp;ouml;ren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/312035?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 11:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db69abee-5cef-484f-9468-652495487eee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have attached a modified project that is working here. This works both on the DK and dongle. I tested with the default board file (zephyr\boards\arm\nrf52840dongle_nrf52840\nrf52840dongle_nrf52840.dts) with the Tx pin being P0.20, but using another pin should be no problem.&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0636.main.c"&gt;devzone.nordicsemi.com/.../0636.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Config:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8015.prj.conf"&gt;devzone.nordicsemi.com/.../8015.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Logic analyzer&amp;nbsp;plot:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/logic_5F00_analyzer_5F00_trace.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/311640?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 06:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c74ba6-4508-4c45-97ce-d9c72c4a71df</guid><dc:creator>SoerenBirth</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2437.blinky.rar"&gt;devzone.nordicsemi.com/.../2437.blinky.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;no i did not manage it. But here is my project.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;S&amp;ouml;ren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/311561?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 15:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e60213a0-fcb8-4c75-83c4-8bc15ccd6d7c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sören,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay.&amp;nbsp;Have you made any progress on this? If not, perhaps you can upload your project here so I can look at it and try to build it on my side?&lt;/p&gt;
[quote user="SoerenBirth"]But, why do i have to copy a file prj.overlay in the project with the same content as the zephyr.dts file???[/quote]
&lt;p&gt;You do not, I did not spot that it was in there before. All should be good in this regard then (the prj.overlay is a overlay to the dts, in much the same as the prj.conf is a overlay for the Kconfig configuration, though it is unfortunately not well documented).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/311098?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 14:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981dca9b-097e-4076-8ae9-60125b0238df</guid><dc:creator>SoerenBirth</dc:creator><description>&lt;p&gt;Okay,&lt;/p&gt;
&lt;p&gt;after i copied the prj.overlay file in my project, it compiles no more...&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1621607148553v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;nrfx_config.h is missing...&lt;br /&gt;&lt;br /&gt;But, why do i have to copy a file prj.overlay in the project with the same content as the zephyr.dts file??? I think i don&amp;#39;t have understoond this Config-File concept at all... and yes i have read the docs, multiple times!!!&lt;/p&gt;
&lt;p&gt;Content of prj.overlay:&lt;br /&gt;&amp;amp;uart0 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Content of zephyr.dts:&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;uart0: uart@40002000 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reg = &amp;lt; 0x40002000 0x1000 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt; 0x2 0x1 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = &amp;quot;okay&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;label = &amp;quot;UART_0&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;strong&gt;compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;current-speed = &amp;lt; 0x1c200 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;tx-pin = &amp;lt; 0x14 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;rx-pin = &amp;lt; 0x18 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;rts-pin = &amp;lt; 0x11 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;cts-pin = &amp;lt; 0x16 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This makes no sense to me, sorry.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;S&amp;ouml;ren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/311069?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 13:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:780b5f68-9fe2-4472-8ed9-3d2f2aa31573</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sören,&lt;/p&gt;
&lt;p&gt;When you use&amp;nbsp;CONFIG_UART_ASYNC_API=y you also need to specify uarte in the device tree, so referring to nrf\samples\bluetooth\peripheral_uart\ again you can look at prj.overlay (simply copy that to your project).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/310811?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 14:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c93027b-0d7a-434d-ab65-d28a5147957e</guid><dc:creator>SoerenBirth</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;1. and 2. are clear now.&lt;/p&gt;
&lt;p&gt;After i changed the proj.conf to:&lt;/p&gt;
&lt;p&gt;CONFIG_GPIO=y&lt;br /&gt;CONFIG_UART_INTERRUPT_DRIVEN=y&lt;br /&gt;CONFIG_SERIAL=y&lt;br /&gt;CONFIG_UART_ASYNC_API=y&lt;/p&gt;
&lt;p&gt;there is an address connected to the handler, but there is still now traffic on the pins (i used tx-pin = &amp;lt;0x14&amp;gt; and rx-pin = &amp;lt;0x18&amp;gt;). I&amp;#39;ve checked this with a logic analyser.&lt;br /&gt;&lt;br /&gt;As i understand it, i only need the uart_tx() function to send something, am i right? Or is there another config that i have to set.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1621521866850v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/uart.html"&gt;developer.nordicsemi.com/.../uart.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;==edit==&lt;/p&gt;
&lt;p&gt;ret = uart_tx(uart_0_handle, &amp;amp;message, sizeof(message), SYS_FOREVER_MS );&lt;/p&gt;
&lt;p&gt;returns -35 -&amp;gt; &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;-ENOTSUP&lt;/span&gt;&lt;/code&gt;: If driver does not support getting current configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why the driver is not supported? Which driver is supported?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;S&amp;ouml;ren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDKv1.5.1 Blinky example with UART</title><link>https://devzone.nordicsemi.com/thread/310801?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 14:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950f0434-c9aa-4e19-bcf9-f6f0ee32d245</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Sören,&lt;/p&gt;
[quote user=""]1.) On which pins at the dongle, can i map the UART RX and TX pins?! Normally on a microcontroller i have a bunch of options, in the Nordic docs it looks like i can map them anywhere, can I? Precisely this configuration is feasible[/quote]
&lt;p&gt;Any digital GPIO pin can be used for UART. See &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=4_0_0_6_0"&gt;Pin assignments&lt;/a&gt;.&lt;/p&gt;
[quote user=""]2.) In the docs and even in the video the pins are numbered like &amp;quot;30&amp;quot;, &amp;quot;31&amp;quot; and so on. But the in ref-maunal and the schematic there ist port number AND the pin number , e.g 0.12, 1.15, how do i address 1.15, when i want to used it as a UART pin in the config overlay file?[/quote]
&lt;p&gt;The pin numbers you provide is x if using P0.x and y + 32 if using P1.y.&lt;/p&gt;
[quote user=""]3.) In the picture below, there is my code of the blinky example, including my attemps of using the UART via the zephyr-API. The Problem is, that the &amp;quot;device_get_binding&amp;quot; - function returns a NULL-pointer. I have no idea why.&amp;nbsp;[/quote]
&lt;p&gt;Have you enabled UART0 in prj.conf? You can refer to a sample that use UART, for instance&amp;nbsp;nrf\samples\bluetooth\peripheral_uart\&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>