ESP-ADF的方法似乎过旧了

Yobby0908
Posts: 3
Joined: Mon Oct 10, 2022 7:49 am

ESP-ADF的方法似乎过旧了

Postby Yobby0908 » Mon Jan 09, 2023 6:26 am

尝试编译
esp-adf\examples\recorder\pipeline_raw_http
例程时,发现不断出错,似乎是esp-idf的版本过旧了,请及时维护这个项目或提供解决方案

Code: Select all

In file included from C:/Users/48043/esp/esp-adf/components/audio_board/esp32_s3_korvo2_v3/board.h:28,
                 from C:/Users/48043/esp/esp-adf/components/display_service/led_bar/led_bar_ws2812.c:27:
C:/Users/48043/esp/esp-adf/components/audio_hal/include/audio_hal.h:149:5: error: unknown type name 'xSemaphoreHandle'
  149 |     xSemaphoreHandle audio_hal_lock;                                                                         /*!< semaphore of codec */
      |     ^~~~~~~~~~~~~~~~
In file included from C:/Users/48043/esp/esp-adf/components/audio_board/esp32_s3_korvo2_v3/board.h:31,
                 from C:/Users/48043/esp/esp-adf/components/display_service/led_bar/led_bar_ws2812.c:27:
C:/Users/48043/esp/esp-adf/components/esp_peripherals/include/esp_peripherals.h:78:32: error: unknown type name 'xTimerHandle'; did you mean 'TimerHandle_t'?        
   78 | typedef void (*timer_callback)(xTimerHandle tmr);
      |                                ^~~~~~~~~~~~
      |                                TimerHandle_t
In file included from C:/Users/48043/esp/esp-adf/components/audio_board/esp32_s3_korvo2_v3/board.h:31,
                 from C:/Users/48043/esp/esp-adf/components/display_service/led_bar/led_bar_ws2812.c:27:
C:/Users/48043/esp/esp-adf/components/esp_peripherals/include/esp_peripherals.h:347:88: error: unknown type name 'timer_callback'
  347 | esp_err_t esp_periph_start_timer(esp_periph_handle_t periph, TickType_t interval_tick, timer_callback callback);
      |                                                                                        ^~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

xinhaojie
Posts: 57
Joined: Wed Feb 23, 2022 10:56 am

Re: ESP-ADF的方法似乎过旧了

Postby xinhaojie » Mon Aug 07, 2023 8:33 am

有解决方案么,我也遇到这个问题了,我原来是在v4.4.2版本上,升级v5.1版本之后就有这个错误了。

tempo.tian
Posts: 40
Joined: Wed Jun 22, 2022 12:10 pm

Re: ESP-ADF的方法似乎过旧了

Postby tempo.tian » Fri Aug 11, 2023 2:09 am

可以看下你的ADF的版本,最新的版本默认应该是可以编译过的在IDF5.1上面
你可以手动打开下面的选项
Component config --> FreeRTOS --> Kernel
configENABLE_BACKWARD_COMPATIABILITY

Who is online

Users browsing this forum: No registered users and 9 guests