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

kws20_demo problem while using codec & external microphone #1266

Open
selimgullulu opened this issue Nov 12, 2024 · 0 comments
Open

kws20_demo problem while using codec & external microphone #1266

selimgullulu opened this issue Nov 12, 2024 · 0 comments

Comments

@selimgullulu
Copy link
Contributor

selimgullulu commented Nov 12, 2024

Hi, I tried running the kws_20 demo on the MAX78000FTHR (using CFS v1.0.0) with the following setting to enable external mic:

PROJ_CFLAGS+=-DENABLE_CODEC_MIC

however, during the build, we get the following error since the "CODEC_I2C_FREQ" is not defined.

main.c: In function 'codec_init':
main.c:908:42: error: 'CODEC_I2C_FREQ' undeclared (first use in this function)
  908 |     MXC_I2C_SetFrequency(PMIC_AUDIO_I2C, CODEC_I2C_FREQ);
      |                                          ^~~~~~~~~~~~~~

Even if I define it with the following:

#if defined(ENABLE_CODEC_MIC)
#define PMIC_AUDIO_I2C MXC_I2C1
#define CODEC_I2C_FREQ 100000 // SG added
#endif

The example doesn't classify the words obtained from the external mic.

I was able to run the example in the v2023_10 tag and it worked with the same setup with using Maxim Eclipse SDK.
However, this time it worked only for once and then the MAX9867 codec started giving errors during initialization
I'm using a BOYA microphone which has a battery on it which can be activated with the "camera" switch:
image

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