Skip to content

Safe mode crash on ESP32-S3 when using I2SOut #11070

Description

@dhalbert

This is crashing on 10.3.0-alpha.3 and slightly earlier. Tested on Metro ESP32-S3.

import audiobusio
import audiocore
import board
import array
import time
import math

# Generate one period of sine wave.
length = 8000 // 440
sine_wave = array.array("H", [0] * length)
for i in range(length):
    sine_wave[i] = int(math.sin(math.pi * 2 * i / length) * (2 ** 15) + 2 ** 15)

sine_wave = audiocore.RawSample(sine_wave, sample_rate=8000)
i2s = audiobusio.I2SOut(board.A0, board.A1, board.A2)
i2s.play(sine_wave, loop=True)
time.sleep(1)
i2s.stop()

@bablokb

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions