<?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>CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105851/caf-led-blinks-on-wake-up-event</link><description>Hi, 
 I use CAF LEDs with PWM. I have a timer that would make device wake up every 20 seconds with a CONFIG_CAF_POWER_MANAGER_TIMEOUT to make it sleep 2 seconds after waking up. 
 Every time the system wakes up from sleep, the LED will be turned on for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 07:47:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105851/caf-led-blinks-on-wake-up-event" /><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/503884?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 07:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba33c68-b598-4bdb-ba75-beba92af9b12</guid><dc:creator>bicanoff</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;I had a similar problem with blinking after every wake-up from sleep. In my case, I set&amp;nbsp;&lt;code&gt;CONFIG_CAF_LEDS_PM_EVENTS=n&lt;/code&gt;&amp;nbsp;to solve this problem. (NCS 2.6.1)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/457212?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 15:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a62a26-dc34-4f80-bb29-7128f4aa5cc4</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see. I figured this could be issue&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases_and_maturity/known_issues.html?v=v2-0-0"&gt;NCSDK-15707,&lt;/a&gt;&amp;nbsp;though that should be fixed in your NCS version.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Workaround:&lt;/strong&gt;&amp;nbsp;Make sure your application includes the devicetree overlay file in which PWM period is decreased. For example, include the following commit to solve the issue for the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/machine_learning/README.html#nrf-machine-learning-app"&gt;&lt;span&gt;nRF Machine Learning&lt;/span&gt;&lt;/a&gt;&amp;nbsp;application for Nordic Thingy:53:&amp;nbsp;&lt;code&gt;&lt;span&gt;fa2b57cddbaacf393c77def5d0302e1a45138d21&lt;/span&gt;&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Could you try if this workaround still helps at all? And when it likely won&amp;#39;t, could you provide some minimally reproducing this issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/456791?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 22:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361e8ca4-9414-448a-a335-2fb982cd1622</guid><dc:creator>zhangxka</dc:creator><description>&lt;p&gt;This is the LED I&amp;#39;m using. I&amp;#39;m using NCS 2.3.0.&lt;br /&gt;&lt;a id="" href="https://datasheet.lcsc.com/lcsc/2001151003_MEIHUA-MHSC110RGBCT_C482558.pdf"&gt;https://datasheet.lcsc.com/lcsc/2001151003_MEIHUA-MHSC110RGBCT_C482558.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;CAF LED module works fine otherwise (adjusting color/brightness)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/456653?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 11:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcea3ac-7431-46ca-a5e2-843ccf953954</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;What sort of led is this? What is your NCS version?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/456588?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 07:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9bde660-af85-4293-963d-3cfe5765c504</guid><dc:creator>zhangxka</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I actually tried that with the following code but still got the LED to blink when system wakes up.&lt;/p&gt;
&lt;p&gt;In my app_event_handler,&amp;nbsp; I have&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    if (is_power_down_event(aeh)) {
        return handle_power_down_event(cast_power_down_event(aeh));
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool handle_power_down_event(const struct power_down_event *event) {
  LOG_DBG(&amp;quot;Handling power down event&amp;quot;);
  led_turn_off(LED_USER);
  return false;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;led_turn_off would&amp;nbsp;submit a new_led_event to turn the LED off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This problem seems to be related to something that is triggered when PWM starts back up. The blink is very brief&amp;nbsp;(maybe about 20ms?), but is still is visible. Even if&amp;nbsp;LED doesn&amp;#39;t turn on in any part of my code, the power manager + PWM LED module themselves are able to trigger the symptom here.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF LED blinks on wake up event</title><link>https://devzone.nordicsemi.com/thread/456483?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33be929e-52a5-44bb-a0e3-4ce38499918b</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Kevin,&lt;/p&gt;
&lt;p&gt;If you assign a new LED effect on wake_up_event processing, the old effect would still be in use for time between wake_up_event processing and processing of the led_event turning off LEDs that is submitted by you.&lt;/p&gt;
&lt;p&gt;We&amp;nbsp;would suggest assigning the new LED effect earlier (e.g. on power_down_event) to ensure that the LED effect is set before wake_up_event is processed.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>