<?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>Using freertos queue &amp;amp; uart1 with dynamic ble and threads</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51552/using-freertos-queue-uart1-with-dynamic-ble-and-threads</link><description>Hi, 
 I&amp;#39;m trying to utilise UART1 and freertos queues, with dynamic b;e&amp;amp;threads. 
 I&amp;#39;m trying to use the serial api for the UART. 
 I&amp;#39;ve tested the code below with the freertos_coap_server example, and it works fine. 
 The freertos queues pass data from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2019 08:23:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51552/using-freertos-queue-uart1-with-dynamic-ble-and-threads" /><item><title>RE: Using freertos queue &amp; uart1 with dynamic ble and threads</title><link>https://devzone.nordicsemi.com/thread/207044?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 08:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b217b28-0bfe-4a7b-8751-36ef4ea716ac</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="ce-paulgrant"]but will the deletion of the init for power give problems not yet seen?[/quote]
&lt;p&gt;&amp;nbsp;Hi Paul,&lt;/p&gt;
&lt;p&gt;I do not think that you can use nrf_drv_powerwith the combination of softdevice. The implementation seems to be accessing POWER/CLOCK registers directly, which are restricted peripherals. So commenting out the initialization of this module actually seems necessary.&lt;/p&gt;
&lt;p&gt;About the queues not working as they should, This is the basic freertos features that should not be affected by the port changes we did. So I am thinking that this is something specific to your app design. It is hard for me to analyze why the queues are not workingas I do not have the picture of other different contexts working in your app. But you can track the path of these queues by stepping into the code in the debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using freertos queue &amp; uart1 with dynamic ble and threads</title><link>https://devzone.nordicsemi.com/thread/206829?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 10:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1edc188d-4b7a-42ae-bc1c-050880a03bb7</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally forgot to mention. One difference between the serial uart thread which worked correctly in the&lt;/p&gt;
&lt;p&gt;example without ble, but not in the dynamic ble example was that I had to delete:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ret = nrf_drv_power_init(NULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;line above which initialised power driver&lt;/p&gt;
&lt;p&gt;A further question, is this line necessary for the uart to function correctly.&lt;/p&gt;
&lt;p&gt;Currently the uart1 is accepting input, the only issues seems to be with the freertos queue,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;but will the deletion of the init for power give problems not yet seen?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>