Hi Danny, 

There are a few examples for ESP32 and PlatformIO here if they are any help; 

Using arduino-esp32 framework - 
https://github.com/ohmic-net/pico_dsp/tree/main/pico_dsp-arduino-esp32
Using esp-idf framework - 
https://github.com/ohmic-net/pico_dsp/tree/main/pico_dsp-esp-idf

In the platform.ini file you can specify the platform and the version  e.g. 
platform = espressif32@3.3.0

You can also include different library versions as submodules in each 
PlatformIO project in the >lib directory. 

Are you using the xtensa compiler? - xtensa-esp32-elf-gcc 

PLATFORM: Espressif 32 (3.3.0) > TinyPICO 
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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:
- framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)

bests,Andy

--
Email: andywil...@tuta.io



Apr 2, 2022, 21:10 by danny.ay...@gmail.com:

> Hello! I'm new here.
>
> I'm having trouble building the ESP32 demo (Sawtooth) from the zip at > 
> https://faustdoc.grame.fr/tutorials/esp32/
>
> I'm pretty new to C++ etc, but have had some success with DSP for sound 
> generation on the ESP32 (some slightly out-of-date notes at > 
> https://github.com/danja/chatterbox> ). 
>
> Recently I wanted to have a play with physical modelling so had a look around 
> and stumbled on Faust. It looks wonderful, and like it should be a huge 
> time-saver for me.
>
> I was using PlatformIO on VSCode on Ubuntu. 
>
> So first I tried using that environment. It seemed like faust2esp32 worked a 
> treat, building basically ok, but then ran into the External RAM issue.
>
> Then I tried using ESP-IDF from within VSCode. After hitting loads of 
> problems I took a step back and tried ESP-IDF from the command line. The 
> ESP-IDF Hello World worked and loaded into the device.
>
> But with the ESP/Faust demo I first ran into warnings being treated as 
> errors, and -
>
> /home/danny/micros/faust-tutorial/main/FaustSawtooth.cpp:891:3: error: 
> narrowing conversion of 'sample_rate' from 'int' to 'uint32_t' {aka 'unsigned 
> int'} inside { } [-Werror=narrowing]
>
> it seems like running -
>
> make CFLAGS='-Wno-narrowing' CXXFLAGS='-Wno-narrowing'
>
> gets me past that (caused by the version of gcc? it says: (Ubuntu 
> 11.2.0-7ubuntu2) 11.2.0, 
>
> now I get a bunch of errors around -
>
> ...
> /home/danny/micros/esp-idf/components/pthread/pthread_rwlock.c:49:26: error: 
> unknown type name 'pthread_rwlock_t'; did you mean 'esp_pthread_rwlock_t'?
>  int pthread_rwlock_init (pthread_rwlock_t *rwlock,
>                           ^~~~~~~~~~~~~~~~
>                           esp_pthread_rwlock_t
> /home/danny/micros/esp-idf/components/pthread/pthread_rwlock.c:50:15: error: 
> unknown type name 'pthread_rwlockattr_t'
>          const pthread_rwlockattr_t *attr)
> ...
>
> - and I'm stuck.
>
> btw, running -
>
> . ../esp-idf/export.sh
> idf.py build
>
> yields a load of lines like :
> undefined reference to `FaustSawtooth::start()
>
> Bits missing from CMakeLists.txt..?
>
> Any suggestions?
>
> Cheers,
> Danny.
>
> -- 
> ----
>
> http://hyperdata.it <http://hyperdata.it/danja>
>

_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to