<?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>problem of LED blinky by advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50608/problem-of-led-blinky-by-advertising</link><description>I want to turn on /off LED by advertising TX of BLE 
 peripheral : nrf52810 central : nrf52840 Specifically, peripheral performs advertising TX, The central processes LED blinkly when the filter of ADDR is matched by scan_evnt_handler. Sending of advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Oct 2019 13:28:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50608/problem-of-led-blinky-by-advertising" /><item><title>RE: problem of LED blinky by advertising</title><link>https://devzone.nordicsemi.com/thread/215543?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2019 13:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2db620-322f-4189-8c63-d24882c33373</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Very nice that you found the cause of the issue and returned with the solution.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem of LED blinky by advertising</title><link>https://devzone.nordicsemi.com/thread/215535?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2019 13:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:387f0e6c-9ab0-41cd-9b39-c41a15ece924</guid><dc:creator>tomo</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;I solved the problem.&lt;/p&gt;
&lt;p&gt;After the flag was set due to an interrupt, it was fine to stop the interrupt and clear the pending interrupt.&lt;/p&gt;
&lt;p&gt;I realized it with the following delay timer code&lt;/p&gt;
&lt;p&gt;It was very nice to solve&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void delay_timer (uint32_t time)
{
    uint32_t err_code;
    delay_flag = true;
    err_code = app_timer_start(m_single_shot_timer_id, APP_TIMER_TICKS(time), NULL);
    APP_ERROR_CHECK(err_code);
    while (delay_flag)
    {
        sd_nvic_DisableIRQ(RADIO_IRQn);
        sd_nvic_ClearPendingIRQ(RADIO_IRQn);
        APP_ERROR_CHECK(err_code);
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem of LED blinky by advertising</title><link>https://devzone.nordicsemi.com/thread/202343?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 08:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c7f6bb-50d9-40f2-9c00-528b06a328cf</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you checked what nrf_gpio_pin_out_read(LED1_PIN) returns? You should &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;use the debugger&lt;/a&gt; to check that the program actually calls&amp;nbsp;nrf_gpio_pin_clear(LED1_PIN) when you want to turn LED1 off.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>