Skip to content

CH32V307 Audio was corrupted after move ISO transfers into xfer_isr #3425

@fangxx3863

Description

@fangxx3863

Operating System

Windows 11

Commit SHA

from eed294f to master

Board

ch32v307v_r1_1v0

Firmware

Test code examples/device/audio_test

Caused commit eed294f

What happened ?

The audio was intermittently set to near 0.

This wasn't just limited to the mic test; the same applied to the speaker.

Image Image

This issue persists even on the current master branch.

checkout to 76a6834 and get correct result

Image

I'm also tested the same code on an STM32F103C8, and it worked fine.

Image

How to reproduce ?

  1. Use ch32v307v_r1_1v0 board
  2. Download examples/device/audio_test
  3. Run python plot_audio_samples.py
  4. Get the error result

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

If you add LOG=2 to the make command line, the program may not even be able to run the test Python script after downloading.

Image

Screenshots

Output file of running the test script Output.csv

I have checked existing issues, discussion and documentation

  • I confirm I have checked existing issues, discussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions