<?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>[queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86083/queue-queue-sometimes-give-more-than-expected</link><description>Hi Nordic, 
 I met a issue on BUS FAULT , which caused by queue. 
 It core dumps that: 
 [2022-03-22 15:35:12.657] [xxx]index = 6,len = 158 [2022-03-22 15:35:12.660] [xxx]index = 6,len = 164 
 [2022-03-[00:01:17.729,248] &amp;lt;err&amp;gt; os: ***** BUS FAULT ***</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 12:26:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86083/queue-queue-sometimes-give-more-than-expected" /><item><title>RE: [queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/thread/359796?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 12:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09135c8b-92a8-4f48-b15d-451f116594d4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Ben&lt;/p&gt;
&lt;p&gt;Are you able to share your project with me so I can have a look at it?&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to share your code in a public case I can make the case private.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/thread/359694?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 01:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff6fe79-2c41-49c3-8018-65e1ba810285</guid><dc:creator>Ben.su</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using the sample to communicate with uart periperal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think the significant change is that I remove the uart adapter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ben&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/thread/359591?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 11:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36b50d78-48c9-4752-9d15-554f5b58c8bc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Ben&lt;/p&gt;
&lt;p&gt;What are you doing when the issue occurs?&lt;/p&gt;
&lt;p&gt;Are you sending some particular string to the device over the UART BLE service?&lt;/p&gt;
&lt;p&gt;Have you made any other significant changes to the sample, other than changing the configuration?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/thread/359473?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 01:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5d1a9b-a294-44d9-a4be-f91b2a993877</guid><dc:creator>Ben.su</dc:creator><description>&lt;p&gt;Hi Ovrebekk,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I pushed FIFO twice, maybe I can check it.&lt;/p&gt;
&lt;p&gt;And the code is based on &amp;#39;&lt;span style="color:#33cccc;"&gt;nrf/samples/bluetooth/peripheral_uart&lt;/span&gt;&amp;#39; sample.&lt;/p&gt;
&lt;p&gt;But I do NOT use the uart adapter. Instead, I set the configuration bellow:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#33cccc;"&gt;# Disable interrupt support on port 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#33cccc;"&gt;CONFIG_UART_1_INTERRUPT_DRIVEN=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#33cccc;"&gt;# Enable Asynchronous API support on port 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#33cccc;"&gt;CONFIG_UART_1_ASYNC=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Ben&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [queue] queue sometimes give more than expected</title><link>https://devzone.nordicsemi.com/thread/359393?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 13:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d96bcc-2e0b-47fa-90a8-5a8839d744d2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Ben&lt;/p&gt;
&lt;p&gt;k_fifo_get(..) shouldn&amp;#39;t return twice with the same buffer, unless you have pushed the same buffer to the FIFO twice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any chance you are calling k_fifo_get(..) from an interrupt?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume the code is based on the peripheral_uart sample?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>