espressif / esp-adf

Espressif Audio Development Framework
Other
1.54k stars 676 forks source link

ESP BOX LITE does not work with ESP ADF (AUD-4903) #1078

Closed patrickkeenan closed 1 year ago

patrickkeenan commented 1 year ago

Environment

Problem Description

Building an example does not work. I have selected the BoxLite as the board in the menuconfig but I get a build error.

Expected Behavior

Build successfully

Actual Behavior

Steps to Reproduce

  1. Download ADF
  2. Try to compile example for S3 Box Lite

// If possible, attach a picture of your setup/wiring here.

Debug Logs

`/Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c:55:33: error: 'GPIO_NUM_47' undeclared (first use in this function); did you mean 'GPIO_NUM_37'? i2s_config->ws_io_num = GPIO_NUM_47; ^~~ GPIO_NUM_37 /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c:55:33: note: each undeclared identifier is reported only once for each function it appears in In file included from /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board.h:29, from /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c:28: /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c: In function 'get_pa_enable_gpio': /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_def.h:75:37: error: 'GPIO_NUM_46' undeclared (first use in this function); did you mean 'GPIO_NUM_36'?

define PA_ENABLE_GPIO GPIO_NUM_46

                                 ^~~~~~~~~~~

/Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c:117:12: note: in expansion of macro 'PA_ENABLE_GPIO' return PA_ENABLE_GPIO; ^~~~~~ /Users/.../esp/esp-adf/components/audio_board/esp32_s3_box_lite/board_pins_config.c:118:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: some warnings being treated as errors`

https://gist.github.com/patrickkeenan/b4795de6663bc2781c214f2eebcf9b25

shootao commented 1 year ago

@patrickkeenan Based on the log information and toolchain you provided, it seems that the chip model was not selected correctly Please configure the model of the chip ( idf.py set-target esp32s3) before performing other operations

patrickkeenan commented 1 year ago

Thanks @shootao, however that still causes an error. Looks like its expecting >=5.1.0, but I need to use 4.4 to be able to use ADF with this:

`CMake Error at /Users/.../esp/esp-idf/tools/cmake/build.cmake:463 (message): ERROR: Because project depends on idf (>=5.1.0) which doesn't match any versions, version solving failed.

Call Stack (most recent call first): /Users/.../esp/esp-idf/tools/cmake/project.cmake:476 (idf_build_process) CMakeLists.txt:16 (project) `

shootao commented 1 year ago

Hi @patrickkeenan There is no package manager with restrictions on esp-idf used in ESP-ADF. What project did you compile under?

patrickkeenan commented 1 year ago

The error above is from the s3-box repository and the factory demo example. I've tried an ADF example as well, but no luck on the s3 box lite.

shootao commented 1 year ago

Now ESP-ADF supports ESP-IDF V5.1, so suggest you upgrade ESP-IDF to V5.1