Micro:bit v2 random freezes after music.pitch

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
bertbaron
Posts: 2
Joined: Thu Apr 01, 2021 1:59 pm

Micro:bit v2 random freezes after music.pitch

Post by bertbaron » Thu Apr 01, 2021 3:22 pm

Hi all,

Not sure if this is the right place to report my issue, please let me know otherwise.

I experience random freezes of a program on the micro:bit V2 flashed using the online python editor (https://python.microbit.org/v/2). With the following minimized program the issue can be reproduced:

Code: Select all

from microbit import *
import time
import music

music.pitch(220, 100)

blink_on = False
while True:
    display.show(Image.HEART if blink_on else Image())
    blink_on = not blink_on
    time.sleep(0.1)
It may require some time or a few attempts (resets) to reproduce but should be possible within about 30 minutes.

Without the music.pitch I wasn't able to reproduce so far, so I think its related.

I would be happy if other users could try to reproduce. It could of course be an issue with my specific board (I have only one V2 around, I can't reproduce it on the V1).

Regards, Bert

bertbaron
Posts: 2
Joined: Thu Apr 01, 2021 1:59 pm

Re: Micro:bit v2 random freezes after music.pitch

Post by bertbaron » Fri Apr 02, 2021 11:38 am

In the meen time I managed to reproduce with the beta 5 hex dump from https://github.com/microbit-foundation/ ... icrobit-v2. Since I wasn't able to reproduce with beta 4 so far I guess its some kind of regression. I posted an issue on that repository: https://github.com/microbit-foundation/ ... /issues/73

Post Reply