<?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>&amp;quot;Task Notifications&amp;quot; on nRF51/nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29980/task-notifications-on-nrf51-nrf52</link><description>Hello, 
 I&amp;#39;m using FreeRTOS on nRF51 and I would like to use task notifications instead of semaphore to simply manage task&amp;#39;s syncronization. 
 To test its operation mode, I implemented the simple example shown at www.freertos.org/xTaskNotifyGive.html</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Mar 2018 08:03:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29980/task-notifications-on-nrf51-nrf52" /><item><title>RE: "Task Notifications" on nRF51/nRF52</title><link>https://devzone.nordicsemi.com/thread/123353?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 08:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c39facfd-e3e1-4d6b-a271-1c755f76ab4e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;did you manage to fix this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Task Notifications" on nRF51/nRF52</title><link>https://devzone.nordicsemi.com/thread/119374?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 11:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b81bec42-98a1-4501-b9cf-4350c9f86ffe</guid><dc:creator>Gianluca</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is my code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you notice any error?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;

#include &amp;quot;FreeRTOS.h&amp;quot;
#include &amp;quot;task.h&amp;quot;
#include &amp;quot;timers.h&amp;quot;
#include &amp;quot;semphr.h&amp;quot;

#include &amp;quot;bsp.h&amp;quot;
#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_drv_clock.h&amp;quot;
#include &amp;quot;sdk_errors.h&amp;quot;
#include &amp;quot;app_error.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;

#include &amp;quot;SEGGER_RTT.h&amp;quot;

#define TASK_DELAY_Red 1000

//#define TIMER_PERIOD_Red 700

// Task Handles
TaskHandle_t xTask_1 = NULL;
TaskHandle_t xTask_2 = NULL;

static void vTask_1 (void *pvParameter);
static void vTask_2 (void *pvParameter);



static void vTask_1 (void *pvParameter)
{ 
    //UNUSED_PARAMETER(pvParameter);
    for( ;; )
    {
        SEGGER_RTT_printf(0,&amp;quot;Inside vTask_1, notification to vTask_2\r\n&amp;quot;);
        xTaskNotifyGive( vTask_2 );
        
        SEGGER_RTT_printf(0,&amp;quot;Inside vTask_1, waiting the notification from vTask_2\r\n&amp;quot;);
        ulTaskNotifyTake( pdFALSE, 3000 );
    }
}





static void vTask_2 (void *pvParameter)
{
    //UNUSED_PARAMETER(pvParameter);
    for( ;; )
    {
        SEGGER_RTT_printf(0,&amp;quot;Inside vTask_2, waiting the notification from vTask_1\r\n&amp;quot;);
        ulTaskNotifyTake( pdFALSE, 3000 );
        
        SEGGER_RTT_printf(0,&amp;quot;Inside vTask_2, notification to vTask_1\r\n&amp;quot;);
        xTaskNotifyGive( vTask_1 );
    
    }
}

int main(void)
{
    
    xTaskCreate( vTask_1, &amp;quot;T1&amp;quot;, configMINIMAL_STACK_SIZE + 200, NULL, 1, &amp;amp;xTask_1 );
    xTaskCreate( vTask_2, &amp;quot;T2&amp;quot;, configMINIMAL_STACK_SIZE + 200, NULL, 1, &amp;amp;xTask_2 );
    
    vTaskStartScheduler();
    
    while (true)
    {
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Task Notifications" on nRF51/nRF52</title><link>https://devzone.nordicsemi.com/thread/119203?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 19:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52a3914c-d390-489e-847a-177ee7fd661f</guid><dc:creator>drk_tg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It works for me. :-) Both on version 8.x.x and 9.x.x. of FreeRTOS. Can you post your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>