help needed configuring esp-adf for esp32-s3-box-3b

freudent
Posts: 6
Joined: Wed Jun 29, 2022 9:32 am

help needed configuring esp-adf for esp32-s3-box-3b

Postby freudent » Wed Apr 02, 2025 3:16 am

I have been developing for the audiokit v2.2 as a variant of a lyrat for a while.

I picked up a esp32-s3-box-3b,and attempted to build the pipeline_passthru demo code after selecting the esp32-s3-box HAL. The compile failed (see error msgs below). How can I properly configure for this board?

Thanks, Eric

[ 90%] Building C object esp-idf/audio_mixer/CMakeFiles/__idf_audio_mixer.dir/audio_mixer.c.obj
In file included from /home/freudent/esp/esp-adf/components/esp_peripherals/include/periph_adc_button.h:28,
from /home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c:31:
/home/freudent/esp/esp-adf/esp-idf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
| ^~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c: In function 'get_i2s_pins':
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c:55:33: error: 'GPIO_NUM_47' undeclared (first use in this function); did you mean 'GPIO_NUM_37'?
55 | i2s_config->ws_io_num = GPIO_NUM_47;
| ^~~~~~~~~~~
| GPIO_NUM_37
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c:55:33: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.h:29,
from /home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c:26:
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c: In function 'audio_board_lcd_init':
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_def.h:32:37: error: 'GPIO_NUM_45' undeclared (first use in this function); did you mean 'GPIO_NUM_35'?
32 | #define LCD_CTRL_GPIO GPIO_NUM_45
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c:87:25: note: in expansion of macro 'LCD_CTRL_GPI'
87 | .pin_bit_mask = LCD_CTRL_GPIO > 0 ? 1ULL << LCD_CTRL_GPIO : 0ULL,
| ^~~~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_def.h:32:37: note: each undeclared identifier is reported only once for each function it appears in
32 | #define LCD_CTRL_GPIO GPIO_NUM_45
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c:87:25: note: in expansion of macro 'LCD_CTRL_GPI'
87 | .pin_bit_mask = LCD_CTRL_GPIO > 0 ? 1ULL << LCD_CTRL_GPIO : 0ULL,
| ^~~~~~~~~~~~~
In file included from /home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.h:29,
from /home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c:28:
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c: In function 'get_pa_enable_gpio':
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_def.h:87:35: error: 'GPIO_NUM_46' undeclared (first use in this function); did you mean 'GPIO_NUM_36'?
87 | #define PA_ENABLE_GPIO GPIO_NUM_46
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c:117:12: note: in expansion of macro PA_ENABLE_GPIO'
117 | return PA_ENABLE_GPIO;
| ^~~~~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_def.h:33:37: error: 'GPIO_NUM_48' undeclared (first use in this function); did you mean 'GPIO_NUM_38'?
33 | #define LCD_RST_GPIO GPIO_NUM_48
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board.c:114:27: note: in expansion of macro 'LCD_RST_GPI'
114 | .reset_gpio_num = LCD_RST_GPIO,
| ^~~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/esp32_s3_box/board_pins_config.c:118:1: error: control reaches end of non-void function [-Werror=return-type]
118 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/build.make:90: esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/esp32_s3_box/board_pins_config.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/build.make:76: esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/esp32_s3_box/board.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:6457: esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Linking C static library libaudio_mixer.a
[ 90%] Built target __idf_audio_mixer
[ 90%] Linking C static library libespressif__esp-dsp.a
[ 90%] Built target __idf_espressif__esp-dsp
make: *** [Makefile:136: all] Error 2
make failed with exit code 2, output of the command is in the /home/freudent/esp/esp-adf/examples/audio_processing/pipeline_passthru/build/log/idf_py_stderr_output_88820 and /home/freudent/esp/esp-adf/examples/audio_processing/pipeline_passthru/build/log/idf_py_stdout_output_88820
ESP:~/esp/esp-adf/examples/audio_processing/pipeline_passthru $

Xuxin
Espressif staff
Espressif staff
Posts: 94
Joined: Thu Sep 22, 2022 3:35 am

Re: help needed configuring esp-adf for esp32-s3-box-3b

Postby Xuxin » Wed Apr 02, 2025 3:42 am

Hello, did you set the right target, idf.py set-target esp32s3
And if you want to use esp-box-3, I think you should choose the corresponding bsp, I see esp-box in your build log

freudent
Posts: 6
Joined: Wed Jun 29, 2022 9:32 am

