ADF与IDF匹配问题

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

ADF与IDF匹配问题

Postby smart123 » Wed Jun 03, 2020 12:10 pm

1、请问官方有没有可以支持IDF4.1的ADF版本?
2、目前的ADF是否只能和3.3版本的IDF配套使用?

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ADF与IDF匹配问题

Postby ESP_krzychb » Wed Jun 03, 2020 12:35 pm

Hi smart123,

ESP-ADF Release v2.0 supports ESP-IDF v3.3.2, v4.0 and v4.1.

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: ADF与IDF匹配问题

Postby smart123 » Wed Jun 03, 2020 12:40 pm

ESP_krzychb wrote:
Wed Jun 03, 2020 12:35 pm
Hi smart123,

ESP-ADF Release v2.0 supports ESP-IDF v3.3.2, v4.0 and v4.1.
thank you !!!

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: ADF与IDF匹配问题

Postby smart123 » Thu Jun 04, 2020 2:28 am

ESP_krzychb wrote:
Wed Jun 03, 2020 12:35 pm
Hi smart123,

ESP-ADF Release v2.0 supports ESP-IDF v3.3.2, v4.0 and v4.1.
请问您知道为什么 我用adf和idf4.1的时候编译example/get-started/play-pm3的时间总是报错/home/smart/esp/esp-adf-master/components/audio_pipeline/include/audio_common.h:33:10: fatal error: audio_type_def.h: No such file or directory
#include "audio_type_def.h"

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ADF与IDF匹配问题

Postby ESP_krzychb » Thu Jun 04, 2020 5:00 pm

Hi smart123,

The file audio_type_def.h is located in esp-adf-libs submodule of ESP-ADF repository.
If the file cannot be found during compilation then ESP-ADF v2.0 may not have been checked out properly. In particular submodules may not have been updated.

To properly checkout ESP-ADF v2.0 I would follow procedure described in 更新至一个稳定发布版本.

Note the procedure should be run inside ESP-ADF repository (cd $ADF_PATH):

Code: Select all

cd $ADF_PATH
git fetch
git checkout v2.0
git submodule update --init --recursive
Try executing above commands and repeat compilation.

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: ADF与IDF匹配问题

Postby smart123 » Wed Jun 10, 2020 2:54 am

ESP_krzychb wrote:
Thu Jun 04, 2020 5:00 pm
Hi smart123,

The file audio_type_def.h is located in esp-adf-libs submodule of ESP-ADF repository.
If the file cannot be found during compilation then ESP-ADF v2.0 may not have been checked out properly. In particular submodules may not have been updated.

To properly checkout ESP-ADF v2.0 I would follow procedure described in 更新至一个稳定发布版本.

Note the procedure should be run inside ESP-ADF repository (cd $ADF_PATH):

Code: Select all

cd $ADF_PATH
git fetch
git checkout v2.0
git submodule update --init --recursive
Try executing above commands and repeat compilation.
Hi,ESP_krzychb
更新了ADF的版本,之前的问题确实解决掉了,
但是编译新版本的example/get_start/play_mp3 出现如下的错误
/home/smart/esp/esp-adf/components/esp-adf-libs/esp_codec/equalizer.c:273:8: error: 'audio_element_cfg_t' {aka 'struct <anonymous>'} has no member named 'stack_in_ext'
cfg.stack_in_ext = config->stack_in_ext

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: ADF与IDF匹配问题

Postby smart123 » Wed Jun 10, 2020 3:55 am

ESP_krzychb wrote:
Thu Jun 04, 2020 5:00 pm
Hi smart123,

The file audio_type_def.h is located in esp-adf-libs submodule of ESP-ADF repository.
If the file cannot be found during compilation then ESP-ADF v2.0 may not have been checked out properly. In particular submodules may not have been updated.

To properly checkout ESP-ADF v2.0 I would follow procedure described in 更新至一个稳定发布版本.

Note the procedure should be run inside ESP-ADF repository (cd $ADF_PATH):

Code: Select all

cd $ADF_PATH
git fetch
git checkout v2.0
git submodule update --init --recursive
Try executing above commands and repeat compilation.
Hi,ESP_krzychb
更新了ADF 为v2.0 play_mp3 已经ok 但是编译dueros的demo时候 最后出现如下的报错
warning: the default selection ESP32_KORVO_DU1906_CODEC_TAS5805M (undefined) of <choice ESP32_KORVO_DU1906_DAC> (defined at /home/smart/esp/esp-adf/components/audio_board/Kconfig.projbuild:25) is not contained in the choice
warning: the default selection SR_RUN_WM6_CORE1 (undefined) of <choice SR_RUN_WN6_CORE> (defined at /home/smart/esp/esp-adf/components/esp-sr/Kconfig.projbuild:83) is not contained in the choice
warning: the default selection CONFIG_SR_MN1_MODEL_QUANT (undefined) of <choice SR_MN_MODEL_SEL> (defined at /home/smart/esp/esp-adf/components/esp-sr/Kconfig.projbuild:100) is not contained in the choice
LD build/esp_dueros.elf
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x48): undefined reference to `audio_board_key_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x4c): undefined reference to `audio_board_sdcard_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x50): undefined reference to `audio_board_led_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o): in function `duer_app_init':
/home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:381: undefined reference to `audio_board_key_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:384: undefined reference to `audio_board_sdcard_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:385: undefined reference to `audio_board_led_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl.c.obj):(.literal.media_ctrl_create+0x70): undefined reference to `audio_thread_create'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl.c.obj): in function `media_ctrl_create':
/Users/maojianxin/duros/esp-adf-libs-source/esp_audio/src/media_ctrl.c:296: undefined reference to `audio_thread_create'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl_task.c.obj):(.literal.media_ctrl_task+0x128): undefined reference to `audio_thread_delete_task'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl_task.c.obj): in function `media_ctrl_task':
/Users/maojianxin/duros/esp-adf-libs-source/esp_audio/src/media_ctrl_task.c:650: undefined reference to `audio_thread_delete_task'
collect2: error: ld returned 1 exit status
/home/smart/esp/esp-idf/make/project.mk:563: recipe for target '/home/smart/esp/esp-adf/examples/dueros/build/esp_dueros.elf' failed
make: *** [/home/smart/esp/esp-adf/examples/dueros/build/esp_dueros.elf] Error 1

红色标记的文件夹并不存在我的adf中

jason.mao
Posts: 98
Joined: Mon Nov 19, 2018 2:05 am

Re: ADF与IDF匹配问题

Postby jason.mao » Fri Jun 12, 2020 12:16 pm

Hi smart123,

Dueros 由于百度停更了,当前的问题无法得到修复。你可以关注 ESP32-Korvo-DU1906 开发板工程的 Example,它可以取代DuerOS.

Who is online

Users browsing this forum: No registered users and 18 guests