CAF LED blinks on wake up event

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 a brief moment before turning off again, and I think it is because of the code below. This happens even though I manually turn off LEDs on a system wake up. Is there any way to prevent the blink from happening (either through my code or modifying the source code)? 

https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/caf/modules/leds.c#L207C32-L207C32

Best,

Kevin

Parents Reply Children
  • I see. I figured this could be issue NCSDK-15707, though that should be fixed in your NCS version. 

    Workaround: 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 nRF Machine Learning application for Nordic Thingy:53: fa2b57cddbaacf393c77def5d0302e1a45138d21

    Could you try if this workaround still helps at all? And when it likely won't, could you provide some minimally reproducing this issue?

    Regards,

    Elfving

Related