Giter VIP home page Giter VIP logo

esp-va-sdk's Introduction

Table Of Contents

0. Important Note

The Wake-word ("Alexa") recognition software that is part of the GitHub repository is for evaluation only. Please contact [email protected] for production-ready Wake-word recognition DSP Firmware that is available from our DSP partners.

Please refer to Changelog to track release changes and known-issues.

1. Introduction

Espressif's Voice Assistant SDK allows customers to build Alexa and Google built-in smart devices. This allows customers to leverage Espressif's rich IoT device development capability while simultaneously incorporating voice enablement in these devices.

1.1 Solution Architecture

The typical solution architecture of the product is shown as below.

Solution Architecture Block Diagram

The following are the relevant blocks for the solution:

  1. ESP32: This is the primary microcontroller that controls the operations of the product.
    1. Voice Assistant Client: It runs the Voice Assistant client that manages the audio communication with the Voice Assistant's cloud. ESP32 is also responsible for any state management, audio encode/decode operations.
    2. IoT Device: It also runs the software that interfaces with your peripherals providing the smart-device functionality that you wish to expose.
  2. DSP: The DSP typically performs the Noise Reduction (NR), Acoustic Echo Cancellation (AEC) and run the Wake-Word Engine (WWE). The DSP is interfaced with the Mic Array for the audio input. And it subsequently interacts with the ESP32 for relaying the audio input.
  3. Codec: The playback data is received by the Codec which it subsequently sends to the speaker.

1.2 The Software

The software that is part of this SDK is sulf-sufficient to provide a full voice-assistant capability for your device. Typically, as a device manufacturer, you may want to customise certain configurations of this software. If you also wish to expose some additional functionality beyond voice-assistant (switch, fan, water purifier, etc), you will also have to write the device drivers for controlling this.

Software Components Block Diagram

The above block diagram indicates the various components of the Voice Assistant SDK.

1.3 Voice Assistants

1.3.1 Alexa Voice Service (AVS)

Alexa is Amazon's personal virtual assistant which listens to user's voice commands and responds with appropriate answers. Apart from conversing with the user, Alexa lets you play music from a variety of music streaming services. Alexa also helps you manage to-do lists and allows for voice-assisted shopping from Amazon.

This particular flavour of Alexa is helpful when you are building a 'speaker' class of device with esp-va-sdk.

AVS also supports playing music through Bluetooth working in conjunction with music from Alexa.

1.3.2 AVS for IoT (AFI)

AVS for IoT (AFI) is also known as AVS integrated with AWS IoT (AIA). The Amazon cloud does the audio decoding from various sources and sends them to the device. This reduces the processing and memory usage on the device. This flavour of Alexa would be particularly helpful if you are building a voice-assistant end-device that is not just a speaker, but additionally something else (switch, fan, water purifier, etc).

AIA also supports AVS smart home integration. Let's consider you are a alexa-enabled light bulb. Smart Home integration implies that if you say a query like 'Alexa, switch off the light' (where the light is your own device), then the AIA cloud service will decode this into actionable data that comes back to your device, and you can parse it and execute the action (in this case switching off the light).

1.3.3 Google Voice Assistant (GVA)

GVA is Google's version of a personal voice assistant. It is multilingual and allows users to converse in their preferred language. Apart from general queries, it allows users to check on the traffic conditions, emails, weather conditions and much more.

Note that this SDK only includes a Proof-of-Concept (PoC) implementation for GVA. This is not recommended for production.

1.3.4 Google Dialogflow

Dialogflow (previously known as API.AI) is a voice enabled conversational interface from Google. It enables IoT users to include natural language user interface in their applications, services and devices.

The advantages of Dialogflow wrt voice assistants are, less complexity, pay as you go pricing, custom wakeword allowed and no certification hassles.

Unlike other voice assistants, Dialogflow let's you configure every step of the conversation, and it won't answer other trivia/questions like voice assistants typically do. For e.g. A Dialogflow agent for Laundry project will provide information only about the configurable parameters of the laundry (like state, temperature, wash cycle, etc.).

The implementation here facilitates the audio communication of ESP32 with a Google Dialogflow agent using its v2beta1 gRPC APIs.

1.4 The ESP32-Vaquita-DSPG Development Board

The ESP32-Vaquita-DSPG Development Board is Amazon-certified for Alexa functionality. The solution consists of the ESP32 micro-controller paired with DSP-G's DBMD5P SoC. The ESP32 provides the Wi-Fi connectivity and implements the Voice Assistant client, the DBMD5P runs the acoustic front-end and the wake-word engine.

The following is a picture of the ESP32-DBMD5P Dev Kit.

ESP32-Vaquita-DSPG Board

ESP32-Vaquita-DSPG Board

The kit has the following contents:

  • Dev Kit
  • ESP32 as the host micro-controller
  • DBMD5P running the acoustic frontend and wake-word engine
  • 2 Push Buttons
  • 5 RGB LEDs (Linear)
  • 2-mic Mic Array board

1.4.1 Buttons

Push-to-Talk (Button1): Press this button to initiate conversation with the Assistant without saying the wake-word.

Microphone Mute (Button2): Press this button to disable/enable microphone on the device.

Reset to Factory: This wipes all the settings (Network configuration, Alexa/Google login credentials) from the device, and the device goes back to default factory settings. Press and hold Mute + Push-To-Talk buttons together for 10 seconds. (until you see orange LEDs)

Reset Wi-Fi Configuration: Use this to switch the device into Wi-Fi change mode. The device will stay in this mode for 3 minutes, after which it will go back to the normal mode of operation. You can use the phone apps, within this time-frame, to re-configure the Wi-Fi credentials of the Dev Kit. The new Wi-Fi credentials will overwrite the previous Wi-Fi configuration. Press and hold Push-To-Talk button for 5 seconds. (until you see orange LEDs)

Note: All the supported boards are mentioned here: audio_board

2. Development Setup

This sections talks about setting up your development host, fetching the git repositories, and instructions for build and flash.

2.1 Host Setup

You should install drivers and support packages for your development host. Windows, Linux and Mac OS-X, are supported development hosts. Please see Get Started for the host setup instructions.

2.2 Getting the Repositories

$ git clone --recursive https://github.com/espressif/esp-idf.git

$ cd esp-idf; git checkout release/v4.2; git submodule init; git submodule update --init --recursive;

$ ./install.sh

$ cd ..

$ git clone https://github.com/espressif/esp-va-sdk.git

2.3 Building the Firmware

$ cd esp-va-sdk/examples/amazon_aia/ (for AIA or amazon_alexa for AVS or google_voice_assistant or google_dialogflow)

$ export ESPPORT=/dev/cu.SLAB_USBtoUART (or /dev/ttyUSB0 or /dev/ttyUSB1 on Linux or COMxx on MinGW)

$ export IDF_PATH=/path/to/esp-idf

$ . $IDF_PATH/export.sh

Set audio_board path. e.g. For ESP32-Vaquita-DSPG:

$ export AUDIO_BOARD_PATH=/path/to/esp-va-sdk/components/audio_hal/audio_board/audio_board_vaquita_dspg

Menuconfig changes:

Do this change only if you are using ESP32-WROVER-E module:
$ idf.py menuconfig
-> Component config -> ESP32-specific -> Minimum Supported ESP32 Revision -> change Rev_0 to Rev_3

Do these changes only if your board uses spiffs partition for storing the dsp firmware (Refer to the $AUDIO_BOARD_PATH/audio_board.cmake file):
$ idf.py menuconfig
-> Partition Table -> Custom partition CSV file -> change to partitions_spiffs.csv

Do these changes only if you are using ESP32 module with 4MB flash size (Refer to the $AUDIO_BOARD_PATH/audio_board.cmake file):
$ idf.py menuconfig
-> Serial flasher config -> Flash size -> change to 4MB
-> Partition Table -> Custom partition CSV file -> change to partitions_4mb_flash.csv

2.4 Flashing the Firmware

(When flashing the SDK for the first time, it is recommended to do idf.py erase_flash to wipe out entire flash and start out fresh.)

$ idf.py flash monitor

3. Additional Setup

The device would need additional configuration on the cloud as well as the device firmware for it to work. Check the README in the example directory for the voice assistant specific Project Setup.

4. Device Provisioning

For Google Voice Assistant and Google Dialogflow, please refer to the READMEs in the respective examples instead of the description that follows below.

The configuration step consists of (a) configuring the Wi-Fi network and (b) signing into your Alexa account and linking the device. Espressif has released the following phone applications that facilitate the same:

iOS: iOS app
Android: Android app

Please install the relevant application on your phone before your proceed.

4.1 Configuration Steps

Here are the steps to configure the Dev Kit

  • On first boot-up, the Dev Kit is in configuration mode. This is indicated by Orange LED pattern. Please ensure that the LED pattern is seen as described above, before you proceed.
  • Launch the phone app.
  • Select the option Add New Device.

App Home

  • A list of devices that are in configuration mode is displayed. Note that the devices are discoverable over BLE (Bluetooth Low Energy). Please ensure that the phone app has the appropriate permissions to access Bluetooth (on Android the Location permission is also required for enabling Bluetooth).

App Discover Devices

  • Now you can sign-in to your Amazon Alexa account. If you have Amazon Shopping app installed on the same phone, app will automatically sign-in with the account the shopping app is signed in to. Otherwise it will open a login page on the phone's default browser. (It is recommended to install the Amazon Shopping app on your phone to avoid any other browser related errors.)

App Sign-in

  • You can now select the Wi-Fi network that the Dev Kit should connect with, and enter the credentials for this Wi-Fi network.

App Scna List

App Wi-Fi Password

  • On successful Wi-Fi connection, you will see a list of few of the voice queries that you can try with the Dev Kit.

App Things To Try

  • You are now fully setup. You can now say "Alexa" followed by the query you wish to ask.

4.2 Additional Device Settings

Some device settings like Volume Control, Locale Change, etc. can also be controlled through the phone app.

  • Launch the phone app, select the option Manage devices.

App Home

  • Make sure you are connected to the same network as the device and also that SSDP packets can be sent on your network.
  • Now select your device from the list of devices for the device settings.

5. Customising for your Board

For integrating/customising your own board, refer to components/audio_hal/README.md

6. Integrating other components

6.1 ESP RainMaker

6.1.1 Environment Setup

Additional setup that needs to be done for integrating ESP RainMaker:

  • Get the repository:
    $ git clone --recursive https://github.com/espressif/esp-rainmaker.git
    
  • Setting cloud_agent:
    $ export CLOUD_AGENT_PATH=/path/to/esp-rainmaker
    
  • Menuconfig changes:
    $ idf.py menuconfig
    -> Voice Assistant Configuration -> Enable cloud support -> enable this
    

6.1.2 Device Provisioning

