环境:windows下esp_adf v2.3+esp_idf v4.4 + vscode
在vscode里面编译成功但是,有编译警告如下,然后下载到开发板ESP32-LyraT v4.3运行后出现错误提示!
是不是adf v2.3不能支持idf v4.4
[97/97] cmd.exe /C "cd /D C:Espressifvoipbuildbootloaderesp-idfesptool_py && c:Espressifpython_envidf4.4_py3.8_envScriptspython.exe C:/Espressif/frameworks/esp-idf-v4.4/components/par
tition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Espressif/voip/build/bootloader/bootloader.bin"
Bootloader binary size 0x6990 bytes. 0x670 bytes (6%) free.
[1007/1175] Building C object esp-idf/audio_sal/CMakeFiles/__idf_audio_sal.dir/audio_thread.c.obj
C:/Espressif/esp-adf/components/audio_sal/audio_thread.c: In function 'audio_thread_create':
C:/Espressif/esp-adf/components/audio_sal/audio_thread.c:71:64: warning: passing argument 2 of 'xTaskCreateRestrictedPinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
if (xTaskCreateRestrictedPinnedToCore(&xRegParameters, (xTaskHandle)p_handle, core_id) != pdPASS) {
^~~~~~~~~~~~~~~~~~~~~
C:/Espressif/esp-adf/components/audio_sal/audio_thread.c:36:130: note: expected 'struct tskTaskControlBlock **' but argument is of type 'struct tskTaskControlBlock *'
BaseType_t __attribute__((weak)) xTaskCreateRestrictedPinnedToCore(const TaskParameters_t *const pxTaskDefinition, TaskHandle_t *pxCreatedTask, const BaseType_t xCoreID)
~~~~~~~~~~~~~~^~~~~~~~~~~~~
C:/Espressif/esp-adf/components/audio_sal/audio_thread.c:76:72: warning: passing argument 6 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
if (xTaskCreatePinnedToCore(main_func, name, stack, arg, prio, (xTaskHandle)p_handle, core_id) != pdPASS) {
^~~~~~~~~~~~~~~~~~~~~
In file included from C:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include/freertos/queue.h:41,
from C:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include/freertos/semphr.h:34,
from C:/Espressif/esp-adf/components/audio_sal/audio_thread.c:26:
C:/Espressif/frameworks/esp-idf-v4.4/components/freertos/include/freertos/task.h:350:62: note: expected 'struct tskTaskControlBlock ** const' but argument is of type 'struct tskTaskControlBlock *'
TaskHandle_t * const pvCreatedTask,
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
[1174/1175] Generating binary image from built executable
下载到开发板ESP32-LyraT v4.3运行后出现错误提示
I (0) cpu_start: App cpu up.
I (972) spiram: SPI SRAM memory test OK
I (980) cpu_start: Pro cpu start user code
I (981) cpu_start: cpu freq: 240000000
I (981) cpu_start: Application information:
I (983) cpu_start: Project name: voip_app
I (988) cpu_start: App version: 1
I (993) cpu_start: Compile time: Feb 15 2022 16:57:42
I (999) cpu_start: ELF file SHA256: 1f1c68a047361ceb...
I (1005) cpu_start: ESP-IDF: v4.4-dirty
I (1010) heap_init: Initializing. RAM available for dynamic allocation:
I (1017) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1024) heap_init: At 3FFB4FE8 len 0002B018 (172 KiB): DRAM
I (1030) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1036) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1043) heap_init: At 40094400 len 0000BC00 (47 KiB): IRAM
I (1049) spiram: Adding pool of 4084K of external SPI memory to heap allocator
I (1058) spi_flash: detected chip: gd
I (1061) spi_flash: flash io: qio
I (1066) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1076) spiram: Reserving pool of 18K of internal memory for DMA/internal allocations
I (1106) VOIP_EXAMPLE: [1.0] Initialize peripherals management
I (1106) VOIP_EXAMPLE: [1.1] Initialize and start peripherals
I (1116) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (1126) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (1126) VOIP_EXAMPLE: [1.2] Create and start input key service
W (1146) PERIPH_TOUCH: _touch_init
I (1146) VOIP_EXAMPLE: [ 1.3 ] Create display service instance
I (1156) VOIP_EXAMPLE: [ 2 ] Start codec chip
I (1156) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
E (1166) gpio: gpio_install_isr_service(449): GPIO isr service already installed
I (1196) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1196) ES8388_DRIVER: init,out:02, in:00
I (1206) AUDIO_HAL: Codec mode is 3, Ctrl:1
I (1206) VOIP_EXAMPLE: [ 3 ] Initialize tone player
I (1216) AUDIO_THREAD: The media_task task allocate stack on external memory
E (1216) MEDIA_OS: Not found right xTaskCreateRestrictedPinnedToCore.
Please enter IDF-PATH with "cd $IDF_PATH" and apply the IDF patch with "git apply $ADF_PATH/idf_patches/idf_v3.3_freertos.patch" first
E (1236) AUDIO_THREAD: Error creating RestrictedPinnedToCore media_task
E (1246) ESP_AUDIO_CTRL: Error create media_task
E (1246) PLAYER_INT_TONE: audio_player_int_tone.c:44 (audio_player_int_tone_init): Memory exhausted
I (1256) VOIP_EXAMPLE: [ 4 ] Create Wi-Fi service instance
E (1266) DISPATCHER: exe first list: 0x0
I (1286) DISPATCHER: dispatcher_event_task is running...
E (1286) WIFI_SSID_MANAGER: Fail to get configuration from nvs flash
I (1286) AUDIO_THREAD: The wifi_serv task allocate stack on external memory
E (1296) MEDIA_OS: Not found right xTaskCreateRestrictedPinnedToCore.
Please enter IDF-PATH with "cd $IDF_PATH" and apply the IDF patch with "git apply $ADF_PATH/idf_patches/idf_v3.3_freertos.patch" first
E (1306) AUDIO_THREAD: Error creating RestrictedPinnedToCore wifi_serv
E (1326) PERIPH_SERVICE: Create task failed on periph_service_create
E (1326) WIFI_SERV: wifi_service.c:686 (wifi_service_create): Memory exhausted
E (1356) WIFI_SERV: wifi_service.c:518 (wifi_service_register_setting_handle): Got NULL Pointer
E (1356) WIFI_SERV: wifi_service.c:576 (wifi_service_set_sta_info): Got NULL Pointer
E (1356) WIFI_SERV: wifi_service.c:560 (wifi_service_connect): Got NULL Pointer