Closed
Description
CircuitPython version
Adafruit CircuitPython 9.2.0-alpha.2350-6-gf064354648-dirty on 2024-08-13; SparkFun Pro Micro RP2350 with rp2350a
Code/REPL
import board, audiocore, audiopwmio
audio = audiopwmio.PWMAudioOut(board.D0) # or any GPIO
wave = audiocore.WaveFile("laser2.wav")
audio.play(wave)
while True:
pass
Behavior
As soon as audio.play()
is run, board resets, no message in the REPL, just hard reset.
Description
Playing a RawSample
from RAM works, e.g. this does not crash:
import board, audiocore, audiopwmio, array
audio = audiopwmio.PWMAudioOut(board.D0)
sample = audiocore.RawSample( array.array("h", [0] * 32) )
audio.play(sample, loop=True)
Additional information
On SparkFun Pro Micro RP2350, happens with both latest Pico2 firmware (no PSRAM) on Amazon S3 and #9515 firmware (PSRAM enabled).
After the reset, the REPL comes back, but in Safe Mode.