AUDIO_HAL: codec init failed!

shameem sanoodh
Posts: 2
Joined: Thu Jan 21, 2021 6:28 am

AUDIO_HAL: codec init failed!

Postby shameem sanoodh » Sun Jan 24, 2021 5:58 pm

This was the error while compiling ADF example library for lyrat v4.3.

C:\esp\esp-idf\esp-adf\examples\get-started\play_mp3>idf.py monitor
Executing action: monitor
Choosing default port b'COM3' (use '-p PORT' option to set a specific serial port)
Running idf_monitor in directory c:\esp\esp-idf\esp-adf\examples\get-started\play_mp3
Executing "C:\esp\tools.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:\esp\esp-idf\tools/idf_monitor.py -p COM3 -b 115200 --toolchain-prefix xtensa-esp32-elf- c:\esp\esp-idf\esp-adf\examples\get-started\play_mp3\build\play_mp3.elf -m 'C:\esp\tools.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe' 'C:\esp\esp-idf\tools\idf.py'"...
--- idf_monitor on COM3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:6872
load:0x40078000,len:13072
ho 0 tail 12 room 4
load:0x40080400,len:3896
0x40080400: _init at ??:?

entry 0x40080688
I (30) boot: ESP-IDF v4.1-dirty 2nd stage bootloader
I (30) boot: compile time 18:56:38
I (30) boot: chip revision: 1
I (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (43) boot.esp32: SPI Speed : 40MHz
I (45) boot.esp32: SPI Mode : DIO
I (50) boot.esp32: SPI Flash Size : 8MB
I (54) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (86) boot: 2 factory factory app 00 00 00010000 00100000
I (93) boot: End of partition table
I (97) boot_comm: chip revision: 1, min. application chip revision: 0
I (104) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1f5e4 (128484) map
I (162) esp_image: segment 1: paddr=0x0002f60c vaddr=0x3ffb0000 size=0x00a0c ( 2572) load
I (164) esp_image: segment 2: paddr=0x00030020 vaddr=0x400d0020 size=0x24418 (148504) map
0x400d0020: _stext at ??:?

I (225) esp_image: segment 3: paddr=0x00054440 vaddr=0x3ffb0a0c size=0x017c0 ( 6080) load
I (228) esp_image: segment 4: paddr=0x00055c08 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at C:/esp/esp-idf/components/freertos/xtensa_vectors.S:1778

I (233) esp_image: segment 5: paddr=0x00056014 vaddr=0x40080404 size=0x0ba44 ( 47684) load
I (268) boot: Loaded app from partition at offset 0x10000
I (268) boot: Disabling RNG early entropy source...
I (269) cpu_start: Pro cpu up.
I (272) cpu_start: Application information:
I (277) cpu_start: Project name: play_mp3
I (282) cpu_start: App version: v2.2-33-g7fca3dc-dirty
I (289) cpu_start: Compile time: Jan 23 2021 18:55:51
I (295) cpu_start: ELF file SHA256: 6625a2c67053ea30...
I (301) cpu_start: ESP-IDF: v4.1-dirty
I (306) cpu_start: Starting app cpu, entry point is 0x40081124
0x40081124: call_start_cpu1 at C:/esp/esp-idf/components/esp32/cpu_start.c:271

I (0) cpu_start: App cpu up.
I (316) heap_init: Initializing. RAM available for dynamic allocation:
I (323) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (329) heap_init: At 3FFB2A10 len 0002D5F0 (181 KiB): DRAM
I (335) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (342) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (348) heap_init: At 4008BE48 len 000141B8 (80 KiB): IRAM
I (354) cpu_start: Pro cpu start user code
I (373) spi_flash: detected chip: gd
I (373) spi_flash: flash io: dio
I (373) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (381) PLAY_MP3_FLASH: [ 1 ] Start audio codec chip
E (391) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (401) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (411) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (431) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (441) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (451) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (471) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (481) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (491) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (511) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (521) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (531) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (551) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (561) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (571) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (591) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (601) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (611) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (621) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (641) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (651) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (661) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (681) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (691) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (701) I2C_BUS: C:/esp/esp-idf/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:101 (i2c_bus_write_bytes):I2C Bus WriteReg Error
E (721) AUDIO_HAL: codec init failed!
E (721) AUDIO_BOARD: C:/esp/esp-idf/esp-adf/components/audio_board/lyrat_v4_3/board.c:55 (audio_board_codec_init): Got NULL Pointer
E (731) AUDIO_HAL: audio_hal handle is null
I (741) PLAY_MP3_FLASH: [ 2 ] Create audio pipeline, add all elements to pipeline, and subscribe pipeline event
I (751) PLAY_MP3_FLASH: [2.1] Create mp3 decoder to decode mp3 file and set custom read callback
I (761) PLAY_MP3_FLASH: [2.2] Create i2s stream to write data to codec chip
I (791) PLAY_MP3_FLASH: [2.3] Register all elements to audio pipeline
I (791) PLAY_MP3_FLASH: [2.4] Link it together [mp3_music_read_cb]-->mp3_decoder-->i2s_stream-->[codec_chip]
I (801) PLAY_MP3_FLASH: [ 3 ] Set up event listener
I (801) PLAY_MP3_FLASH: [3.1] Listening event from all elements of pipeline
I (811) PLAY_MP3_FLASH: [ 4 ] Start audio_pipeline
I (831) PLAY_MP3_FLASH: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2

Who is online

Users browsing this forum: No registered users and 172 guests