Page 1 of 1

编译esp-adf 时出现错误,无法选择Custom audio board,选择了就报错

Posted: Wed Dec 28, 2022 2:25 am
by mikefan
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c: In function 'es8156_codec_init':
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/iot/esp32/sdk/esp-adf/components/audio_hal/driver/es8156/es8156.c:175:41: note: in expansion of macro 'ES8156_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ES8156_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~
[24/150] Building C object esp-idf/esp-adf-libs/CMakeFiles/__idf_esp-adf-libs.dir/esp_codec/audio_forge.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

D:\iot\esp32\sdk\esp-adf\project\a2dp_stream_with_tp123_copy>

Re: 编译esp-adf 时出现错误,无法选择Custom audio board,选择了就报错

Posted: Mon Feb 06, 2023 9:02 am
by ESP_William
Custom audio board 是为了用户自己的板子准备的,需要用户根据自己设计板子定义 IO 以及外设驱动

如果您已经修改但是仍是报错,可以将您的设计以及修改方式贴出来我们看一下