Microphone Examples Not Working - I2C_BUS: I2C bus has been already created

ruvanmk
Posts: 2
Joined: Wed Apr 19, 2023 2:45 am

Microphone Examples Not Working - I2C_BUS: I2C bus has been already created

Postby ruvanmk » Wed Apr 19, 2023 3:02 am

Hi,

I'm trying to use the ADF examples that come in the ADF repository, namely the pipeline sonic example.
Environment details:
Board: LyraT-Mini V1.2
OS: Windows
IDF version: 4.4
ADF version 2.4

When this line runs

Code: Select all

audio_board_handle_t board_handle = audio_board_init();
in the app_main function within sonic_example.c then the montior produces the following warning:
W (1361) I2C_BUS: I2C bus has been already created, [port:0]
Then when I press the 'Rec' button to start a recording, I get other warnings:
W (1921) SONIC_EXAMPLE: Press [Rec] to start recording
E (598501) SONIC_EXAMPLE: Now recording, release [Rec] to STOP
W (598501) AUDIO_PIPELINE: Without stop, st:1
W (598501) AUDIO_PIPELINE: Without wait stop, st:1
W (598501) AUDIO_ELEMENT: [file_reader] Element has not create when AUDIO_ELEMENT_TERMINATE
W (598511) AUDIO_ELEMENT: [wav_decoder] Element has not create when AUDIO_ELEMENT_TERMINATE
W (598521) AUDIO_ELEMENT: [sonic] Element has not create when AUDIO_ELEMENT_TERMINATE
W (598531) AUDIO_ELEMENT: [i2s_writer] Element has not create when AUDIO_ELEMENT_TERMINATE
I (598541) SONIC_EXAMPLE: Setup file path to save recorded audio
I (599981) SONIC_EXAMPLE: START Playback
W (599981) AUDIO_ELEMENT: IN-[wav_encoder] AEL_IO_ABORT
E (599981) AUDIO_ELEMENT: [wav_encoder] Element already stopped
W (599981) AUDIO_ELEMENT: IN-[file_writer] AEL_IO_ABORT
I (600011) SONIC_EXAMPLE: Setup file path to read the wav audio to play
W (600141) FATFS_STREAM: No more data, ret:0

I think that all the warnings tie back to the first warning about the I2C bus. Can anyone please tell me what the issue is?

I have tried other examples using the microphone and they produce the same error. Examples not using the microphone such as 'Check board buttons' and 'CLI' work perfectly.

Thanks!

Who is online

Users browsing this forum: No registered users and 11 guests