esp-sr for esp32-s2

andrej32
Posts: 28
Joined: Fri Apr 19, 2019 8:22 am

esp-sr for esp32-s2

Postby andrej32 » Thu Apr 29, 2021 7:27 am

Hello. I moved a working project from ESP 32 to ESP32-S2. I use the stable environment ESP-IDF-v4.2 and acoustic algorithms from ESP-ADF-v2.2 (only components in esp-sr (only MASE and AGC)). The project is running on ESP32, but when trying to build it for ESP32-S2 this error occurs (modified project for esp32-s2 also works, but only without the esp-sr functions):

FAILED: voca-esp-gsm.elf
cmd.exe /C "cd . && C:\Users\andrej.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-g++.exe -mlongcalls @CMakeFiles\voca-esp-gsm.elf.rsp -o voca-esp-gsm.elf && cd ."
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(analog_agc.o)(.text.WebRtcAgc_ProcessAnalog+0xd1): could not decode instruction; possible configuration mismatch
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(analog_agc.o)(.text.WebRtcAgc_Init+0xa6): could not decode instruction; possible configuration mismatch
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(digital_agc.o)(.text.WebRtcAgc_ProcessVad+0x1d): could not decode instruction; possible configuration mismatch
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(digital_agc.o)(.text.WebRtcAgc_ProcessVad+0x61): could not decode instruction; possible configuration mismatch
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(digital_agc.o): in function WebRtcAgc_InitVad': /home/zhaoyang/esp/esp_sr_lib/components/esp_audio_processor/automatic_gain_control/digital_agc.c:655:(.text.WebRtcAgc_InitDigital+0x53): dangerous relocation: cannot decode instruction opcode: (.text.WebRtcAgc_InitDigital+0x5c) c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: /home/zhaoyang/esp/esp_sr_lib/components/esp_audio_processor/automatic_gain_control/digital_agc.c:655:(.text.WebRtcAgc_InitDigital+0x85): dangerous relocation: cannot decode instruction opcode: (.text.WebRtcAgc_InitDigital+0x8c) c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: /home/zhaoyang/esp/esp_sr_lib/components/esp_audio_processor/automatic_gain_control/digital_agc.c:655:(.text.WebRtcAgc_InitVad+0x2f): dangerous relocation: cannot decode instruction opcode: (.text.WebRtcAgc_InitVad+0x36) c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: C:/esp-adf-v2.2/components/esp-sr/acoustic_algorithm\libesp_audio_processor.a(analog_agc.o): in function WebRtcAgc_Init':
/home/zhaoyang/esp/esp_sr_lib/components/esp_audio_processor/automatic_gain_control/analog_agc.c:1662:(.text.WebRtcAgc_Init+0xa6): dangerous relocation: cannot decode instruction opcode: (.text.WebRtcAgc_Init+0xad)
c:/users/andrej/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: /home/zhaoyang/esp/esp_sr_lib/components/esp_audio_processor/automatic_gain_control/analog_agc.c:1675:(.text.WebRtcAgc_Init+0xe1): dangerous relocation: cannot decode instruction opcode: (.text.WebRtcAgc_Init+0xec)
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Please help us understand what these errors are (could not decode instruction; possible configuration mismatch) and how to fix them.

andrej32
Posts: 28
Joined: Fri Apr 19, 2019 8:22 am

Re: esp-sr for esp32-s2

Postby andrej32 » Thu Apr 29, 2021 1:12 pm

Surprise from the guys from ESPRESSIF : ESP-SR does not support ESP32-S2. The ESP-ADF description doesn't say a word about this. Topic closed.

Who is online

Users browsing this forum: No registered users and 35 guests