8000 This recording programme panics with CODAL error 030 · Issue #191 · microbit-foundation/micropython-microbit-v2 · GitHub
[go: up one dir, main page]

Skip to content

This recording programme panics with CODAL error 030 #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
microbit-carlos opened this issue Apr 9, 2024 · 2 comments
Closed

This recording programme panics with CODAL error 030 #191

microbit-carlos opened this issue Apr 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@microbit-carlos
Copy link
Contributor
microbit-carlos commented Apr 9, 2024

Using the latest version (at the time of writing) of the recording & playback branch: 0b06914
Hex: https://github.com/microbit-foundation/micropython-microbit-v2/actions/runs/8416237764?pr=163

Takes less than 9min:

from microbit import *
import radio

PACKET_SIZE = 128


def radio_sender():
    my_audio = audio.AudioFrame(duration=4000)
    while True:
        microphone.record_into(my_audio)
        audio_mv = memoryview(my_audio)
        for i in range(0, len(audio_mv), PACKET_SIZE):
            radio.send_bytes(audio_mv[i:i+PACKET_SIZE])


def main():
    radio.on()
    radio.config(length=PACKET_SIZE, queue=64)

    display.show("S")
    radio_sender()


if __name__ == "__main__":
    main()

CODAL panic error 030 is a DEVICE_HEAP_ERROR.
It could be an issue from the CODAL side, but it'd be good to try to confirm that first.

@microbit-carlos microbit-carlos added the bug Something isn't working label Apr 9, 2024
@microbit-carlos microbit-carlos added this to the 2.2.0-beta.1 milestone Apr 9, 2024
@microbit-carlos
Copy link
Contributor Author

I saw this issue multiple times yesterday with that programme, but today I'm struggling to reproduce. I'll see if any of the modifications I might have done introduce this issue again, but if I can't find the right combination I'll close this issue.

@microbit-carlos
Copy link
Contributor Author

I haven't been able to replicate this, so I'll close for now. I can always open it again if I do see it in the future and have an exact copy of the programme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0