The combined app for ESP RainMaker + ESP Alexa is still under development. Till then, both the apps can be used separately for provisioning.

  • Open the ESP RainMaker app and sign-in.

  • Click on add device, scan the QR code and complete the Wi-Fi setup.

  • The app will verify the setup.

  • (For GVS and Dialogflow, refer to their respective READMEs for provisioning.)

  • Make sure you are connected to the same network as the device.

  • Open the ESP Alexa app -> Manage Devices.

  • Find your device and sign-in into Alexa.

6.1.3 Customisation

To customise your own device, you can edit the file examples/additional_components/app_cloud/app_cloud_rainmaker.c. You can check the examples in ESP RainMaker for some more device examples.

6.2 Smart Home

This is only for AIA (AVS support will be added soon).

Note: There is a bug where the device name is being set as 'Demo Light' instead of what is being set by the device (default is 'Light').

One way to add the smart home functionality is to use ESP RainMaker, and the other way is to use examples/additional_components/app_smart_home. This can be initialized in the appilication. Uncomment app_smart_home_init() in app_main.c.

6.2.1 Usage

Once provisioning is done and the device has booted up, the smart home feature of the device can be used via voice commands or through the Alexa app.

Example: By default, the device configured is a 'Light' with 'Power' and 'Brightness' functionalities. Voice commands like 'Turn on the Light' or 'Change Light Brightness to 50' can be used. In the Alexa app, this device will show up as 'Light' and the Power and Brightness can be controlled.

6.2.2 Customisation

To customise your own device, you can edit the file examples/additional_components/app_smart_home/app_smart_home.c. You can refer the files components/voice_assistant/include/smart_home.h and components/voice_assistant/include/alexa_smart_home.h for additional APIs.

A device can have the following types of capabilities/features/parameters:

  • Power: A device can only have a single power param.
  • Toggle: This can be used for params which can be toggled. Example: Turning on/off the swinging of the blades in an air conditioner.
  • Range: This can be used for params which can have a range of values. Example: Changing the brightness of a light.
  • Mode: This can be used for params which need to be selected from a pre-defined set of strings. Example: Selecting the modes of a washing machine.

6.3 Audio Player

The audio player (components/voice_assistant/include/audio_player.h) can be used to play custom audio files from any source (http url, local spiffs, etc.).

The focus management (what is currently being played) is already implemented internally by the SDK.

For AIA: Speech/Alert/Music from Alexa has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Basically, all Alexa audio gets priority over custom audio.

For AVS: Speech/Alert from Alexa has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Another example, if custom music is being played via audio_player, and a query is asked for playing music via the cloud, then the custom music will be stopped and the music from Alexa will take over. If Alexa music was playing and custom music is played, then Alexa music will stop and the custom music will take over. Basically, music has the same priority from whichever source it is being played from. All other Alexa audio gets priority over music.

For GVA and Dialogflow: Speech (Alerts and Music is not yet supported) from Google has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Basically, all Google audio gets priority over custom audio.

6.3.1 Enabling Custom Player

The examples/additional_components/custom player is an example using the audio_player. The default example of the custom player can play from http url and/or local spiffs and/or local sdcard but can be easily extended to play from any other source.

Easiest way to try custom player is using http url.

  • Include custom_player.h in the application and call custom_player_init() after the voice assistant early initialisation has been done.

When the application is now built and flashed on the device, the custom player will play the 3 files showing the usage of the audio_player.

6.3.2 Customisation

The default custom player just has a demo code which can be used as a reference to build your own player. The audio player, for now, just supports mp3 and aac audio formats for http urls and only mp3 audio format for local files.

6.4 Equalizer

This is only for AVS.

Equalizer lets you control the Bass, Mid-Range and Treble of the audio. You can use the following commands to get the values for the equalizer:

  • Set Treble to 3
  • Set Bass to -3
  • Reset Equalizer
  • Set Movie mode

The SDK will give a callback to the application (in equalizer.c) with the respective values for the equalizer. The application can then use these values and adjust the audio output.

6.4.1 Enabling Equalizer

To enable the equalizer along with Alexa:

  • Include alexa_equalizer.h in the application and call alexa_equalizer_init() before the voice assistant initialisation has been done.

7. Production Considerations

7.1 Over-the-air Updates (OTA)

ESP-IDF has a component for OTA from any URL. More information and details about implementing can be found here: esp_https_ota.

7.2 Manufacturing

7.2.1 Mass Manufacturing Utility

The devices generally require unique IDs and certificates to connect to the cloud/server. For example, in AIA, AWS IoT operations require that all devices have a unique certificate and key pair programmed on each device which is used for authentication with the AWS IoT cloud service.

These are generally programmed in factory NVS partitions that are unique per device. ESP-IDF provides a utility to create instances of factory NVS partition images on a per-device basis for mass manufacturing purposes. The NVS partition images are created from CSV files containing user-provided configurations and values.

Details about using the mass manufacturing utility can be found here: mass_manufacturing.

7.2.2 Pre-Provisioned Modules

ESP32 modules can be pre-flashed with the factory NVS partition during manufacturing itself and then be shipped to you. For example, in AIA, the device certificates are signed by your Certificate Authority (CA) and when you register this CA in your cloud, all the devices can connect to the cloud, out of the box.

This saves you the overhead of securely generating, encrypting and then programming the NVS partition into the device at your end. Pre-provisioning is an optional service which Espressif provides.

Please contact your Espressif contact person for more information.

7.3 Security

7.3.1 Secure Boot

Secure boot ensures that only trusted code runs on the device.

ESP32 supports RSA based secure boot scheme whereby the bootROM verifies the software boot loader for authenticity using the RSA algorithm. The verified software boot loader then checks the partition table and verifies the active application firmware and then boots it.

Details about implementing the secure boot can be found here: secure_boot.

7.3.2 Flash Encryption

Flash encryption prevents the plain-text reading of the flash contents.

ESP32 supports AES-256 based flash encryption scheme. The ESP32 flash controller has an ability to access the flash contents encrypted with a key and place them in the cache after decryption. It also has ability to allow to write the data to the flash by encrypting it. Both the read/write encryption operations happen transparently.

Details about implementing the flash encryption can be found here: flash_encryption.

7.3.3 NVS Encryption

For the manufacturing data that needs to be stored on the device in the NVS format, ESP-IDF provides the NVS image creation utility which allows the encryption of NVS partition on the host using a randomly generated (per device unique) or pre-generated (common for a batch) NVS encryption key.

A separate flash partition is used for storing the NVS encryption keys. This flash partition is then encrypted using flash encryption. So, flash encryption becomes a mandatory feature to secure the NVS encryption keys.

Details about implementing the NVS encryption can be found here: nvs_encryption.

A1 Appendix FAQs

A1.1 Compilation errors

I cannot build the application:

  • Make sure you are on the correct esp-idf branch. Run 'git submodule update ---init ---recursive' to make sure the submodules are at the correct heads
  • Make sure you have the correct AUDIO_BOARD_PATH selected for your board.
  • Delete the build/ directory and also sdkconfig and sdkconfig.old and then build again.
  • If you are still facing issues, reproduce the issue on the default example and then contact Espressif for help. Please make sure to share these:
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.
    • The complete build logs.

A1.2 Device setup using the Mobile app

I cannot Add a new device through the phone app:

  • If the device is not being shown while Adding a new device, make sure the Required permissions are given to the app. Also make sure that your Bluetooth is turned on.
  • Android typically requires the Location permission also for enabling Bluetooth.
  • If you are still facing issues, update the app to the latest version and try again.
  • Force closing the app and rebooting the device works in most cases if either of them have gone into an unknown state.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • Screenshots of the mobile app where it is not working.
    • Mobile App version.
    • Mobile Phone model and the Android version or any skin it is running.
    • Complete device logs taken over UART.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

I cannot Manage device through the phone app:

  • If the device is not being shown while Managing devices, make sure you are connected to the same network as the device.
  • If you are still facing issues, update the app to the latest version and try again.
  • Force closing the app and rebooting the device works in most cases if either of them have gone into an unknown state.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • Screenshots of the mobile app where it is not working.
    • Mobile App version.
    • Mobile Phone model and the Android version or any skin it is running.
    • Complete device logs taken over UART.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

A1.3 Device crashing

My device is crashing:

  • Given the tight footprint requirements of the device, please make sure any issues in your code have been ruled out. If you believe the issue is with the Alexa SDK itself, please recreate the issue on the default example application (without any changes) and go through the following steps:
  • Make sure you are on the correct esp-idf branch. Run 'git submodule update ---init ---recursive' to make sure the submodules are at the correct heads.
  • Make sure you have the correct AUDIO_BOARD_PATH selected for your board.
  • Delete the build/ directory and also sdkconfig and sdkconfig.old and then build and flash again.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • The steps you followed to reproduce the issue.
    • Complete device logs (from device boot-up) taken over UART.
    • <voice_assistant>.elf file from the build/ directory.
    • If you have gdb enabled, run the command 'backtrace' and share the output of gdb too.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

A1.4 Device not crashed but not responding

My device is not responding to audio queries:

  • Make sure your device is connected to the Wi-Fi/Internet.
  • If the device is not taking the wake-word, make sure the mic is turned on.
  • Try using the Tap-To-Talk button and then ask the query.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • The steps you followed to reproduce the issue.
    • Complete device logs taken over UART.
    • <voice_assistant>.elf file from the build/ directory.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

Also check the Appendix sections in the respective voice assistant's directories.

esp-va-sdk's People

Contributors

avsheth avatar chiragatal avatar espwangning avatar kedars avatar kewalmshah avatar vikramdattu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-va-sdk's Issues

ESP32LyraTDMSC example

I downloaded and built from the example source code for ESP32LyraT.
And I flashed into ESP32LyraTDMSC. But, it does not work on ESP32LyraTDMSC.
I need example source code for ESP32LyraTDMSC.
Is it possible?

Changing Amazon ProductID

I'm trying to change the productID used by esp-va-sdk and/or esp-idf-provisioning-android/avs-ble.
Using this version of the esp-va-sdk seems to give a hardcoded "ESP AVS Open".
I was setting the "product_id" in the build.gradle of the Android app I built from the esp-idf-provisioning-android/avs source, but in the avs-ble version it didn't seem to take effect.

A string search for both only finds the string in the libalexa.a and not in any source file I could find.
So, is there a some CONFIG_xxx flag or other setting I need to change?
Alexa_ESP_AVS_Open_productID

Problem in Authentication token

Hi,

