<?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>freertos &amp;amp; logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24299/freertos-logging</link><description>Hi All, 
 I would like to use FreeRTOS in my project. I try to play with the examples/ble_peripheral/ble_app_hrs_freertos project. 
 I have enabled logging with RTT. The program is working well, I can connect with JLinkRTTClient and I have seen log</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2017 15:06:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24299/freertos-logging" /><item><title>RE: freertos &amp; logging</title><link>https://devzone.nordicsemi.com/thread/95642?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 15:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e964d5-c741-4b38-9d55-a3ab25f489c4</guid><dc:creator>zamek</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I downloaded the nRF5_SDK_14.0.0_3bcc1f7, but in this example contains only one task, which is the logging task:(
The ble funcionality doesn&amp;#39;t run in a task. It should be good.
And I make a new task like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if NRF_LOG_ENABLED
    // Start execution.
    if (pdPASS != xTaskCreate(logger_thread, &amp;quot;LOGGER&amp;quot;, 256, NULL, 1, &amp;amp;m_logger_thread))
    {
        APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
    }
#endif

    if (pdPASS != xTaskCreate(alive_thread, &amp;quot;alive&amp;quot;, 256, NULL, 1, &amp;amp;m_alive_thread))
    {
    	APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the task code is like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void alive_thread(void *arg)
{
	UNUSED_PARAMETER(arg);
	int i=0;
	for(;;) {
		bsp_board_led_invert(BSP_BOARD_LED_2);
		vTaskDelay(500);
		if (++i&amp;lt;10)
			continue;
		i=0;
		NRF_LOG_INFO(&amp;quot;tick\r\n&amp;quot;);
	}
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Unfortunately I got the next message in serial console:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;error&amp;gt; nrf_sdh_freertos: SoftDevice task not created.
&amp;lt;error&amp;gt; app: Fatal
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I used make flash_softdevice and make flash.&lt;/p&gt;
&lt;p&gt;thx,
Zamek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos &amp; logging</title><link>https://devzone.nordicsemi.com/thread/95643?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 11:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23232af-fcee-4b03-b38c-2ee7438918c4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Zamek, could you test this with the latest release of the SDK, i.e. SDK v14.0.0 and see if this is still an issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>