LyraT V4.3 board crashes on audio_hal_init

Jimrux
Posts: 4
Joined: Wed Jan 08, 2020 7:56 pm

LyraT V4.3 board crashes on audio_hal_init

Postby Jimrux » Fri Jan 24, 2020 8:59 am

I am trying an example that uses Aux IN as the input. The example configures Line2 input as follows however the board crashes at when it runs the example at: audio_hal_handle_t hal = audio_hal_init(&audio_hal_codec_cfg, 0);
The code and dump follows. Can anyone tell me whats wrong here.Thanks

Code: Select all

#define AUDIO_HAL_ES8388_DEFAULT(){ \
.adc_input = AUDIO_HAL_ADC_INPUT_LINE1, \
.dac_output = AUDIO_HAL_DAC_OUTPUT_ALL, \
.codec_mode = AUDIO_HAL_CODEC_MODE_BOTH, \
.i2s_iface = { \
.mode = AUDIO_HAL_MODE_SLAVE, \
.fmt = AUDIO_HAL_I2S_NORMAL, \
.samples = AUDIO_HAL_48K_SAMPLES, \
.bits = AUDIO_HAL_BIT_LENGTH_24BITS, \
}, \
};

    audio_hal_codec_config_t audio_hal_codec_cfg =  AUDIO_HAL_ES8388_DEFAULT();
    audio_hal_codec_cfg.adc_input = AUDIO_HAL_ADC_INPUT_LINE2;
    audio_hal_codec_cfg.i2s_iface.samples = AUDIO_HAL_44K_SAMPLES;
    audio_hal_handle_t hal = audio_hal_init(&audio_hal_codec_cfg, 0);
    audio_hal_ctrl_codec(hal, AUDIO_HAL_CODEC_MODE_BOTH, AUDIO_HAL_CTRL_START);

Code: Select all

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1f (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:0x3fff0018,len:4
load:0x3fff001c,len:6140
load:0x40078000,len:10180
load:0x40080400,len:6660
entry 0x40080764
I (29) boot: ESP-IDF v3.2.2 2nd stage bootloader
I (29) boot: compile time 03:27:54
I (29) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed      : 40MHz
I (38) boot: SPI Mode       : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label            Usage          Type ST Offset   Length
I (57) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (64) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (72) boot:  2 factory          factory app      00 00 00010000 00100000
I (79) boot: End of partition table
I (83) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0bc60 ( 48224) map
I (109) esp_image: segment 1: paddr=0x0001bc88 vaddr=0x3ffb0000 size=0x01ec0 (  7872) load
I (112) esp_image: segment 2: paddr=0x0001db50 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at /home/jim/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (116) esp_image: segment 3: paddr=0x0001df58 vaddr=0x40080400 size=0x020b8 (  8376) load
I (128) esp_image: segment 4: paddr=0x00020018 vaddr=0x400d0018 size=0x1a364 (107364) map
0x400d0018: _flash_cache_start at ??:?

I (171) esp_image: segment 5: paddr=0x0003a384 vaddr=0x400824b8 size=0x0791c ( 31004) load
0x400824b8: _xt_medint2_exit at /home/jim/esp/esp-idf/components/freertos/xtensa_vectors.S:1263

I (190) boot: Loaded app from partition at offset 0x10000
I (190) boot: Disabling RNG early entropy source...
I (191) cpu_start: Pro cpu up.
I (195) cpu_start: Starting app cpu, entry point is 0x40080ee4
0x40080ee4: call_start_cpu1 at /home/jim/esp/esp-idf/components/esp32/cpu_start.c:246

I (187) cpu_start: App cpu up.
I (205) heap_init: Initializing. RAM available for dynamic allocation:
I (212) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (218) heap_init: At 3FFB2F10 len 0002D0F0 (180 KiB): DRAM
I (224) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (231) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (237) heap_init: At 40089DD4 len 0001622C (88 KiB): IRAM
I (243) cpu_start: Pro cpu start user code
I (261) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (263) PASSTHRU: [ 1 ] Start codec chip
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x4000c2e0  PS      : 0x00060030  A0      : 0x800e1e3f  A1      : 0x3ffb4b40  
A2      : 0x3ffb69a4  A3      : 0x00000000  A4      : 0x00000024  A5      : 0x3ffb69a4  
A6      : 0x00000000  A7      : 0x00000002  A8      : 0x00000000  A9      : 0x3ffb4b10  
A10     : 0x3ffb69a4  A11     : 0x00000024  A12     : 0x40082ba8  A13     : 0x3ffb4800  
0x40082ba8: _calloc_r at /home/jim/esp/esp-idf/components/newlib/syscalls.c:51

A14     : 0x3ffb4800  A15     : 0x00000002  SAR     : 0x00000004  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000001  

Backtrace: 0x4000c2e0:0x3ffb4b40 0x400e1e3c:0x3ffb4b50 0x400d2a19:0x3ffb4b80 0x400d102e:0x3ffb4cb0 0x40084e2d:0x3ffb4cd0
0x400e1e3c: audio_hal_init at /home/jim/esp/esp-adf/components/audio_hal/audio_hal.c:83

0x400d2a19: app_main at /home/jim/esp/pipeline_passthru/main/passthru.c:42

0x400d102e: main_task at /home/jim/esp/esp-idf/components/esp32/cpu_start.c:497

0x40084e2d: vPortTaskWrapper at /home/jim/esp/esp-idf/components/freertos/port.c:403

Who is online

Users browsing this forum: No registered users and 25 guests