Why i am getting following error while booting lyratd-msr sample code from esp-va-sdk?

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6756
load:0x40078000,len:12116
ho 0 tail 12 room 4
load:0x40080400,len:7400
entry 0x40080780
�[0;32mI (30) boot: ESP-IDF v4.0-dev-141-g106dc0590-dirty 2nd stage bootloader�[0m
�[0;32mI (30) boot: compile time 18:05:11�[0m
�[0;32mI (31) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (37) qio_mode: Enabling default flash chip QIO�[0m
�[0;32mI (42) boot: SPI Speed : 80MHz�[0m
�[0;32mI (46) boot: SPI Mode : QIO�[0m
�[0;32mI (50) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (54) boot: Partition Table:�[0m
�[0;32mI (58) boot: ## Label Usage Type ST Offset Length�[0m
�[0;32mI (65) boot: 0 nvs WiFi data 01 02 00009000 00006000�[0m
�[0;32mI (73) boot: 1 phy_init RF data 01 01 0000f000 00001000�[0m
�[0;32mI (80) boot: 2 factory factory app 00 00 00010000 00300000�[0m
�[0;32mI (88) boot: End of partition table�[0m
�[0;32mI (92) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x18c750 (1623888) map�[0m
�[0;32mI (530) esp_image: segment 1: paddr=0x0019c778 vaddr=0x3ffb0000 size=0x03898 ( 14488) load�[0m
�[0;32mI (535) esp_image: segment 2: paddr=0x001a0018 vaddr=0x400d0018 size=0x115f88 (1138568) map�[0m
�[0;32mI (837) esp_image: segment 3: paddr=0x002b5fa8 vaddr=0x3ffb3898 size=0x01030 ( 4144) load�[0m
�[0;32mI (839) esp_image: segment 4: paddr=0x002b6fe0 vaddr=0x40080000 size=0x00400 ( 1024) load�[0m
�[0;32mI (844) esp_image: segment 5: paddr=0x002b73e8 vaddr=0x40080400 size=0x1a568 (107880) load�[0m
�[0;32mI (904) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (904) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (905) spiram: Found 64MBit SPI RAM device�[0m
�[0;32mI (909) spiram: SPI RAM mode: flash 80m sram 80m�[0m
�[0;32mI (915) spiram: PSRAM initialized, cache is in low/high (2-core) mode.�[0m
�[0;32mI (922) cpu_start: Pro cpu up.�[0m
�[0;32mI (926) cpu_start: Application information:�[0m
�[0;32mI (930) cpu_start: Project name: alexa�[0m
�[0;32mI (935) cpu_start: App version: ESP-VA-v1.0b1r7-2-g063d26f-dirt�[0m
�[0;32mI (942) cpu_start: Compile time: Apr 1 2019 18:05:30�[0m
�[0;32mI (948) cpu_start: ELF file SHA256: 4c4f99fe9520278a...�[0m
�[0;32mI (954) cpu_start: ESP-IDF: v4.0-dev-141-g106dc0590-dirty�[0m
�[0;32mI (961) cpu_start: Starting app cpu, entry point is 0x40081628�[0m
�[0;32mI (0) cpu_start: App cpu up.�[0m
�[0;32mI (1456) spiram: SPI SRAM memory test OK�[0m
�[0;32mI (1457) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (1457) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (1463) heap_init: At 3FFBC258 len 00023DA8 (143 KiB): DRAM�[0m
�[0;32mI (1469) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (1476) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (1482) heap_init: At 4009A968 len 00005698 (21 KiB): IRAM�[0m
�[0;32mI (1488) cpu_start: Pro cpu start user code�[0m
�[0;32mI (1493) spiram: Adding pool of 4078K of external SPI memory to heap allocator�[0m
�[0;32mI (171) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m
�[0;32mI (172) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations�[0m
�[0;32mI (172) app_main: ==== Voice Assistant SDK version: v1.0b1-178987 ====�[0m
Registering command: mem-dump
�[0;32mI (212) scli: Initialising UART on port 0�[0m
�[0;32mI (212) uart: queue free spaces: 8�[0m

Registering command: task-dump
Registering command: cpu-dump
Registering command: heap-trace
Registering command: nvs-get
Registering command: nvs-set
Registering command: nvs-erase
Registering command: reboot
Registering command: wifi-set
ret: 0
I (232) wifi: wifi driver task: 3ffd0564, prio:23, stack:3584, core=1
I (242) wifi: wifi firmware version: 9c8361c
I (242) wifi: config NVS flash: enabled
I (242) wifi: config nano formating: disabled
�[0;32mI (252) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (262) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
I (292) wifi: Init dynamic tx buffer num: 32
I (292) wifi: Init data frame dynamic rx buffer num: 32
I (292) wifi: Init management frame dynamic rx buffer num: 32
I (292) wifi: Init management short buffer num: 32
I (292) wifi: Init static tx buffer num: 32
I (302) wifi: Init static rx buffer size: 2212
I (302) wifi: Init static rx buffer num: 16
I (302) wifi: Init dynamic rx buffer num: 32
�[0;32mI (312) conn_mgr_prov: Found ssid Uchi_Babu�[0m
�[0;32mI (312) conn_mgr_prov: Found password babu_uchi�[0m
�[0;32mI (322) app_main: Already provisioned, starting station�[0m
�[0;32mI (412) phy: phy_version: 4100, 6fa5e27, Jan 25 2019, 17:02:06, 0, 0�[0m
I (412) wifi: mode : sta (30:ae:a4:c3:8a:5c)
I (532) wifi: new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:11
I (1292) wifi: state: init -> auth (b0)
I (1292) wifi: state: auth -> assoc (0)
I (1292) wifi: state: assoc -> run (10)
I (1312) wifi: connected with Uchi_Babu, channel 11, bssid = b0:4e:26:03:37:1f
I (1312) wifi: pm start, type: 1

�[0;32mI (3732) event: sta ip: 192.168.0.149, mask: 255.255.255.0, gw: 192.168.0.1�[0m
�[0;32mI (3732) app_main: Connected with IP Address:192.168.0.149�[0m
�[0;32mI (3732) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3�[0m
�[0;32mI (3742) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3�[0m
�[0;32mI (3742) I2S: PLL_D2: Req RATE: 48000, real rate: 48076.000, BITS: 16, CLKM: 13, BCK: 8, MCLK: 12292917.167, SCLK: 1538432.000000, diva: 64, divb: 1�[0m
�[0;32mI (3762) SPI: b=1
�[0m
�[0;32mI (3762) SPI: 3- Loading the config file into the device RAM....
�[0m
�[0;32mI (4122) SPI: Device boot loading completed successfully...
�[0m
�[0;32mI (4122) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 �[0m
�[0;32mI (4132) dsp: Created I2S audio stream�[0m
�[0;32mI (4132) audio_stream: Starting i2s_reader stream�[0m
Starting audio stream i2s_reader
�[0;33mW (4182) I2S: I2S driver already installed�[0m
.......................Init i2s stream...............
�[0;32mI (4192) audio_stream: Stream i2s_reader Event Started�[0m
�[0;32mI (4192) dsp: Reader stream event 2�[0m
Stopping audio stream i2s_reader
�[0;32mI (4212) audio_stream: Stream i2s_reader Event Stopped�[0m
�[0;32mI (4212) dsp: Reader stream event 3�[0m
Generated stopped event for stream i2s_reader
�[0;32mI (4212) I2S: PLL_D2: Req RATE: 48000, real rate: 48076.000, BITS: 16, CLKM: 13, BCK: 8, MCLK: 12292917.167, SCLK: 1538432.000000, diva: 64, divb: 1�[0m
Starting audio stream i2s_reader
�[0;33mW (4242) I2S: I2S driver already installed�[0m
.......................Init i2s stream...............
�[0;32mI (4242) audio_stream: Stream i2s_reader Event Started�[0m
�[0;32mI (4242) dsp: Reader stream event 2�[0m
�[0;32mI (4252) [alexa]: Waiting for time to be updated�[0m
�[0;32mI (4582) [alexa]: Done getting current time: 1554268373�[0m
�[0;32mI (4602) [tls_certification]: Done setting global CA store�[0m
�[0;32mI (4602) auth-delegate-config: No Client ID or Refresh token in NVS�[0m
�[0;31mE (4602) [alexa]: Couldn't find valid authentication tokens. Please try resetting board to factory mode and do provisioning with companion app�[0m

Any inputs help me to go further.

How do I change the name of the alexa device?

How do I change the name of the alexa device after it is provisioned?
It is currently set to ESP AVS Open and I would like to customize it to my own product name and serial number

Microphone gain

Is there a way to control mic gain?
The function zl38063_set_mic_gain does nothing.

can not find Provision Network button on android apk

Hi avsheth

i can find esp_alexa_xxxx on the phone and connect the soft ap fine
but can not find the "Provision Network " button on the app as you said on another issue
so, could you help to give some comment on this? thanks

lyrat_alexa 与 lyrat_alexa_sr的区别

你好,从描述中看到,lyrat_alexa不支持“Alexa”唤醒,只支持按键,lyrat_alexa_sr可以支持“Alexa”唤醒,但是只支持 LyraT v4.1, LyraT v4.2,不支持 LyraT v4.3,是这样的吗?

我目前用的设备是 LyraT v4.3,怎么实现“Alexa”唤醒词唤醒功能?多谢指导

Esp-va-SDK.... *** multiple target patterns. Stop. "AMAZON_ALEXA"

Hi

I was trying to compile "AMAZON_ALEXA" example under "esp-va-sdk".

I am following the below steps.
Step 1 : Cloning ESP-IDF
Step 2 : Cloning ESP-VA-SDK by using "$ git clone https://github.com/espressif/esp-va-sdk.git"
Step 3 : Export COM PORT by "export ESPPORT= COM71"
Step 4 : Export IDF_PATH by "export IDF_PATH=C:/esp32/esp-idf"
Step 5 : Export Audio Board Path by "export AUDIO_BOARD_PATH=C:/esp32/esp-va-sdk/board_support_pkgs/lyratd_msc/audio_board/audio_board_lyratd_msc"

After this i was trying to compile using "make -j 8 flash monitor or make flash" command...

But it is not compiling and it is giving error for "make -j 8 flash monitor",
Yuvaraj@Yuvaraj-PC MINGW32 /c/esp32/esp-va-sdk/examples/amazon_alex a
$ make -j 8 flash monitor
Python requirements from C:/esp32/esp-idf/requirements.txt are satisfied.
DEFCONFIG
MENUCONFIG
configuration written to /c/esp32/esp-va-sdk/examples/amazon_alexa/sdkconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
GENCONFIG
App "alexa" version: 1.0-RC1
C:/esp32/esp-idf/make/project.mk:519: *** multiple target patterns. Stop.

for make flash
Yuvaraj@Yuvaraj-PC MINGW32 /c/esp32/esp-va-sdk/examples/amazon_alexa
$ make flash
C:/esp32/esp-idf/make/project.mk:519: *** multiple target patterns. Stop.

Please anyone help me to solve this problem.

build error at lyratd_msc_alexa_sr example

I have cloned esp-avs-sdk as a submodule to my project, then followed to examples/lyratd_msc_alexa_sr.

On my attempt to build with

IDF_PATH=`realpath ../../../esp-idf` make -j 8

compiler vomits the following

/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/build/lwip/liblwip.a(mem.o): In function `mem_free':
/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-idf/components/lwip/lwip/src/core/mem.c:144: multiple definition of `mem_free'
/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/build/misc/libmisc.a(mem_utils.o):/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/components/misc/mem_utils.c:101: first defined here
/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/components/codec_zl38063/lib/libcodec_zl38063.a(vproc_common.o):(.literal.VprocHALRead+0x8): undefined reference to `lwip_ntohs'
/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/components/codec_zl38063/lib/libcodec_zl38063.a(vproc_common.o): In function `VprocHALRead':
/builds/app-frameworks/esp-alexa/esp-audio-sdk-hal/esp_codec/zl38063/components/codec_zl38063/dsp_zl38063/vproc_common.c:136: undefined reference to `lwip_ntohs'
collect2: error: ld returned 1 exit status
/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-idf/make/project.mk:435: recipe for target '/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/build/alexa.elf' failed
make: *** [/home/f77e/projects/esp32-lyratd-msc_jetblack/libs/esp-avs-sdk/examples/lyratd_msc_alexa_sr/build/alexa.elf] Error 1

esp-idf commit is 12b2268ee56dac79988b75dbb49a453629ed8022

lyratd_msc_alexa_sr例程无法运行

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6512
ho 0 tail 12 room 4
load:0x40078000,len:10096
load:0x40080000,len:6700
entry 0x4008034c
�[0;32mI (31) boot: ESP-IDF v3.1.1-80-ga18f92b09-dirty 2nd stage bootloader�[0m
�[0;32mI (31) boot: compile time 10:59:16�[0m
�[0;32mI (31) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (37) qio_mode: Enabling default flash chip QIO�[0m
�[0;32mI (42) boot: SPI Speed : 40MHz�[0m
�[0;32mI (46) boot: SPI Mode : QIO�[0m
�[0;32mI (50) boot: SPI Flash Size : 1MB�[0m
�[0;31mE (54) flash_parts: partition 3 invalid - offset 0x20000 size 0x300000 exceeds flash chip size 0x100000�[0m
�[0;31mE (64) boot: Failed to verify partition table�[0m
�[0;31mE (69) boot: load partition table error!�[0m
user code done

DialogFlow - LyraT Custom Wake Word

Hey All -

Great project, love the LryaT. I am trying to make a DialogFlow solution, but am finding that the README forces me to use the REC button to engage a conversation. I would like the use the Custom Wake word features of DialogFlow, but don't see that capability in the source quite yet. Am I missing something, or is this functionality missing from the SDK?

Unable to play Amazon Music on Lyrat board

When I request Alexa to play Amazon Music on Lyrat board, I get the error message " Amazon music is not enabled on this device" , where as TuneIn radio works fine.

I am using example/lyrat application.
Is there any configuration I need to do in order to enable Amazon music support?

Bluetooth microphone

Hi,
Is it possible to connect a bluetooth device in place of the Lyrat onboard microphones?

Code base linking (CBL) to provision AVS?

Is it possible to do CBL instead of companion app when provisioning avs?
I'm trying to figure out the best way to provision thousands of devices when manufacturing.
Our devices need to ship with avs already provisioned and everyone of them will be linked to our own amazon account, since this is going to be our product we want to have control over which skills are enabled on the product. We will possibly be using Alexa for Business.

Example with support for tunein?

Hi.
Hello, I am using the ESP32-Lyrat module, and I would like to know if there is any developed code or example that allows TUNEIN or VTuner to be used?

SPI pins of ZL38063

Is there a way to change SPI pins of the ZL38063 like we can on the ADF release?
It appears that it is pre-compiled and hard coded.
Also, how do I combine ADF and AVS together?
I would like to both connect to Alexa and also play MP3 files from FATFS and Amazon polly.
It seems to me that I can either do Alexa using AVS-SDK or play MP3 with ADF but not both together as they are independent SDKs.

通过手机APP配网后,没有指示灯显示吗?按照用例说明测试没有反应

显示已经配网成功,如下:

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6200
load:0x40078000,len:9940
load:0x40080000,len:6756
entry 0x40080350
I (29) boot: ESP-IDF v3.1-91-gf11ac03-dirty 2nd stage bootloader
I (29) boot: compile time 11:57:34
I (33) boot: Enabling RNG early entropy source...
I (35) qio_mode: Enabling QIO for flash chip GD
I (40) boot: SPI Speed : 80MHz
I (44) boot: SPI Mode : QIO
I (48) boot: SPI Flash Size : 4MB
I (52) boot: Partition Table:
I (56) boot: ## Label Usage Type ST Offset Length
I (63) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (71) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (78) boot: 2 avs WiFi data 01 02 00010000 00006000
I (85) boot: 3 factory factory app 00 00 00020000 00300000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x14258c (1320332) map
I (455) esp_image: segment 1: paddr=0x001625b4 vaddr=0x3ffb0000 size=0x05088 ( 20616) load
I (462) esp_image: segment 2: paddr=0x00167644 vaddr=0x3ffb5088 size=0x00000 ( 0) load
I (462) esp_image: segment 3: paddr=0x0016764c vaddr=0x40080000 size=0x00400 ( 1024) load
I (471) esp_image: segment 4: paddr=0x00167a54 vaddr=0x40080400 size=0x085bc ( 34236) load
I (491) esp_image: segment 5: paddr=0x00170018 vaddr=0x400d0018 size=0xfa1c0 (1024448) map
I (762) esp_image: segment 6: paddr=0x0026a1e0 vaddr=0x400889bc size=0x117b8 ( 71608) load
I (786) esp_image: segment 7: paddr=0x0027b9a0 vaddr=0x400c0000 size=0x00000 ( 0) load
I (786) esp_image: segment 8: paddr=0x0027b9a8 vaddr=0x50000000 size=0x00000 ( 0) load
I (808) boot: Loaded app from partition at offset 0x20000
I (808) boot: Disabling RNG early entropy source...
I (809) spiram: SPI RAM mode: flash 80m sram 80m
I (814) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (821) cpu_start: Pro cpu up.
I (825) cpu_start: Starting app cpu, entry point is 0x400814bc
I (0) cpu_start: App cpu up.
I (1324) spiram: SPI SRAM memory test OK
I (1325) heap_init: Initializing. RAM available for dynamic allocation:
I (1325) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1331) heap_init: At 3FFBF100 len 00020F00 (131 KiB): DRAM
I (1337) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1344) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1350) heap_init: At 4009A174 len 00005E8C (23 KiB): IRAM
I (1357) cpu_start: Pro cpu start user code
I (1361) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1369) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (48) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (49) alexa: ==== Alexa SDK version: v1.0b1-165973 ====
Registering command: mem-dump
I (99) scli: Initialising UART on port 0
I (99) uart: queue free spaces: 8

Registering command: task-dump
Registering command: nvs-get
Registering command: nvs-set
Registering command: heap-trace
I (109) wifi: wifi driver task: 3ffcafec, prio:23, stack:3584, core=0
I (119) wifi: wifi firmware version: 75aab56
I (119) wifi: config NVS flash: disabled
I (119) wifi: config nano formating: disabled
I (129) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (139) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (149) wifi: Init dynamic tx buffer num: 32
I (149) wifi: Init data frame dynamic rx buffer num: 32
I (149) wifi: Init management frame dynamic rx buffer num: 32
I (159) wifi: Init static tx buffer num: 32
I (169) wifi: Init static rx buffer size: 1600
I (169) wifi: Init static rx buffer num: 10
I (169) wifi: Init dynamic rx buffer num: 32
I (179) conn_mgr: Initialization success
I (179) conn_mgr: Received event: 64
I (189) softap_sm: SoftAP SSID: ESP-Alexa-4fa1
I (249) phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 0
I (249) wifi: mode : softAP (80:7d:3a:e1:4f:a1)
I (249) wifi: Init max length of beacon: 752/752
I (249) wifi: Init max length of beacon: 752/752
I (259) conn_mgr: Received event: 128
I (259) alexa: SOFTAP_STARTED event
I (269) protocomm_httpd: Adding endpoint : prov-session
I (269) protocomm_httpd: Adding endpoint : avsconfig
I (279) protocomm_httpd: Adding endpoint : prov-config
I (3739) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (3739) wifi: station: 8c:79:67:c8:70:ab join, AID=1, bgn, 20
I (3739) conn_mgr: Received event: 128
I (3959) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (3969) conn_mgr: Received event: 128

abort() being called on audio_player_play function

I am getting abort() was called when I call audio_player_play function.

Playing: file:/spiffs/jingle.mp3, 0
/home/owner/esp/esp-idf/components/freertos/queue.c:718 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x40094d7b on core 0
0x40094d7b: xQueueGenericSend at /home/owner/esp/esp-idf/components/freertos/queue.c:1995

Backtrace: 0x40099c24:0x3ffd9360 0x40099e1f:0x3ffd9380 0x40094d7b:0x3ffd93a0 0x40167ca5:0x3ffd93e0 0x40167cfa:0x3ffd9400 0x400dafe9:0x3ffd9440 0x400db0d9:0x3ffd9470 0x400d8e4d:0x3ffd94a0 0x400d2ea6:0x3ffd94f0
0x40099c24: invoke_abort at /home/owner/esp/esp-idf/components/esp32/panic.c:649

0x40099e1f: abort at /home/owner/esp/esp-idf/components/esp32/panic.c:649

0x40094d7b: xQueueGenericSend at /home/owner/esp/esp-idf/components/freertos/queue.c:1995

0x40167ca5: VprocHALRead at ??:?

0x40167cfa: audio_player_play at ??:?

0x400dafe9: local_player_play at /home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/main/sound.c:148

0x400db0d9: sound_play at /home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/main/sound.c:171 (discriminator 9)

0x400d8e4d: app_main at /home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/main/main.c:146

0x400d2ea6: main_task at /home/owner/esp/esp-idf/components/esp32/cpu_start.c:476

default aws_iot mqtt example doesnt publish to topic (lyrat_alexa_sr)

Hi,
The MQTT example is not publishing to the topic...It does subscribe and receive when I publish to the topic from AWS IOT Console client. I compared with AWS IOT Embedded C sdk example and if I comment the following , it publishes. I'm not an expert, so want to know what the below code is trying to do here in the code?

if (xSemaphoreTake(wake_word_sem, 1000/portTICK_RATE_MS) != pdTRUE) {
continue;
}

Any suggestions or pointers?

Also if I want to set the clientid and topic name in sdkconfig, how should I do it ?

ESP32-LyraTD-MSC A v2.2 Failed to connect to ESP32: Timed out waiting for packet header

Hi All,
We got an ESP32-LyraTD-MSC A v2.2 dev board and followed ESP32-LyraTD-MSC V2.2 Getting Started Guide to set up, after setting up as per document
It reported error when I ran the following steps.
1), Connected it to laptop through USB cable.
2), Turned the board on.
3), Ran "make flash".
4), The following messages were printed out on terminal:"make flash

Flashing binaries to serial port COM9 (app at offset 0x10000 )...
esptool.py v2.6-beta1
Serial port COM9
Connecting......................................_____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/vkm/esp/esp-idf/components/esptool_py/Makefile.projbuild:63: flash] Error 2

Note: I connected the console throgh COM9 using teraterm/minicom and am able to see the existing application logs, there I press Reset button and release the Boot button
and made sure that

rst:0x1 (POWERON_RESET),boot:0x7 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download

I also even tried with flash_download_tools_v3.6.5 and seen following message

..................................................[2018-12-27 15:17:22
,753][ESP8266Loader_spi[1]][espDownloader.py][line:351][ERROR]: Chip sync error: Failed to connect to ESP32: Timed out w
aiting for packet header
[2018-12-27 15:17:22,755][ESP8266Loader_spi[1]][espDownloader.py][line:439][ERROR]: ESP32 Chip sync error esp_sync_block
ing.

Could you please tell us what is missing in terms of configuration to detect the flash
Thank You
Kumar

cant hear audio(alexa response) with (v1.0b1r7) release...

I'm using latest branch and flashed lyrat_sr code ...Didnt add any of my code...After provisioning, I cant hear any audio when I ask a question to alexa... Didnt see the issues with earlier releases (v1.0b1r4) ..anything should I look for ?

I (1574951) [dialog]: Dialog new
I (1574951) [focus_manager]: Acquire channel: Dialog
I (1574951) LYRAT_CB: Current mode is: 4
I (1574951) [speech_recognizer]: On Focus: FOREGROUND
I (1574951) [dialog]: Entering VA_LISTENING
I (1574961) [sys_playback]: Acquire
I (1574971) [focus_manager]: Now active channel: Dialog
I (1574971) dsp: Flushed store data: 3840

I (1575021) subpub: Subscribe callback
I (1575021) subpub: test_topic/esp32 { "wake_word_count" : 7 }
I (1575031) [http_stream]: [stream-new] 59420 spiram 1141188
I (1575031) [http_transport]: New stream event: {"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":40,"muted":false}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"ALEXA"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.HomeAutomation#ACRI#DeviceTTSRendererV4_ac169946-10b0-4666-b399-9c8f1926a3e5","offsetInMilliseconds":3480,"playerActivity":"FINISHED"}},{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"AudioActivityTracker","name":"ActivityState"},"payload":{"dialog":{"interface":"SpeechSynthesizer","idleTimeInMilliseconds":394014}}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"Notifications","name":"IndicatorState"},"payload":{"isEnabled":false,"isVisualIndicatorPersisted":false}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"5e42e56e-2abd-4abf-afa5-6f4732894598","dialogRequestId":"4ccc9981-afcc-45b7-9df6-5e467334c141"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"TAP","payload":{}}}}}
I (1575111) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
I (1575141) [http_stream]: stream POST /v20160207/events sid:35
sys_playback: Got event stopped
I (1576241) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
post_data_provider: Returning 48320 bytes on stream ID 35
post_data_provider: Returning 24320 bytes on stream ID 35
I (1577341) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
post_data_provider: Returning 12160 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
I (1578441) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
I (1579541) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
post_data_provider: Returning 6720 bytes on stream ID 35
I (1580641) subpub: Stack remaining for task 'aws_iot_task' is 1780 bytes
post_data_provider: Returning 6720 bytes on stream ID 35
I (1580661) [http_stream]: Speculatively stopping capture
I (1580661) [http_stream]: Part end: JSON
JSON Data: {"directive":{"header":{"namespace":"SpeechRecognizer","name":"StopCapture","messageId":"0192d3f8-f267-4e84-b839-5c3370fe4585","dialogRequestId":"4ccc9981-afcc-45b7-9df6-5e467334c141"},"payload":{}}}
I (1580661) [http_stream]: Part begin
Namespace: SpeechRecognizer, Name: StopCapture
Got immediate stop of ring buffer. Sent 0 bytes
speech_recognizer: Sending stop command
Setting rb to stop immediately.
I (1580701) dsp: Sending stop command
I (1580721) dsp: Stopped I2S audio stream
I (1580721) [dialog]: Listen End
I (1580721) LYRAT_CB: Current mode is: 8
I (1580721) [dialog]: Entering VA_IDLE
[sid: 35] Response code: 204
I (1580941) [dialog]: Response 204
I (1580941) [focus_manager]: Release channel: Dialog
I (1580951) [sys_playback]: Release
I (1580951) [http_transport]: [sid 35] stream close
I (1580951) [http_stream]: [stream-delete - 35] sram 59084 spiram 1147008
sys_playback: Got event stopped

any dependency between alexa_init(va_cfg) & bluetooth initialization ?

Hi,
What is the right way to initialize BT and scan for BLE beacons with the current alexa code? If we initialize before or after this line alexa_init(va_cfg) , it crashes. If I just comment the following lines and add BT initialization/enable code, it works. Bit confused as to what is happening inside alexa_init and why its effected with Bluetooth init/deinit, bluedroid enable/disable etc....

conn_mgr_prov_mem_release
alexa_init(va_cfg)
va_dsp_init()

BLE beacons along with amazon alexa are key for the product I'm working on and so if you have any suggestions, please let me know.

E (58537) MEDIA_HAL: Media Hal not initialized

After provisioning is completed, it immediately crashes...most likely due to Media Hal not initialized... Not sure why its not initialized..any suggestions? (Board: ESP-WROVER-B )

[conn_mgr_prov]: Provisioning started with:
service name: ESP-Alexa-F158
service key:
[avs_config]: APP Got: ANgOHRsDAIADkuTHKhrV, amzn1.application-oa2-client.320d0c28204541e4a061b7aff8e7d1b9, amzn://com.espressif.provbleavs, abcd1234
[conn_mgr_prov]: Scan results:
S.N. SSID RSSI
[ 0] Europa -28
[ 1] NTGR_VMB_1462061054 -31
[ 2] VINAM-2.4 -70
[ 3] NTGR_VMB_1451459244 -71
[ 4] NETGEAR86 -72
[ 5] DIRECT-n4-Android_cbfb -73
[ 6] LG_Smart_Refrigerator -82
[ 7] kitkat -83
[ 8] eisha -84
[ 9] ahsie -86
[10] shrin -88
[11] NETGEAR22 -90
[12] Pomeroy-2.4G -91
[13] gonefishing-g -93
[14] ebbie -95
[15] mukesh -95
[conn_mgr_prov_handler]: WiFi Credentials Received:
ssid: NETGEAR22
password: ************
[alexa]: Waiting for time to be updated
[conn_mgr_prov]: Provisioning stopped
[alexa]: Done getting current time: 1558222591
[auth-delegate]: Auth delegate with comp app ANgOHRsDAIADkuTHKhrV, amzn1.application-oa2-client.320d0c28204541e4a061b7aff8e7d1b9, amzn://com.espressif.provbleavs, abcd1234
[dialog]: Entering VA_IDLE
[endpoint_handler]: Cannot find endpoint URL in NVS. Setting default: https://avs-alexa-eu.amazon.com
E (58537) MEDIA_HAL: Media Hal not initialized
[endpoint_handler]: AVS endpoint: https://avs-alexa-eu.amazon.com
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4017babd PS : 0x00060e30 A0 : 0x8013c6a2 A1 : 0x3ffbbf20
[endpoint_handler]: AVS endpoint: https://avs-alexa-eu.amazon.com
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4017bb3d PS : 0x00060430 A0 : 0x8013c722 A1 : 0x3ffbbf20
0x4017bb3d: media_hal_control_volume at /home/user/19May09/esp-va-sdk/board_support_pkgs/lyrat/esp_codec/es8388/components/codec_es8388/media_hal.c:169

A2 : 0x00000000 A3 : 0x00000028 A4 : 0x00000000 A5 : 0xffffffff
A6 : 0x3ffd1364 A7 : 0x3ffbeb04 A8 : 0x8017bb36 A9 : 0x3ffbbec0
A10 : 0x4011ccac A11 : 0x00000001 A12 : 0x3f579df2 A13 : 0x00000000
0x4011ccac: vprintf at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vprintf.c:35

A14 : 0x00000005 A15 : 0x3ffd13b4 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000028 LBEG : 0x400982c9 LEND : 0x400982d9 LCOUNT : 0xfffffffe
0x400982c9: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:84

0x400982d9: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:96

ELF file SHA256: 608fa28aafd100b7b2aef36a6cbd84dc8e7a23492c99609f13599800ebb0a9fd

Backtrace: 0x4017bb3d:0x3ffbbf20 0x4013c71f:0x3ffbbf40 0x4013c849:0x3ffbbf60 0x4013be29:0x3ffbbf90 0x4013697d:0x3ffbbfb0 0x4010852e:0x3ffbbff0 0x400d0b78:0x3ffbc090
0x4017bb3d: media_hal_control_volume at /home/user/19May09/esp-va-sdk/board_support_pkgs/lyrat/esp_codec/es8388/components/codec_es8388/media_hal.c:169

0x4013c71f: alerts_get_capabilities at ??:?

0x4013c849: speaker_init at ??:?

0x4013be29: alexa_speaker_init at ??:?

0x4013697d: alexa_init at ??:?

Build bin files

When I build the "lyratd_msc_alexa_sr" example, I get a Partition and Alexa bin files. To what location should they be loaded? I assume Alexa.bin goes to 0x20000, but what about the partition.bin? The bootloader works at 0x1000.

Also, there is an avs segment that predefines the wi-fi credentials. How do I get that part to compile and to what location is that loaded?

Provisioning errors ( mbedtls_ecdh_gen_public with error code : -0x4f80)

Havent seen this error before. Not sure why its failing? Any suggestions what to look for?

I (17508) wifi: new:<1,0>, old:<1,0>, ap:<1,1>, sta:<255,255>, prof:1
I (17508) wifi: station: 84:7a:88:09:b2:f1 join, AID=1, bgn, 20
W (17508) event: unexpected system event 63!
E (17518) event: mismatch or invalid event, id=63
E (17518) event: default event handler failed!
I (19238) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
E (49068) security1: Failed at mbedtls_ecdh_gen_public with error code : -0x4f80
E (49068) security1: Session setup error -1
E (49068) protocomm_httpd: Data handler failed
W (49078) httpd_uri: httpd_uri: uri handler execution failed

I'm using latest esp-idf and esp-va-sdk.

AVS-SDK missing source code

The AVS-SDK is currently missing all source code. Additionally, the hardware guide is missing the schematics for the microphone array board.

implicit declaration of function 'esp_bt_mem_release'

I'm getting this error when building:
/home/owner/esp/esp-avs-sdk/components/conn_mgr_prov/src/conn_mgr_prov.c: In function 'conn_mgr_prov_mem_release':
/home/owner/esp/esp-avs-sdk/components/conn_mgr_prov/src/conn_mgr_prov.c:144:21: error: implicit declaration of function 'esp_bt_mem_release' [-Werror=implicit-function-declaration]
esp_err_t err = esp_bt_mem_release(ESP_BT_MODE_BTDM);
^

No reaction when you press the button "Rec"

log:
I (0) cpu_start: App cpu up.
I (1325) spiram: SPI SRAM memory test OK
I (1325) heap_init: Initializing. RAM available for dynamic allocation:
I (1326) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1332) heap_init: At 3FFBF248 len 00020DB8 (131 KiB): DRAM
I (1338) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1345) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1351) heap_init: At 400998E8 len 00006718 (25 KiB): IRAM
I (1357) cpu_start: Pro cpu start user code
I (1362) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1370) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (49) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (49) alexa: ==== Alexa SDK version: v1.0b1-163199 ====
Registering command: mem-dump
I (69) scli: Initialising UART on port 0
I (69) uart: queue free spaces: 8

Registering command: task-dump
Registering command: nvs-get
Registering command: nvs-set
Registering command: heap-trace
I (89) wifi: wifi driver task: 3ffc6fec, prio:23, stack:3584, core=0
I (89) wifi: wifi firmware version: 633012a
I (89) wifi: config NVS flash: disabled
I (99) wifi: config nano formating: disabled
I (99) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (109) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (119) wifi: Init dynamic tx buffer num: 32
I (129) wifi: Init data frame dynamic rx buffer num: 26
I (129) wifi: Init management frame dynamic rx buffer num: 26
I (139) wifi: Init static tx buffer num: 26
I (139) wifi: Init static rx buffer size: 1600
I (139) wifi: Init static rx buffer num: 10
I (149) wifi: Init dynamic rx buffer num: 26
I (149) conn_mgr: Initialization success
I (159) conn_mgr: Received event: 64
I (159) softap_sm: SoftAP SSID: ESP-Alexa-4d01
I (219) phy: phy_version: 3960, 5211945, Jul 18 2018, 10:40:07, 0, 0
I (219) wifi: mode : softAP (80:7d:3a:e1:4d:01)
I (229) conn_mgr: Received event: 128
I (229) alexa: SOFTAP_STARTED event
I (229) protocomm_httpd: Adding endpoint : prov-session
I (239) protocomm_httpd: Adding endpoint : avsconfig
I (239) protocomm_httpd: Adding endpoint : prov-config
I (4979) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (4979) wifi: station: 9c:e8:2b:67:ea:b9 join, AID=1, bgn, 20
I (4979) conn_mgr: Received event: 128
I (5099) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (5099) conn_mgr: Received event: 128

crash when Bluetooth and Wifi enabled

If I disabled BT, everything works fine.
When I enable BT, I get this error using the exact same code:
W (4928) wifi: alloc eb len=24 type=3 fail, heap:3060324

W (4928) wifi: m f null

/home/owner/esp/esp-idf/components/freertos/tasks.c:684 (xTaskCreateStaticPinnedToCore)- assert failed!
abort() was called at PC 0x40090d3b on core 0
0x40090d3b: xTaskCreateStaticPinnedToCore at /home/owner/esp/esp-idf/components/freertos/tasks.c:4710

Backtrace: 0x40094794:0x3ffd5f80 0x4009498f:0x3ffd5fa0 0x40090d3b:0x3ffd5fc0 0x401a3eb5:0x3ffd6000 0x400feee9:0x3ffd6030 0x400fe9c1:0x3ffd6080 0x400f8966:0x3ffd60a0 0x400d7748:0x3ffd60e0 0x400d2b2e:0x3ffd6190
0x40094794: invoke_abort at /home/owner/esp/esp-idf/components/esp32/panic.c:649

0x4009498f: abort at /home/owner/esp/esp-idf/components/esp32/panic.c:649

0x40090d3b: xTaskCreateStaticPinnedToCore at /home/owner/esp/esp-idf/components/freertos/tasks.c:4710

0x401a3eb5: audio_codec_init at ??:?

0x400feee9: basic_player_new at ??:?

0x400fe9c1: speech_synthesizer_init at ??:?

0x400f8966: alexa_init at ??:?

0x400d7748: app_main at /home/owner/esp/esp-avs-sdk/examples/gemini_alexa_sr/main/app_main.c:132

0x400d2b2e: main_task at /home/owner/esp/esp-idf/components/esp32/cpu_start.c:476

Alexa example crash when esp_bt_controller_init(&bt_cfg) is called.

we are facing a couple of issues while integrating ibeacon example with amazon-alexa example code. Any suggestions would be helpful. Please let me know if you feel this should be addressed by esp-idf forum.

Issue details;
As recommended in this issue (espressif/esp-idf#3179) , we turn off/disable/deinit wifi before we turn on BT, but alexa asst code crashes immediately. Below is the code snippet and crash snippet. It crashes with esp_bt_controller_init(&bt_cfg)

esp_bluedroid_disable();
esp_bluedroid_deinit();
esp_bt_mem_release(ESP_BT_MODE_CLASSIC_BT);
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
esp_bt_controller_init(&bt_cfg);
esp_bt_controller_enable(ESP_BT_MODE_BTDM);

The example standalone works and when integrated with wifi based prov process (earlier ver esp-va-sdk ). I'm not sure if BT is being completely disabled/deinit/mem releases after prov is completed.

Crash with esp_bt_controller_init(&bt_cfg);

assertion "res == coreID || res == portMUX_FREE_VAL" failed: file "/home/Firmware/19May09/esp-idf/coGuru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC : 0x4009a3c9 PS : 0x00060234 A0 : 0x8009b5cf A1 : 0x3facd5e0
0x4009a3c9: uxPortCompareSet at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:5064
(inlined by) vPortCPUAcquireMutexIntsDisabledInternal at /home/Firmware/19May09/esp-idf/components/freertos/portmux_impl.inc.h:86
(inlined by) vPortCPUAcquireMutexIntsDisabled at /home/Firmware/19May09/esp-idf/components/freertos/portmux_impl.h:99
(inlined by) vTaskEnterCritical at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:4202

A2 : 0x3ffbeb04 A3 : 0x00060023 A4 : 0x00000001 A5 : 0x0000abab
A6 : 0xb33fffff A7 : 0x3f412f93 A8 : 0x0000abab A9 : 0x3facd700
A10 : 0x0000cdcd A11 : 0x3faca23c A12 : 0x00000080 A13 : 0x3ffd5084
A14 : 0x00000000 A15 : 0x3faca23c SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x40098915 LEND : 0x40098925 LCOUNT : 0xffffffe7
0x40098915: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:84

0x40098925: strlen at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:96

ELF file SHA256: 9811cc4ecf93fa24e0c3f58768b783b3b2e912706a88f84487804de6d9e8d006

Backtrace: 0x4009a3c9:0x3facd5e0
0x4009a3c9: uxPortCompareSet at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:5064
(inlined by) vPortCPUAcquireMutexIntsDisabledInternal at /home/Firmware/19May09/esp-idf/components/freertos/portmux_impl.inc.h:86
(inlined by) vPortCPUAcquireMutexIntsDisabled at /home/Firmware/19May09/esp-idf/components/freertos/portmux_impl.h:99
(inlined by) vTaskEnterCritical at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:4202

Core 1 register dump:
PC : 0x4009c0f0 PS : 0x00060f34 A0 : 0x8009b0f0 A1 : 0x3ffb5a20
0x4009c0f0: vListInsert at /home/Firmware/19May09/esp-idf/components/freertos/list.c:188 (discriminator 1)

A2 : 0x3faca718 A3 : 0x3ffd535c A4 : 0x3ffd5340 A5 : 0x00000001
A6 : 0x000000fe A7 : 0xb33fffff A8 : 0x3ffd535c A9 : 0x00000015
A10 : 0x3ffd535c A11 : 0x00000015 A12 : 0x3f40b272 A13 : 0x3f40b00b
A14 : 0x000000fe A15 : 0x3f412f93 SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4009790c LEND : 0x4009793a LCOUNT : 0xffffffff
0x4009790c: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:168

0x4009793a: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:201

ELF file SHA256: 9811cc4ecf93fa24e0c3f58768b783b3b2e912706a88f84487804de6d9e8d006

Backtrace: 0x4009c0f0:0x3ffb5a20 0x4009b0ed:0x3ffb5a40 0x400994f3:0x3ffb5a60 0x40099565:0x3ffb5aa0 0x400874c3:0x3ffb5ac0 0x400875b9:0x3ffb5b00 0x40118539:0x3ffb5b20 0x40113361:0x3ffb5de0 0x401132e9:0x3ffb5e30 0x4009a3a9:0x3ffb5e60 0x400943df:0x3ffb5e90 0x400944e1:0x3ffb5eb0 0x40086fc1:0x3ffb5ed0 0x40090a3d:0x3ffb5ef0 0x401cd64d:0x3ffb5f10 0x4022270c:0x3ffb5f30 0x401387b9:0x3ffb5f50
0x4009c0f0: vListInsert at /home/Firmware/19May09/esp-idf/components/freertos/list.c:188 (discriminator 1)

0x4009b0ed: vTaskPlaceOnEventList at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:5064

0x400994f3: xQueueGenericReceive at /home/Firmware/19May09/esp-idf/components/freertos/queue.c:2526

0x40099565: xQueueTakeMutexRecursive at /home/Firmware/19May09/esp-idf/components/freertos/queue.c:2526

0x400874c3: lock_acquire_generic at /home/Firmware/19May09/esp-idf/components/newlib/locks.c:157

0x400875b9: _lock_acquire_recursive at /home/Firmware/19May09/esp-idf/components/newlib/locks.c:171

0x40118539: _vfiprintf_r at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:860 (discriminator 2)

0x40113361: fiprintf at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/fiprintf.c:50

0x401132e9: __assert_func at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:59 (discriminator 8)

0x4009a3a9: vPortCPUAcquireMutexIntsDisabledExtram at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:5064
(inlined by) vPortCPUAcquireMutexIntsDisabled at /home/Firmware/19May09/esp-idf/components/freertos/portmux_impl.h:96
(inlined by) vTaskEnterCritical at /home/Firmware/19May09/esp-idf/components/freertos/tasks.c:4202

0x400943df: multi_heap_internal_lock at /home/Firmware/19May09/esp-idf/components/heap/multi_heap.c:699

0x400944e1: multi_heap_free_impl at /home/Firmware/19May09/esp-idf/components/heap/multi_heap.c:699

0x40086fc1: heap_caps_free at /home/Firmware/19May09/esp-idf/components/heap/heap_caps.c:268

0x40090a3d: free at /home/Firmware/19May09/esp-idf/components/newlib/heap.c:47

0x401cd64d: esp_tls_conn_delete at /home/Firmware/19May09/esp-idf/components/esp-tls/esp_tls.c:505

0x4022270c: sh2lib_free at /home/Firmware/19May09/esp-va-sdk/components/sh2lib/sh2lib.c:263

0x401387b9: avs__avsconfig_payload__free_unpacked at ??:?

Entering gdb stub now.
$T06#baGNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/Firmware/19May09/esp-va-sdk/examples/demo1/build/alexa.elf...done.
Remote debugging using /dev/ttyUSB0
uxPortCompareSet (set=, compare=3007315967, addr=0x3ffbeb04 )
at /home/Firmware/19May09/esp-idf/components/freertos/include/freertos/portmacro.h:352
352 asm volatile (
(gdb) q
A debugging session is active.

undefined reference when AWS IoT is enabled

I get this if I enable AWS IoT:
/home/owner/esp/esp-avs-sdk/examples/gemini_alexa_sr/build/main/libmain.a(app_dsp.o):(.literal.app_dsp_send_recognize+0x0): undefined reference to `wake_word_sem'
collect2: error: ld returned 1 exit status

Crash with amazon-alexa while trying to turn off wifi & turn on BT

we are facing a couple of issues while integrating ibeacon example with amazon-alexa example code. Any suggestions would be helpful.

As recommended in this issue (espressif/esp-idf#3179) , we turn off/disable/deinit wifi before we turn on BT, but alexa asst code crashes immediately. Below is the crash snippet.

===========
E (47862) [directive_proc]: Ending directive while JSON is in progress

[47 seconds]: [http_stream]: [stream_delete: 1] Internal: 88300, External: 1162040
assertiGuru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x40086df0 PS : 0x00060530 A0 : 0x80086fa9 A1 : 0x3ffb5dd0
0x40086df0: find_containing_heap at /home/Firmware/19May09/esp-idf/components/heap/heap_caps.c:245

A2 : 0x3ffbbeb8 A3 : 0x3ffbb3cc A4 : 0x00000000 A5 : 0x3ffbc258
A6 : 0x3facb405 A7 : 0x00000001 A8 : 0xc000e879 A9 : 0xc000e879
A10 : 0x3ffbc258 A11 : 0x0000007f A12 : 0x800998e0 A13 : 0x3ffbca00
A14 : 0x00000000 A15 : 0x3ffb0060 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0xc000e895 LBEG : 0x40097944 LEND : 0x4009794f LCOUNT : 0x00000000
0x40097944: memset at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memset.S:142

0x4009794f: memset at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memset.S:152

ELF file SHA256: 5dd7a26aed56d0fcd110976ab0af308afaefa6c1abe189f87ed0f59ed2484533

Backtrace: 0x40086df0:0x3ffb5dd0 0x40086fa6:0x3ffb5df0 0x40090a29:0x3ffb5e10 0x4021ebfd:0x3ffb5e30 0x40254d27:0x3ffb5e50 0x4021b045:0x3ffb5e70 0x4021b075:0x3ffb5e90 0x40219672:0x3ffb5eb0 0x40219693:0x3ffb5ed0 0x40219a55:0x3ffb5ef0 0x4021531b:0x3ffb5f10 0x40222745:0x3ffb5f30 0x401387bd:0x3ffb5f50
0x40086df0: find_containing_heap at /home/Firmware/19May09/esp-idf/components/heap/heap_caps.c:245

0x40086fa6: heap_caps_free at /home/Firmware/19May09/esp-idf/components/heap/heap_caps.c:266

0x40090a29: free at /home/Firmware/19May09/esp-idf/components/newlib/heap.c:47

0x4021ebfd: default_free at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_mem.c:36

0x40254d27: nghttp2_mem_free2 at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_mem.c:65

0x4021b045: nghttp2_rcbuf_del at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_rcbuf.c:72

0x4021b075: nghttp2_rcbuf_decref at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_rcbuf.c:91

0x40219672: nghttp2_hd_entry_free at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_hd.c:1538

0x40219693: hd_ringbuf_free at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_hd.c:1538

0x40219a55: hd_context_free at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_hd.c:1538
(inlined by) nghttp2_hd_deflate_free at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_hd.c:756

0x4021531b: nghttp2_session_del at /home/Firmware/19May09/esp-idf/components/nghttp/nghttp2/lib/nghttp2_session.c:83

0x40222745: sh2lib_free at /home/Firmware/19May09/esp-va-sdk/components/sh2lib/sh2lib.c:259

0x401387bd: avs__avsconfig_payload__free_unpacked at ??:?

====================

NVS stored data of wifi/AVS provisioning

What are the keys/values I need to read/write to NVS to access provisioning of wifi and AVS settings?
I'm assuming they are stored in the avs partition, right?
I'm trying to create my own application to provision wifi/AVS and pass these settings through UART to my ESP firmware.
Provisioning every device I make using the current connection manager just takes too long and is not practical.
I need to create a script that will automate this whole provisioning process.

Allow disabling all tones (for footprint reasons) in the Alexa build

We are trying to have ota partition and struggling with the size/space available...When we looked at the components/file sizes using make size-files, size-components , libalexa.a popped..Not sure how its compiled , but just want to explore the possibility if further optimizations are possible when creating that ...We need to reduce by 250KB and hoping to get more insight into how to compile that by ourselves or if anything else we can try...we already excluded few components that we really dont use ... BTW, this is not a bug, but more of a qn.

amazon music is not working on ESP32-LyraTD-MSC

Hi All,

I flashed the firmware lyratd_msc_sr on to ESP32-LyraTD-MSC, onboarding/ Provisioning went fine with esp-prov-v2.apk android apk, but when I ask to play amazon music , its saying "I cant play from Amazon music on that device" with my amazon account, am able to play amazon music with my Amazon Echo Device.

are we missing anything to configure this development board? please let us know..

Thanks,
Kumar

New Android app link for 1.0.RC1

In README/changelog , it says "Provisioning and authentication of Alexa app is now carried out over BLE instead of SoftAP. Use the new Android app for the same."

Can you point to where the new Android app/source code if we have compile the apk ?

Pin assignment of Phonejack LYRA TD MSC

It seems there is a issue with the wiring of the Phonejack connector on Lyra TD MSC.
The Phonejack is connected to the differential output of the DAC1 from ZL38063.
Because of this it is not possible to connect a speaker to the Phonejack.

simple_ble: simple_ble_start enable controller failed 258........AMAZON ALEXA

Hi @avsheth

After booting Amazon_Alexa firmware on Lyra board i am getting error: simple_ble_start enable controller failed.

Here is my booting info:

ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6128
ho 0 tail 12 room 4
load:0x40078000,len:9852
load:0x40080400,len:6476
entry 0x4008072c
�[0;32mI (30) boot: ESP-IDF v4.0-dev-621-g81ca1c013-dirty 2nd stage bootloader�[0m
�[0;32mI (30) boot: compile time 11:18:40�[0m
�[0;32mI (31) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (37) boot: SPI Speed : 80MHz�[0m
�[0;32mI (41) boot: SPI Mode : DIO�[0m
�[0;32mI (45) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (49) boot: Partition Table:�[0m
�[0;32mI (52) boot: ## Label Usage Type ST Offset Length�[0m
�[0;32mI (60) boot: 0 nvs WiFi data 01 02 00009000 00006000�[0m
�[0;32mI (67) boot: 1 phy_init RF data 01 01 0000f000 00001000�[0m
�[0;32mI (75) boot: 2 factory factory app 00 00 00010000 00390000�[0m
�[0;32mI (82) boot: End of partition table�[0m
�[0;32mI (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1f690c (2058508) map�[0m
�[0;32mI (687) esp_image: segment 1: paddr=0x00206934 vaddr=0x3ffbdb60 size=0x04edc ( 20188) load�[0m
�[0;32mI (693) esp_image: segment 2: paddr=0x0020b818 vaddr=0x40080000 size=0x00400 ( 1024) load�[0m
�[0;32mI (694) esp_image: segment 3: paddr=0x0020bc20 vaddr=0x40080400 size=0x043f0 ( 17392) load�[0m
�[0;32mI (708) esp_image: segment 4: paddr=0x00210018 vaddr=0x400d0018 size=0x13f510 (1307920) map�[0m
�[0;32mI (1087) esp_image: segment 5: paddr=0x0034f530 vaddr=0x400847f0 size=0x19d80 (105856) load�[0m
�[0;32mI (1140) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (1140) boot: Disabling RNG early entropy source...�[0m

[app_main]: Starting provisioning
�[0;33mW (891) event: handler already registered, overwriting�[0m
�[0;33mW (891) event: handler already registered, overwriting�[0m
�[0;33mW (901) event: handler already registered, overwriting�[0m
�[0;33mW (901) event: handler already registered, overwriting�[0m
�[0;33mW (911) event: handler already registered, overwriting�[0m
�[0;33mW (911) event: handler already registered, overwriting�[0m
�[0;33mW (921) event: handler already registered, overwriting�[0m
�[0;33mW (921) event: handler already registered, overwriting�[0m
�[0;31mE (1021) simple_ble: simple_ble_start enable controller failed 258�[0m
�[0;31mE (1021) protocomm_ble: simple_ble_start failed w/ error code 0x102�[0m
�[0;31mE (1021) conn_mgr_prov_mode_ble: Failed to start protocomm BLE service�[0m
�[0;31mE (1031) [conn_mgr_prov]: Failed to start provisioning�[0m
�[0;31mE (1031) [conn_mgr_prov]: Provisioning failed to start�[0m
proof of possession (pop): abcd1234

In my Bluetooth related SDK Config i enabled Bt Controller and Bluedroid. Both are running in CPU Core(0). Then also i am getting ble_start enable controller failed.

关于lyrat_alexa_sr重配网问题

你好,每次重新配网时,找不到 ESP-Alexa-xxx ,而且连接网络的指示灯也不闪烁。
之前,说可以使用命令以下命令可以重新配网,但是找不到配置ESP-Alexa-xxx ,设备无法正常工作。
nvs-set cm ssid string your_ssid
nvs-set cm pass string your_pass

串口打印如下:

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6200
load:0x40078000,len:9940
load:0x40080000,len:6756
entry 0x40080350
I (29) boot: ESP-IDF v3.1-91-gf11ac03-dirty 2nd stage bootloader
I (29) boot: compile time 16:54:02
I (33) boot: Enabling RNG early entropy source...
I (35) qio_mode: Enabling QIO for flash chip GD
I (40) boot: SPI Speed : 80MHz
I (44) boot: SPI Mode : QIO
I (48) boot: SPI Flash Size : 4MB
I (52) boot: Partition Table:
I (56) boot: ## Label Usage Type ST Offset Length
I (63) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (71) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (78) boot: 2 avs WiFi data 01 02 00010000 00006000
I (86) boot: 3 factory factory app 00 00 00020000 00300000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x15d7d8 (1431512) map
I (484) esp_image: segment 1: paddr=0x0017d800 vaddr=0x3ffb0000 size=0x02810 ( 10256) load
I (488) esp_image: segment 2: paddr=0x00180018 vaddr=0x400d0018 size=0x100d0c (1051916) map
I (769) esp_image: segment 3: paddr=0x00280d2c vaddr=0x3ffb2810 size=0x02880 ( 10368) load
I (773) esp_image: segment 4: paddr=0x002835b4 vaddr=0x3ffb5090 size=0x00000 ( 0) load
I (776) esp_image: segment 5: paddr=0x002835bc vaddr=0x40080000 size=0x00400 ( 1024) load
I (785) esp_image: segment 6: paddr=0x002839c4 vaddr=0x40080400 size=0x19dd8 (105944) load
I (829) esp_image: segment 7: paddr=0x0029d7a4 vaddr=0x400c0000 size=0x00000 ( 0) load
I (829) esp_image: segment 8: paddr=0x0029d7ac vaddr=0x50000000 size=0x00000 ( 0) load
I (851) boot: Loaded app from partition at offset 0x20000
I (851) boot: Disabling RNG early entropy source...
I (852) spiram: SPI RAM mode: flash 80m sram 80m
I (857) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (864) cpu_start: Pro cpu up.
I (868) cpu_start: Starting app cpu, entry point is 0x400814bc
I (0) cpu_start: App cpu up.
I (1367) spiram: SPI SRAM memory test OK
I (1368) heap_init: Initializing. RAM available for dynamic allocation:
I (1368) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1374) heap_init: At 3FFC06F8 len 0001F908 (126 KiB): DRAM
I (1381) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1387) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1393) heap_init: At 4009A1D8 len 00005E28 (23 KiB): IRAM
I (1400) cpu_start: Pro cpu start user code
I (1405) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1412) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (91) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (92) alexa: ==== Alexa SDK version: v1.0b1-165973 ====
Registering command: mem-dump
I (122) scli: Initialising UART on port 0
I (122) uart: queue free spaces: 8

Registering command: task-dump
Registering command: nvs-get
Registering command: nvs-set
Registering command: heap-trace
I (132) wifi: wifi driver task: 3ffc849c, prio:23, stack:3584, core=0
I (142) wifi: wifi firmware version: 75aab56
I (142) wifi: config NVS flash: disabled
I (152) wifi: config nano formating: disabled
I (152) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (162) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (172) wifi: Init dynamic tx buffer num: 32
I (182) wifi: Init data frame dynamic rx buffer num: 32
I (182) wifi: Init management frame dynamic rx buffer num: 32
I (192) wifi: Init static tx buffer num: 32
I (192) wifi: Init static rx buffer size: 1600
I (192) wifi: Init static rx buffer num: 10
I (202) wifi: Init dynamic rx buffer num: 32
I (202) conn_mgr: Initialization success
I (212) conn_mgr: Received event: 0
I (212) sm_sta: In station start
I (212) sm_sta: Connecting to SSID: belkin.36f7
I (272) phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 0
I (282) wifi: mode : sta (80:7d:3a:e1:4f:a0)
I (282) conn_mgr: SYSTEM_EVENT_STA_START
I (282) conn_mgr: Received event: 128
I (402) wifi: n:1 1, o:1 0, ap:255 255, sta:1 1, prof:1
I (1162) wifi: state: init -> auth (b0)
I (1162) wifi: state: auth -> assoc (0)
I (1172) wifi: state: assoc -> run (10)
I (1202) wifi: connected with belkin.36f7, channel 1
I (1202) wifi: pm start, type: 1

I (1202) conn_mgr: SYSTEM_EVENT_STA_CONNECTED
I (1202) conn_mgr: Received event: 128
I (1212) alexa: got station connected event
I (3132) event: sta ip: 192.168.2.7, mask: 255.255.255.0, gw: 192.168.2.1
I (3132) conn_mgr: SYSTEM_EVENT_STA_GOT_IP
I (3132) conn_mgr: got ip:192.168.2.7
I (3132) conn_mgr: Received event: 128
I (3142) alexa: got IPv4:192.168.2.7
I (3142) I2S: DMA Malloc info, datalen=blocksize=600, dma_buf_count=3
I (3152) I2S: DMA Malloc info, datalen=blocksize=600, dma_buf_count=3
I (3152) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 16, CLKM: 39, BCK: 8, MCLK: 4096000.000, SCLK: 512800.000000, diva: 64, divb: 4
I (3172) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0
I (3182) gpio: GPIO[19]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0
I (3192) UI_LED: LED initialized
I (3192) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:1
I (3202) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:3
I (3212) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3242) dsp: Created I2S audio stream
I (3242) audio_stream: Starting i2s_reader stream
Starting audio stream i2s_reader
W (3282) I2S: I2S driver already installed
.......................Init i2s stream...............
I (3282) audio_stream: Stream i2s_reader Event Started
I (3292) dsp: Reader stream event 2
Stopping audio stream i2s_reader
I (3302) audio_stream: Stream i2s_reader Event Stopped
I (3302) dsp: Reader stream event 3
Generated stopped event for stream i2s_reader
I (3312) I2S: PLL_D2: Req RATE: 48000, real rate: 48076.000, BITS: 16, CLKM: 13, BCK: 8, MCLK: 12292917.167, SCLK: 1538432.000000, diva: 64, divb: 1
Starting audio stream i2s_reader
W (3332) I2S: I2S driver already installed
.......................Init i2s stream...............
I (3342) audio_stream: Stream i2s_reader Event Started
I (3342) dsp: Reader stream event 2
I (3352) audio_stream: Starting playback_writer stream
StartiGuru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d8e1c PS : 0x00060230 A0 : 0x800d8eb4 A1 : 0x3ffe8c60
A2 : 0x3ffe8dc8 A3 : 0x00000280 A4 : 0x00000002 A5 : 0x00000140
A6 : 0x00000000 A7 : 0x3ffb5ed8 A8 : 0x3ffb4edc A9 : 0x3ffe8c60
A10 : 0x3ffe8d58 A11 : 0x3f40961c A12 : 0x0000020a A13 : 0x000001b6
A14 : 0x00000801 A15 : 0x0000002b SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000064 LBEG : 0x40099115 LEND : 0x40099125 LCOUNT : 0xfffffffb

Backtrace: 0x400d8e1c:0x3ffe8c60 0x400d8eb1:0x3ffe8ca0 0x400d7894:0x3ffe8cc0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6200
load:0x40078000,len:9940
load:0x40080000,len:6756
entry 0x40080350
I (29) boot: ESP-IDF v3.1-91-gf11ac03-dirty 2nd stage bootloader
I (29) boot: compile time 16:54:02
I (33) boot: Enabling RNG early entropy source...
I (35) qio_mode: Enabling QIO for flash chip GD
I (40) boot: SPI Speed : 80MHz
I (44) boot: SPI Mode : QIO
I (48) boot: SPI Flash Size : 4MB
I (52) boot: Partition Table:
I (56) boot: ## Label Usage Type ST Offset Length
I (63) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (71) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (78) boot: 2 avs WiFi data 01 02 00010000 00006000
I (86) boot: 3 factory factory app 00 00 00020000 00300000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x15d7d8 (1431512) map
I (485) esp_image: segment 1: paddr=0x0017d800 vaddr=0x3ffb0000 size=0x02810 ( 10256) load
I (488) esp_image: segment 2: paddr=0x00180018 vaddr=0x400d0018 size=0x100d0c (1051916) map
I (769) esp_image: segment 3: paddr=0x00280d2c vaddr=0x3ffb2810 size=0x02880 ( 10368) load
I (773) esp_image: segment 4: paddr=0x002835b4 vaddr=0x3ffb5090 size=0x00000 ( 0) load
I (776) esp_image: segment 5: paddr=0x002835bc vaddr=0x40080000 size=0x00400 ( 1024) load
I (785) esp_image: segment 6: paddr=0x002839c4 vaddr=0x40080400 size=0x19dd8 (105944) load
I (829) esp_image: segment 7: paddr=0x0029d7a4 vaddr=0x400c0000 size=0x00000 ( 0) load
I (829) esp_image: segment 8: paddr=0x0029d7ac vaddr=0x50000000 size=0x00000 ( 0) load
I (851) boot: Loaded app from partition at offset 0x20000
I (851) boot: Disabling RNG early entropy source...
I (852) spiram: SPI RAM mode: flash 80m sram 80m
I (857) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (864) cpu_start: Pro cpu up.
I (868) cpu_start: Starting app cpu, entry point is 0x400814bc
I (860) cpu_start: App cpu up.
I (1368) spiram: SPI SRAM memory test OK
I (1368) heap_init: Initializing. RAM available for dynamic allocation:
I (1368) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1374) heap_init: At 3FFC06F8 len 0001F908 (126 KiB): DRAM
I (1381) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1387) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1394) heap_init: At 4009A1D8 len 00005E28 (23 KiB): IRAM
I (1400) cpu_start: Pro cpu start user code
I (1405) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1413) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (91) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (92) alexa: ==== Alexa SDK version: v1.0b1-165973 ====
Registering command: mem-dump
I (122) scli: Initialising UART on port 0
I (122) uart: queue free spaces: 8

Registering command: task-dump
Registering command: nvs-get
Registering command: nvs-set
Registering command: heap-trace
I (132) wifi: wifi driver task: 3ffc849c, prio:23, stack:3584, core=0
I (142) wifi: wifi firmware version: 75aab56
I (142) wifi: config NVS flash: disabled
I (152) wifi: config nano formating: disabled
I (152) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (162) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (172) wifi: Init dynamic tx buffer num: 32
I (182) wifi: Init data frame dynamic rx buffer num: 32
I (182) wifi: Init management frame dynamic rx buffer num: 32
I (192) wifi: Init static tx buffer num: 32
I (192) wifi: Init static rx buffer size: 1600
I (192) wifi: Init static rx buffer num: 10
I (202) wifi: Init dynamic rx buffer num: 32
I (202) conn_mgr: Initialization success
I (212) conn_mgr: Received event: 0
I (212) sm_sta: In station start
I (212) sm_sta: Connecting to SSID: belkin.36f7
I (272) phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 0
I (272) wifi: mode : sta (80:7d:3a:e1:4f:a0)
I (272) conn_mgr: SYSTEM_EVENT_STA_START
I (282) conn_mgr: Received event: 128
I (402) wifi: n:1 1, o:1 0, ap:255 255, sta:1 1, prof:1
I (1152) wifi: state: init -> auth (b0)
I (1162) wifi: state: auth -> assoc (0)
I (1162) wifi: state: assoc -> run (10)
I (11162) wifi: state: run -> init (200)
I (11162) wifi: n:1 0, o:1 1, ap:255 255, sta:1 1, prof:1
I (11162) conn_mgr: SYSTEM_EVENT_STA_DISCONNECTED, reason_code 204
I (11172) conn_mgr: Received event: 128
I (11172) alexa: got station disconnected event

multiple definition of 'TAG'

I'm using release/v3.1 and I'm getting this error when trying to build:
LD build/azena_glass2_production.elf
/home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/build/spiffs/libspiffs.a(spiffs_api.o):(.data.TAG+0x0): multiple definition of `TAG'
/home/owner/esp/esp-avs-sdk/components/speech_recog/lib/libesp_wwe.a(esp_wwe.o):(.data.TAG+0x0): first defined here
collect2: error: ld returned 1 exit status
/home/owner/esp/esp-idf/make/project.mk:406: recipe for target '/home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/build/azena_glass2_production.elf' failed
make: *** [/home/owner/Dropbox/Azena/Glass2/ESP32/Azena_Glass2_Production/build/azena_glass2_production.elf] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.