pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.55k stars 237 forks source link

ADC-I2S example fails to compile on a ESP32-S3 #1538

Closed ballistRC closed 7 months ago

ballistRC commented 7 months ago

Problem Description

From the log board_build.mcu = esp32s tony@ASUS-WORK:~/repo/arduino-audio-tools/examples/examples-stream/streams-adc-i2s$ pio debug


Obsolete PIO Core v6.1.15a1 is used (previous was 6.1.15) Please remove multiple PIO Cores from a system: https://docs.platformio.org/en/latest/core/installation/troubleshooting.html


Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git; board: esp32-s3-devkitc-1; framework: arduino)

Library Manager: Installing adafruit/Adafruit BusIO @ ^1.14.1 Unpacking [####################################] 100% Library Manager: Adafruit BusIO@1.16.0 has been installed! Library Manager: Installing git+https://github.com/pschatzmann/arduino-audio-tools.git git version 2.34.1 Cloning into '/home/tony/.platformio/.cache/tmp/pkg-installing-upi_8b0p'... remote: Enumerating objects: 1298, done. remote: Counting objects: 100% (1298/1298), done. remote: Compressing objects: 100% (1008/1008), done. remote: Total 1298 (delta 242), reused 757 (delta 172), pack-reused 0 Receiving objects: 100% (1298/1298), 8.52 MiB | 11.45 MiB/s, done. Resolving deltas: 100% (242/242), done. Library Manager: audio-tools@0.9.6+sha.90ec739 has been installed! Library Manager: Resolving dependencies... Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html PLATFORM: Espressif 32 (6.6.0+sha.c9c9bbe) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM) HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Device Description

esp32-s3, compiles fine on an esp32.

Sketch

[platformio]
description = Audio Example
default_envs = esp32dev

[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git
;board = esp32dev
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
framework = arduino
lib_deps =
         Wire
         SPI
         I2C
         adafruit/Adafruit BusIO@^1.14.1
         https://github.com/pschatzmann/arduino-audio-tools.git
;        https://www.arduino.cc/reference/en/libraries/bounce2
;        https://github.com/thaaraak/firduino
;        https://github.com/thaaraak/LiquidCrystal_I2C
;        https://github.com/thaaraak/es8388
;        https://github.com/thaaraak/Si5351Arduino

build_flags = -DCORE_DEBUG_LEVEL=5 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-format-extra-args
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

Other Steps to Reproduce

platformio run -t cleanall platformio debug

What is your development environment

Platformio/emacs

I have checked existing issues, discussions and online documentation

pschatzmann commented 7 months ago

The old I2S Analog API is only supported for the ESP32! You will need to use the new API that will only be available starting from Arduino 3.0.0.

ballistRC commented 7 months ago

Ok, thanks for the info. Not important at this stage I guess, as I am still sorting out the PCM1808 issues and was just trying to reproduce it on a different host in case.