<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87723/nrf5340dk-cte-extension-is-present-but-data-is-missing</link><description>Hi, 
 
 I have been evaluating the nRF5340dk for our application purposes and I am currently investigating on how the bluetooth directional finding works. 
 
 I happened to encounter an issue with the zephyr and nordic connectionless tx/rx examples, where</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 16 May 2022 13:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87723/nrf5340dk-cte-extension-is-present-but-data-is-missing" /><item><title>RE: nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/thread/368065?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 13:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:266d4290-3a2a-4de0-9a27-2c573d7956e8</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I had a second look at your initial ticket and see that your log states that the nRF Connect SDK version used is v1.7.0. I asked the developers, and unfortunately, assignment of GPIO for antenna switch control was not added until the most recent version, and will be added in v2.0.0 of the nRF Connect SDK. Sorry about the misunderstanding. So how it is supported in your version, is unfortunately as the locator in an AoD application or a transmitter in an AoA application where it won&amp;#39;t need an antenna array.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/thread/367789?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 10:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8586700-4756-40ef-8024-7cea2de0c23b</guid><dc:creator>user115884</dc:creator><description>&lt;p&gt;Yes, I have done these and I have also tested the nrf examples where those child_image folders are all set and configured, the same thing happens.&lt;br /&gt;&lt;br /&gt;The problem is with opcode 0x2053 (enable HCI RX) which when sent from the application core to the network core cointains 10 bytes. When the network core parses the command, it expects 8 bytes for the parameter size after the packet indicator and the header (appointed by the header -&amp;gt; param_length) but there are 6 bytes left. This triggers the check, which then causes the network core to never enable CTE RX and also never give the sync semaphore, resulting in timeout on the application core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/thread/367616?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 12:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f97c147f-e93a-406e-9aac-7d171f3d7d00</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, have you done the necessary configurations in order to make the direction finding applications run on an nRF5340 DK? As mentioned in both the TX and RX samples, for the nRF53 DK, the Bluetooth LE controller is part of a child image aimed to run on the network core. Configuration for the child image is stored in the child_image/ subdirectory.&lt;/p&gt;
&lt;p&gt;Also, to build the connectionless TX for AoA (or RX for AoD) you need to add the content of the overlay-aoa.conf file to your child_image/hcirpmsg.conf file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/thread/367299?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 06:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d22f8f3-edcb-4bdb-a951-e3b7f7517739</guid><dc:creator>user115884</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It&amp;#39;s the line 304 in the hci_core.c which calls for k_sem_take that sends the -11 (-EAGAIN) value:&lt;br /&gt;err = k_sem_take(&amp;amp;sync_sem, HCI_CMD_TIMEOUT);&lt;br /&gt;&lt;br /&gt;I have tried to track the issue a bit, so for what I have found is that the issue comes when the function bt_hci_cmd_send_sync is called with opcode 0x2053 which is the HCI operation code for enabling CTE RX.&lt;br /&gt;&lt;br /&gt;I have tried to increase the HCI_CMD_TIMEOUT manually (built in value seems to be set at K_SECONDS(10)) but it seems that either the operation with opcode 0x2053 never completes or&amp;nbsp;it is not&amp;nbsp;properly increasing the sync_sem value upon completion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;I found something more, which hopefully helps to resolve the issue:&lt;br /&gt;&lt;br /&gt;On the cpunet side the event shows in error log as &amp;quot;Command payload length is not correct&amp;quot;, which is a result of line 67 in main.c of the sample hci_rpmsg application for the cpunet.&lt;/p&gt;
&lt;p&gt;So what happens is that the cpuapp tries to send the HCI enable CTE RX command with opcode 0x2053, but either the payload it sends is faulty or the cpunet sample application cannot handle the command/payload correctly.&lt;/p&gt;
&lt;p&gt;As a result, the sync_semaphore is never given and the k_sem_take call blocks until the timeout, but the cause for all exsist in somewhere between how the enable CTE RX command is sent by the cpuapp and how it is handled by the cpunet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340dk CTE extension is present but data is missing</title><link>https://test-devzone.nordicsemi.com/thread/367170?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 12:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:507d8e5d-895a-4d59-bd64-9763e031657e</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What function is it that returns the EAGAIN error exactly? This error generally points to that you either should try again or that there are no more processes/contexts, depending on the function returning this error. Doesn&amp;#39;t seem to be in the hci_core.c since it fails with an assertion fail.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>