Re: help needed configuring esp-adf for esp32-s3-box-3b

Postby freudent » Thu Apr 03, 2025 3:50 pm

Thanks for your suggestion. I belive that I tried setting that target (and obvious variants) previously. To be sure, I tried again and the build failed. See error log below.

Thanks, Eric

+ idf.py fullclean
+ idf.py set-target esp32s3
+ idf.py build
/home/freudent/esp/esp-adf/components/esp-adf-libs/esp_codec/audio_forge.c: In function 'audio_forge_sonic_set_speed':
/home/freudent/esp/esp-adf/components/esp-adf-libs/esp_codec/audio_forge.c:993:15: warning: using integer absolute value function 'abs' when argument is of floating-point type 'float' [-Wabsolute-value]
993 | if ((int)(abs((sonic_speed - audio_forge->sonic_speed) * 100)) <= 5) {
| ^~~
/home/freudent/esp/esp-adf/components/esp-adf-libs/esp_codec/audio_forge.c: In function 'audio_forge_sonic_set_pitch':
/home/freudent/esp/esp-adf/components/esp-adf-libs/esp_codec/audio_forge.c:1018:15: warning: using integer absolute value function 'abs' when argument is of floating-point type 'float' [-Wabsolute-value]
1018 | if ((int)(abs((sonic_pitch - audio_forge->sonic_pitch) * 100)) <= 5) {
| ^~~
In file included from /home/freudent/esp/esp-adf/components/esp-adf-libs/media_lib_sal/port/media_lib_os_freertos.c:43:
/home/freudent/esp/esp-adf/esp-idf/components/freertos/esp_additions/include/freertos/task_snapshot.h:8:2: warning: #warning freertos/task_snapshot.h header is no longer used, and will be removed in future versions. [-Wcpp]
8 | #warning freertos/task_snapshot.h header is no longer used, and will be removed in future versions.
| ^~~~~~~
In file included from /home/freudent/esp/esp-adf/components/esp_peripherals/include/periph_adc_button.h:28,
from /home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board.c:33:
/home/freudent/esp/esp-adf/esp-idf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
| ^~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_i2s_pins':
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:57:33: error: 'GPIO_NUM_25' undeclared (first use in this function); did you mean 'GPIO_NUM_45'?
57 | i2s_config->ws_io_num = GPIO_NUM_25;
| ^~~~~~~~~~~
| GPIO_NUM_45
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:57:33: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board.h:29,
from /home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:28:
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:87:35: error: 'GPIO_NUM_23' undeclared (first use in this function); did you mean 'GPIO_NUM_43'?
87 | #define BUTTON_PLAY_ID GPIO_NUM_23
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:135:12: note: in expansion of macro 'BUTTON_PLAY_ID'
135 | return BUTTON_PLAY_ID;
| ^~~~~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_green_led_gpio':
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:49:35: error: 'GPIO_NUM_22' undeclared (first use in this function); did you mean 'GPIO_NUM_42'?
49 | #define GREEN_LED_GPIO GPIO_NUM_22
| ^~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:152:12: note: in expansion of macro 'GREEN_LED_GPIO'
152 | return GREEN_LED_GPIO;
| ^~~~~~~~~~~~~~
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:136:1: error: control reaches end of non-void function [-Werror=return-type]
136 | }
| ^
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_green_led_gpio':
/home/freudent/esp/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:153:1: error: control reaches end of non-void function [-Werror=return-type]
153 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/build.make:90: esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/lyrat_v4_3/board_pins_config.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:6618: esp-idf/audio_board/CMakeFiles/__idf_audio_board.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:136: all] Error 2
make failed with exit code 2, output of the command is in the /home/freudent/esp/esp-adf/examples/audio_processing/pipeline_passthru/build/log/idf_py_stderr_output_90754 and /home/freudent/esp/esp-adf/examples/audio_processing/pipeline_passthru/build/log/idf_py_stdout_output_90754

Xuxin
Espressif staff
Espressif staff
Posts: 94
Joined: Thu Sep 22, 2022 3:35 am

Re: help needed configuring esp-adf for esp32-s3-box-3b

Postby Xuxin » Tue Apr 15, 2025 11:11 am

lyrat_v4_3 I think you still select the wrong board.
And, if you ask questions under the corresponding repo https://github.com/espressif/esp-adf, you will get a more professional reply.

Who is online

Users browsing this forum: No registered users and 1 guest