Skip to content

PDM mic buffer size causes hard reset and boot into safemode #388

@AidenRay

Description

@AidenRay

Running the following code from readthedocs causes a hard reset, and the CPX to run in safemode (not always).

import board

# Prep a buffer to record into
b = bytearray(200)
with audiobusio.PDMIn(board.MICROPHONE_CLOCK, board.MICROPHONE_DATA) as mic:
    mic.record(b, len(b)) ```

Increasing the buffer size to 8000 ('b = bytearray(8000)') fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions