Skip to content
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

Unexpected I2S data output #356

Open
dannyhui-xmos opened this issue May 10, 2024 · 0 comments
Open

Unexpected I2S data output #356

dannyhui-xmos opened this issue May 10, 2024 · 0 comments

Comments

@dannyhui-xmos
Copy link

dannyhui-xmos commented May 10, 2024

There is a constant output (0xA5A5A5A5) from I2S_DOUT pin after the FFD system up.

Finding:

  1. FreeRTOS kernel set the default value of the stack to tskSTACK_FILL_BYTE (0xa5U) for water level checking
  2. The function i2s_ratio_n from modules/io/modules/i2s/src/i2s_master.c:79 haven't initialized/cleared the default value of the variable out_samps.

Suggested Fix:
Initialize the variables before use
memset(in_samps, 0, sizeof(in_samps));
memset(out_samps, 0, sizeof(out_samps));

Testing Kit: XK-VOICE-L71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant