'BOARD_PA_GAIN' undeclared (first use in this function)
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: error: 'BOARD_PA_GAIN' undeclared (first use in this function)
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:43:22: note: each undeclared identifier is reported only once for each function it appears in
.board_pa_gain = BOARD_PA_GAIN, \
^~~~~~~~~~~~~
D:/Espressif/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:96:41: note: in expansion of macro 'ZL38063_DAC_VOL_CFG_DEFAULT'
codec_dac_volume_config_t vol_cfg = ZL38063_DAC_VOL_CFG_DEFAULT();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[1317/1494] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/scheme_ble.c.obj
ninja: build stopped: subcommand
请问这个问题怎么解决?
esp32 音频版编译出错
-
- Posts: 135
- Joined: Tue Apr 24, 2018 5:54 am
Re: esp32 音频版编译出错
请问您编译的是哪个 Demo? 以及您使用的开发板是?
Re: esp32 音频版编译出错
我选择的是Custom audio board,用自己的板子,也是出现这个错误。是不是只能用指定的开发板才行啊。如果我想在自己的板子上使用ADF,该怎么选择,或者说如何在现有的idf工程中添加ADF并使用?
-
- Posts: 135
- Joined: Tue Apr 24, 2018 5:54 am
Re: esp32 音频版编译出错
并不是非得用 ADF 的指定开发板,而是需要确保 Custom audio board 定义正确,需要修改 IO 和驱动的
参考已有的板子修改: https://github.com/espressif/esp-adf/tr ... udio_board
因为我没有您板子的设计和修改我也不知道您的问题在哪?需要您再 Check 下了
参考已有的板子修改: https://github.com/espressif/esp-adf/tr ... udio_board
因为我没有您板子的设计和修改我也不知道您的问题在哪?需要您再 Check 下了
Who is online
Users browsing this forum: No registered users and 37 guests