ARMmbed / DAPLink

https://daplink.io
Apache License 2.0
2.32k stars 979 forks source link

[miro:bit] [0258] PWR led turns sometimes off when device is powered by battery on reset button press #1071

Open fabianhugo opened 6 months ago

fabianhugo commented 6 months ago

I noticed that on the v0258 beta3 firmware from micro:bit v2.21the power led sometimes turns off when I press the reset button. So the device looks off, while it is actually still powered. This bug also concerns the Calliope mini V3 which uses DAPLink version 0258, and sometimes confuses users.

mathias-arm commented 6 months ago

Pinging @microbit-carlos

microbit-carlos commented 6 months ago

Hi @fabianhugo Could you provide exact steps to reproduce?

If the reset button is pressed around 5 seconds (you can see the red LED dimming out), the board is meant to go into a "deep sleep" mode, and in that mode the power red LED will turn off. Is that what you meant? Or does it turn off in a different situation?

fabianhugo commented 6 months ago

Hi @microbit-carlos, thanks for your fast reply :) Yes, i was also wondering if it has something to do with the deep sleep mode, but the main program keeps running and I am pressing the reset button just very briefly. In programs where the display is used this is not a real problem, but it can be, when the display remains off. I checked the interface firmware in DAPLink version v0257 and the problem is not there. Below I attached two videos with a micro:bit v2.20. The program on the micro:bit is a standard makecode program:https://makecode.microbit.org/_95gfJ5TskDvb

DAPLink v0258 IF

https://github.com/ARMmbed/DAPLink/assets/32654742/981174ee-5380-49e5-b721-e8f6d6a8c0c7

DAPLink v0257 IF

https://github.com/ARMmbed/DAPLink/assets/32654742/d429392b-a06e-403c-a3ba-4a823a743f29