espressif / esp-va-sdk

Espressif's Voice Assistant SDK: Alexa, Google Voice Assistant, Google DialogFlow
Other
293 stars 83 forks source link

Failed idf.py build for the branch feature/aia-beta #132

Open jassi00713 opened 3 years ago

jassi00713 commented 3 years ago

Trying to implement Alexa on ESP32 Vaquita DSPG and using branch feature/aia-beta

Followed instructions on the below link:- https://github.com/espressif/esp-va-sdk/tree/feature/aia-beta#2-development-setup

Build is failing. Error caused due to -> multiple definition of `set_xpd_sar' Kindly help with the soltion to this.

Below are logs on running idf.py build. LOGS-

idf.py build Checking Python dependencies... Python requirements from /home/javivek/espaia2/esp-idf/requirements.txt are satisfied. Executing action: all (aliases: build) Running ninja in directory /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build Executing "ninja all"... [211/1168] cd /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/esp-...****" Partition table binary generated. Contents:


Espressif ESP32 Partition Table

Name, Type, SubType, Offset, Size, Flags

nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, fctry_aia,data,nvs,0x10000,24K, fctry,data,nvs,0x16000,24K, otadata,data,ota,0x1c000,8K, ota_0,app,ota_0,0x20000,4032K, ota_1,app,ota_1,0x410000,4032K,


[304/1168] Performing configure step for 'bootloader' -- Component directory /home/javivek/espaia2/esp-idf/components/cbor does not contain a CMakeLists.txt file. No component will be added -- Component directory /home/javivek/espaia2/esp-idf/components/cmock does not contain a CMakeLists.txt file. No component will be added -- Component directory /home/javivek/espaia2/esp-idf/components/tinyusb does not contain a CMakeLists.txt file. No component will be added -- Project version: v4.0.2-442-g41efdb0b3 -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/sdkconfig -- Adding linker script /home/javivek/espaia2/esp-idf/components/esp32/ld/esp32.peripherals.ld -- Adding linker script /home/javivek/espaia2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/javivek/espaia2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/javivek/espaia2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/javivek/espaia2/esp-idf/components/bootloader/subproject/main/esp32.bootloader.ld -- Adding linker script /home/javivek/espaia2/esp-idf/components/bootloader/subproject/main/esp32.bootloader.rom.ld -- Components: bootloader bootloader_support efuse esp32 esp_common esp_rom esptool_py log main micro-ecc partition_table soc spi_flash xtensa -- Component paths: /home/javivek/espaia2/esp-idf/components/bootloader /home/javivek/espaia2/esp-idf/components/bootloader_support /home/javivek/espaia2/esp-idf/components/efuse /home/javivek/espaia2/esp-idf/components/esp32 /home/javivek/espaia2/esp-idf/components/esp_common /home/javivek/espaia2/esp-idf/components/esp_rom /home/javivek/espaia2/esp-idf/components/esptool_py /home/javivek/espaia2/esp-idf/components/log /home/javivek/espaia2/esp-idf/components/bootloader/subproject/main /home/javivek/espaia2/esp-idf/components/bootloader/subproject/components/micro-ecc /home/javivek/espaia2/esp-idf/components/partition_table /home/javivek/espaia2/esp-idf/components/soc /home/javivek/espaia2/esp-idf/components/spi_flash /home/javivek/espaia2/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/bootloader [331/1168] Performing build step for 'bootloader' [1/2] Linking C executable bootloader.elf [2/2] Generating binary image from built executable esptool.py v2.9-dev Generated /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/bootloader/bootloader.bin [1067/1168] Building C object esp-idf/streams/CMakeFiles/idf_streams.dir/i2s_stream/i2s_stream.c.obj /home/javivek/espaia2/esp-va-sdk/components/streams/i2s_stream/i2s_stream.c: In function 'parse_i2s_config': /home/javivek/espaia2/esp-va-sdk/components/streams/i2s_stream/i2s_stream.c:45:15: warning: unused variable 'ret' [-Wunused-variable] esp_err_t ret = ESP_OK; ^~~ [1078/1168] Building C object esp-idf/httpc/CMakeFiles/idf_httpc.dir/httpc.c.obj /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c: In function 'http_connection_new': /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c:156:5: warning: 'esp_tls_conn_new' is deprecated [-Wdeprecated-declarations] tls = esp_tls_conn_new(&url[u->field_data[UF_HOST].off], u->field_data[UF_HOST].len, ^~~ In file included from /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.h:18, from /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c:20: /home/javivek/espaia2/esp-idf/components/esp-tls/esp_tls.h:271:12: note: declared here esp_tls_t esp_tls_conn_new(const char hostname, int hostlen, int port, const esp_tls_cfg_t *cfg) attribute ((deprecated)); ^~~~ /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c: In function 'http_connection_new_async': /home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c:224:18: warning: this statement may fall through [-Wimplicit-fallthrough=] h->state = ESP_HTTP_TLS_CONNECT;


/home/javivek/espaia2/esp-va-sdk/components/httpc/httpc.c:226:5: note: here
     case ESP_HTTP_TLS_CONNECT:
     ^~~~
[1089/1168] Building C object esp-idf/led_pattern/CMakeFiles/__idf_led_pattern.dir/linear_5/alexa/led_pattern.c.obj
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/led_pattern/linear_5/alexa/led_pattern.c: In function 'led_pattern_init':
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/led_pattern/linear_5/alexa/led_pattern.c:1024:66: warning: conversion from 'unsigned int' to 'uint8_t' {aka 'unsigned char'} changes value from '265' to '9' [-Woverflow]
     led_linear5_conf[LED_PATTERN_ALERT_SHORT].led_states_count = sizeof(led_linear5_alrt_short) / sizeof(led_linear5_alrt_short[0]);
                                                                  ^~~~~~
[1090/1168] Building C object esp-idf/misc/CMakeFiles/__idf_misc.dir/va_mem_utils.c.obj
/home/javivek/espaia2/esp-va-sdk/components/misc/va_mem_utils.c:31:20: warning: 'TAG' defined but not used [-Wunused-variable]
 static const char *TAG = "[va_mem_utils]";
                    ^~~
[1098/1168] Building C object esp-idf/misc/CMakeFiles/__idf_misc.dir/va_led.c.obj
/home/javivek/espaia2/esp-va-sdk/components/misc/va_led.c: In function 'va_led_init':
/home/javivek/espaia2/esp-va-sdk/components/misc/va_led.c:356:25: warning: initialization of 'void (*)(int)' from incompatible pointer type 'esp_err_t (*)(int)' {aka 'int (*)(int)'} [-Wincompatible-pointer-types]
         .set_state_cb = va_led_set,
                         ^~~~~~~~~~
/home/javivek/espaia2/esp-va-sdk/components/misc/va_led.c:356:25: note: (near initialization for 'ui_config.set_state_cb')
[1101/1168] Building C object esp-idf/misc/CMakeFiles/__idf_misc.dir/va_nvs_utils.c.obj
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c: In function 'nvs_task':
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:87:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
             err = nvs_set_i8(handle, params->key, (int8_t)params->val_buf);
                                                   ^
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:89:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
             err = nvs_set_u16(handle, params->key, (uint16_t)params->val_buf);
                                                    ^
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c: In function 'va_nvs_set_i8':
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:235:56: warning: initialization of 'void *' from 'int8_t' {aka 'signed char'} makes pointer from integer without a cast [-Wint-conversion]
     struct nvs_ops_params tp = {VA_NVS_NAMESPACE, key, val_buf, NULL, SET, I8, xTaskGetCurrentTaskHandle()};
                                                        ^~~~~~~
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:235:56: note: (near initialization for 'tp.val_buf')
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c: In function 'va_nvs_set_u16':
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:287:56: warning: initialization of 'void *' from 'uint16_t' {aka 'short unsigned int'} makes pointer from integer without a cast [-Wint-conversion]
     struct nvs_ops_params tp = {VA_NVS_NAMESPACE, key, val_buf, NULL, SET, U16, xTaskGetCurrentTaskHandle()};
                                                        ^~~~~~~
/home/javivek/espaia2/esp-va-sdk/components/misc/va_nvs_utils.c:287:56: note: (near initialization for 'tp.val_buf')
[1117/1168] Building C object esp-idf/common/CMakeFiles/__idf_common.dir/app_wifi.c.obj
/home/javivek/espaia2/esp-va-sdk/examples/common/app_wifi.c: In function 'app_wifi_init':
/home/javivek/espaia2/esp-va-sdk/examples/common/app_wifi.c:195:5: warning: 'adc_power_on' is deprecated [-Wdeprecated-declarations]
     adc_power_on();
     ^~~~~~~~~~~~
In file included from /home/javivek/espaia2/esp-va-sdk/examples/common/app_wifi.c:12:
/home/javivek/espaia2/esp-idf/components/driver/include/driver/adc.h:219:6: note: declared here
 void adc_power_on(void) __attribute__((deprecated));
      ^~~~~~~~~~~~
[1137/1168] Building C object esp-idf/codec_es8311/CMakeFiles/__idf_codec_es8311.dir/media_hal_codec_init.c.obj
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/media_hal_codec_init.c: In function 'media_hal_func_init':
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/media_hal_codec_init.c:42:41: warning: assignment to 'esp_err_t (*)(int)' {aka 'int (*)(int)'} from incompatible pointer type 'esp_err_t (*)(void)' {aka 'int (*)(void)'} [-Wincompatible-pointer-types]
     media_hal->audio_codec_deinitialize = es8311_deinit;
                                         ^
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/media_hal_codec_init.c:46:43: warning: assignment to 'esp_err_t (*)(uint8_t)' {aka 'int (*)(unsigned char)'} from incompatible pointer type 'int (*)(int)' [-Wincompatible-pointer-types]
     media_hal->audio_codec_control_volume = es8311_set_volume;
                                           ^
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/media_hal_codec_init.c:47:39: warning: assignment to 'esp_err_t (*)(uint8_t *)' {aka 'int (*)(unsigned char *)'} from incompatible pointer type 'int (*)(int *)' [-Wincompatible-pointer-types]
     media_hal->audio_codec_get_volume = es8311_get_volume;
                                       ^
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/media_hal_codec_init.c:48:37: warning: assignment to 'esp_err_t (*)(_Bool)' {aka 'int (*)(_Bool)'} from incompatible pointer type 'int (*)(int)' [-Wincompatible-pointer-types]
     media_hal->audio_codec_set_mute = es8311_set_mute;
                                     ^
[1146/1168] Building C object esp-idf/codec_es8311/CMakeFiles/__idf_codec_es8311.dir/es8311.c.obj
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/es8311.c: In function 'es8311_init':
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/es8311.c:321:9: warning: unused variable 'port_num' [-Wunused-variable]
     int port_num = media_hal_conf->port_num;
         ^~~~~~~~
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/es8311.c:320:28: warning: unused variable 'es8388_dac_output' [-Wunused-variable]
     media_hal_dac_output_t es8388_dac_output = media_hal_conf->dac_output;
                            ^~~~~~~~~~~~~~~~~
/home/javivek/espaia2/esp-va-sdk/components/audio_hal/esp_codec/es8311/components/codec_es8311/es8311.c:319:27: warning: unused variable 'es8311_adc_input' [-Wunused-variable]
     media_hal_adc_input_t es8311_adc_input = media_hal_conf->adc_input;
                           ^~~~~~~~~~~~~~~~
[1167/1168] Linking CXX executable aia.elf
FAILED: aia.elf 
: && /home/javivek/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++  -mlongcalls -Wno-frame-address  -nostdlib CMakeFiles/aia.elf.dir/project_elf_src.c.obj  -o aia.elf  esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/driver/libdriver.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/lwip/liblwip.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_event/libesp_event.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/esp32/libesp32.a esp-idf/xtensa/libxtensa.a esp-idf/esp_common/libesp_common.a esp-idf/esp_rom/libesp_rom.a esp-idf/soc/libsoc.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/asio/libasio.a esp-idf/bt/libbt.a esp-idf/coap/libcoap.a esp-idf/console/libconsole.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/mdns/libmdns.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/fatfs/libfatfs.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/json/libjson.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/ulp/libulp.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/main/libmain.a esp-idf/json_parser/libjson_parser.a esp-idf/httpc/libhttpc.a esp-idf/streams/libstreams.a esp-idf/utils/libutils.a esp-idf/media_hal/libmedia_hal.a esp-idf/led_pattern/libled_pattern.a esp-idf/misc/libmisc.a esp-idf/audio_hal/libaudio_hal.a esp-idf/audio_pipeline/libaudio_pipeline.a esp-idf/sys_playback/libsys_playback.a esp-idf/basic_player/libbasic_player.a esp-idf/esp_httpd_ota/libesp_httpd_ota.a esp-idf/multipart_parser/libmultipart_parser.a esp-idf/qrcode/libqrcode.a esp-idf/sh2lib/libsh2lib.a esp-idf/uuid-gen/libuuid-gen.a esp-idf/common/libcommon.a esp-idf/alexa_equalizer/libalexa_equalizer.a esp-idf/app_cloud/libapp_cloud.a esp-idf/app_smart_home/libapp_smart_home.a esp-idf/custom_player/libcustom_player.a esp-idf/esp-aws-iot/libesp-aws-iot.a esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a esp-idf/neo_pixel_led/libneo_pixel_led.a esp-idf/codec_es8311/libcodec_es8311.a -Wl,--cref -Wl,--Map=/home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/aia.map -fno-rtti -fno-lto /home/javivek/espaia2/esp-va-sdk/components/voice_assistant/lib/libaia.a /home/javivek/espaia2/esp-va-sdk/components/codecs/lib/libcodecs.a esp-idf/utils/libutils.a esp-idf/audio_hal/libaudio_hal.a esp-idf/media_hal/libmedia_hal.a esp-idf/streams/libstreams.a esp-idf/misc/libmisc.a esp-idf/led_pattern/libled_pattern.a esp-idf/sys_playback/libsys_playback.a /home/javivek/espaia2/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a /home/javivek/espaia2/esp-va-sdk/components/audio_hal/dsp_driver/dspg_driver/components/dbmd5-ipc/lib/libdspg-ipc.a /home/javivek/espaia2/esp-va-sdk/components/audio_hal/dsp_driver/dspg_driver/components/va_dsp/lib/libva_dsp.a esp-idf/uuid-gen/libuuid-gen.a esp-idf/basic_player/libbasic_player.a esp-idf/main/libmain.a esp-idf/streams/libstreams.a esp-idf/utils/libutils.a esp-idf/media_hal/libmedia_hal.a esp-idf/led_pattern/libled_pattern.a esp-idf/misc/libmisc.a esp-idf/audio_hal/libaudio_hal.a esp-idf/audio_pipeline/libaudio_pipeline.a esp-idf/sys_playback/libsys_playback.a esp-idf/basic_player/libbasic_player.a esp-idf/uuid-gen/libuuid-gen.a esp-idf/common/libcommon.a esp-idf/alexa_equalizer/libalexa_equalizer.a esp-idf/app_smart_home/libapp_smart_home.a esp-idf/custom_player/libcustom_player.a esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a esp-idf/neo_pixel_led/libneo_pixel_led.a esp-idf/codec_es8311/libcodec_es8311.a /home/javivek/espaia2/esp-va-sdk/components/voice_assistant/lib/libaia.a /home/javivek/espaia2/esp-va-sdk/components/codecs/lib/libcodecs.a esp-idf/utils/libutils.a esp-idf/audio_hal/libaudio_hal.a esp-idf/media_hal/libmedia_hal.a esp-idf/streams/libstreams.a esp-idf/misc/libmisc.a esp-idf/led_pattern/libled_pattern.a esp-idf/sys_playback/libsys_playback.a /home/javivek/espaia2/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a /home/javivek/espaia2/esp-va-sdk/components/audio_hal/dsp_driver/dspg_driver/components/dbmd5-ipc/lib/libdspg-ipc.a /home/javivek/espaia2/esp-va-sdk/components/audio_hal/dsp_driver/dspg_driver/components/va_dsp/lib/libva_dsp.a esp-idf/uuid-gen/libuuid-gen.a esp-idf/basic_player/libbasic_player.a esp-idf/main/libmain.a esp-idf/qrcode/libqrcode.a esp-idf/spiffs/libspiffs.a esp-idf/sh2lib/libsh2lib.a esp-idf/multipart_parser/libmultipart_parser.a esp-idf/libsodium/liblibsodium.a esp-idf/fatfs/libfatfs.a esp-idf/httpc/libhttpc.a esp-idf/json_parser/libjson_parser.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/driver/libdriver.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/lwip/liblwip.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_event/libesp_event.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/esp32/libesp32.a esp-idf/xtensa/libxtensa.a esp-idf/esp_common/libesp_common.a esp-idf/esp_rom/libesp_rom.a esp-idf/soc/libsoc.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/asio/libasio.a esp-idf/bt/libbt.a esp-idf/coap/libcoap.a esp-idf/console/libconsole.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/mdns/libmdns.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/fatfs/libfatfs.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/json/libjson.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/ulp/libulp.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/protocomm/libprotocomm.a esp-idf/bt/libbt.a -L/home/javivek/espaia2/esp-idf/components/bt/controller/lib -lbtdm_app esp-idf/protobuf-c/libprotobuf-c.a esp-idf/mdns/libmdns.a esp-idf/json/libjson.a esp-idf/json_parser/libjson_parser.a esp-idf/httpc/libhttpc.a /home/javivek/espaia2/esp-va-sdk/components/esp-downmix/lib/libesp-downmix.a esp-idf/esp_httpd_ota/libesp_httpd_ota.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/multipart_parser/libmultipart_parser.a esp-idf/qrcode/libqrcode.a esp-idf/sh2lib/libsh2lib.a esp-idf/esp-tls/libesp-tls.a esp-idf/nghttp/libnghttp.a -L /home/javivek/espaia2/esp-va-sdk/components/speech_recog/lib -lesp_wwe -lspeech_recog -lc_speech_features -ldl_lib -lnn_model esp-idf/app_cloud/libapp_cloud.a esp-idf/console/libconsole.a esp-idf/esp-aws-iot/libesp-aws-iot.a esp-idf/jsmn/libjsmn.a esp-idf/cxx/libcxx.a esp-idf/newlib/libnewlib.a esp-idf/freertos/libfreertos.a esp-idf/heap/libheap.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/esp_rom/libesp_rom.a esp-idf/esp_common/libesp_common.a esp-idf/xtensa/libxtensa.a esp-idf/esp32/libesp32.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/lwip/liblwip.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/app_update/libapp_update.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/nvs_flash/libnvs_flash.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcoexist.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcore.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libespnow.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libmesh.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libnet80211.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libphy.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libpp.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/librtc.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libsmartconfig.a esp-idf/esp_event/libesp_event.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/driver/libdriver.a esp-idf/vfs/libvfs.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/app_trace/libapp_trace.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/cxx/libcxx.a esp-idf/newlib/libnewlib.a esp-idf/freertos/libfreertos.a esp-idf/heap/libheap.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/esp_rom/libesp_rom.a esp-idf/esp_common/libesp_common.a esp-idf/xtensa/libxtensa.a esp-idf/esp32/libesp32.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/lwip/liblwip.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/app_update/libapp_update.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/nvs_flash/libnvs_flash.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcoexist.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcore.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libespnow.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libmesh.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libnet80211.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libphy.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libpp.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/librtc.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libsmartconfig.a esp-idf/esp_event/libesp_event.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/driver/libdriver.a esp-idf/vfs/libvfs.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/app_trace/libapp_trace.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/cxx/libcxx.a esp-idf/newlib/libnewlib.a esp-idf/freertos/libfreertos.a esp-idf/heap/libheap.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/esp_rom/libesp_rom.a esp-idf/esp_common/libesp_common.a esp-idf/xtensa/libxtensa.a esp-idf/esp32/libesp32.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/lwip/liblwip.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/app_update/libapp_update.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/nvs_flash/libnvs_flash.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcoexist.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libcore.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libespnow.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libmesh.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libnet80211.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libphy.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libpp.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/librtc.a /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32/libsmartconfig.a esp-idf/esp_event/libesp_event.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/driver/libdriver.a esp-idf/vfs/libvfs.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/app_trace/libapp_trace.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a -u __cxa_guard_dummy -lstdc++ esp-idf/pthread/libpthread.a -u __cxx_fatal_exception esp-idf/newlib/libnewlib.a -u newlib_include_locks_impl -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -Wl,--undefined=uxTopUsedPriority -L /home/javivek/espaia2/esp-idf/components/esp_rom/esp32/ld -T esp32.rom.ld -T esp32.rom.libgcc.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-data.ld -Wl,--gc-sections /home/javivek/espaia2/esp-idf/components/xtensa/esp32/libhal.a -L /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/esp-idf/esp32 -T esp32_out.ld -u app_main -L /home/javivek/espaia2/esp-idf/components/esp32/ld -T esp32.extram.bss.ld -L /home/javivek/espaia2/esp-va-sdk/examples/amazon_aia/build/esp-idf/esp32/ld -T esp32.project.ld -T esp32.peripherals.ld -u call_user_start_cpu0 -u ld_include_panic_highint_hdl -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -u esp_app_desc -u vfs_include_syscalls_impl -L /home/javivek/espaia2/esp-idf/components/esp_wifi/lib_esp32 -lgcov -lc -lm -lgcc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl && :
/home/javivek/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj): in function `set_xpd_sar':
/home/javivek/espaia2/esp-idf/components/esp_wifi/src/wifi_init.c:219: multiple definition of `set_xpd_sar'; esp-idf/common/libcommon.a(app_wifi.c.obj):/home/javivek/espaia2/esp-va-sdk/examples/common/app_wifi.c:185: first defined here
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
chiragatal commented 3 years ago

I think this is because of a recent commit in esp-idf. Could you comment the set_xpd_sar() API in esp-va-sdk/examples/common/app_wifi.c:184 and try again?

jassi00713 commented 3 years ago

Thanks a lot. It worked.

If i could get one more help. Firmware flashes fine. I have generated the new ESP Alexa Credentials. mfg_config.csv file i have received in the mail has sme extra feilds as compared to the one already present in SDK.

mfg_config.csv in SDK :- key,type,encoding,value device,namespace,, client_cert,file,binary,/path/to/esp-alexa/examples/amazon_aia/main/certs/device.crt client_key,file,binary,/path/to/esp-alexa/examples/amazon_aia/main/certs/device.key server_cert,file,binary,/path/to/esp-alexa/examples/amazon_aia/main/certs/server.crt

mfg_config.csv Received in mail:- key,type,encoding,value device,namespace,, device_id,file,binary,/path/to/device.info account_id,file,binary,/path/to/account.info mqtt_host,file,binary,/path/to/endpoint.info client_cert,file,binary,/path/to/device.cert client_key,file,binary,/path/to/device.key server_cert,file,binary,/path/to/server.cert

Thanks.

chiragatal commented 3 years ago

All the fields in the downloaded one are required. The one already present in the SDK only has some of those as the SDK provides other options (like menuconfig) to set the other fields.

jassi00713 commented 3 years ago

cool :+1: