esptiny86 / espsynth86

Synth engine for esptiny86
67 stars 11 forks source link

Compile error #9

Open owalkhoff opened 5 years ago

owalkhoff commented 5 years ago

Hi, I'm getting the following compile error (trying the examples espsynth_basic_1 and espsynth_basic_2_neo). Any clue what might be wrong?

comArduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

ChrisMicro commented 5 years ago

Meanwhile the things are getting a little bit mixed up in the different repositiories. You can try mine and see if it compiles: https://github.com/ChrisMicro/ESPTINY86_Mixtape

owalkhoff commented 5 years ago

Thanks ChrisMicro, I tried a few things and there is some success now:

From the examples included with the Espsynth86 package:

From your repository:

with error "xtensa-lx106-elf-gcc: error: {compiler.libraries.ldflags}: No such file or directory".

For troubleshooting, I also installed the esp8266 (community) package. With the same board "LOLIN(WEMOS) D1 R2 & mini" selected from that package, these sketches compile fine.

I am not sure why things are working now that didn't work yesterday... I had the ESP32 package installed in my Arduino IDE which I removed today, maybe that package caused problems. At one point I also removed both packages, the Espsynth86 and the esp8266 (including the folders in ~Library/Arduino15/packages/) and re-installed only the Espsynth86 package. (The idea came from here: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/faq#faq-5)

By the way, regarding upload: I first had to install a driver on my Mac for the WCN CH340G USB/serial chip so that the board appears under Ports. I noticed that upload is a bit flaky at higher speeds (921600 only works occasionally, 460800 or lower is somewhat reliable). Also, upload only works when I have my headphones unplugged from the audio out jack of the ESPTINY86.

I also still need to add a DAC to my board, so that I can test properly :)

ChrisMicro commented 5 years ago

Well ... that seems to be some issue in your tool chain .... Later on, when your tool chain is running properly you can use the ESP without DAC just connecting a RC-low pass to the I2S data pin

In this example

https://github.com/ChrisMicro/ESPTINY86_Mixtape/tree/master/code/025_BBC_MultiPatch

the I2S driver is separated from the rest of the code an you can replace the initialization of the I2S driver

I2S.begin(I2S_LEFT_JUSTIFIED_MODE, SAMPLINGFREQUENCY, 16);

with

I2S.begin(I2S_PDM_MODE, SAMPLINGFREQUENCY, 16);

The PDM mode just generates a sigma delta signal on the I2S data output which is converted with the external low pass to a analog audio signal.

owalkhoff commented 5 years ago

Hmm, what could be wrong in my toolchain? When I switch the target board to "LOLIN(WEMOS) D1 R2 & mini" from the esp8266 (community) package then your 000_BBC_test_all compiles without problem.

So I'm thinking that the error must be related to either a path issue or to case sensitivity (I'm on macOS)?

I read something in a forum (where people were having compile issues with the xtensa gcc toolchain) about path issues in the makefile, but I don't know how to find that. https://docs.espressif.com/projects/esp-idf/en/latest/get-started-cmake/macos-setup.html

I'm attaching a screenshot of my Arduino15 folder. The items highlighted yellow were installed by the Espsynth86 package (via the Boards Manager). The files in the esp8266 hardware folder were installed by the esp8266 package. I wonder if this is the correct folder structure?

screen-shot-2019-01-08-at-10 37_h

badgeek commented 5 years ago

hi all, sorry i've been silence, i have full time job now, anyway i will look into this

badgeek commented 5 years ago

@owalkhoff @ChrisMicro please delete the library (not board) then download and install the latest one from here https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-36-g4ee7f3a.zip

owalkhoff commented 5 years ago

@badgeek thank you very much for the update! I installed this new library version 1.0.4-36. (The library manager complained that the zip doesn't contain a valid library, so I installed it in the sketchbook/libraries folder manually.) Here are my results from the example sketches included in the library:

And the examples from @ChrisMicro:

Btw: it would be very helpful for testing if the board name was something like ESPTINY86 instead of LOLIN(WEMOS) D1 R2 & mini ;)

ChrisMicro commented 5 years ago

Probably we now have a mixture of libraries and examples which do not fit together any longer. A clean up would be necessary .....

badgeek commented 5 years ago

@owalkhoff you need to install this https://github.com/stahlnow/OSCLib-for-ESP8266

i will include it in the library..

badgeek commented 5 years ago

@owalkhoff osc library now included by default and install zip library from arduino should works now

https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-37-g6f306bf.zip

owalkhoff commented 5 years ago

@badgeek amazing, thank you! This version works with all 3 examples from the library. Also installing the library from zip is now ok. Only thing remaining is this warning about the category: WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'

(The example 000_BBC_test_all from @ChrisMicro still doesn't compile, probably something isn't compatible like he said yesterday.)

synestizer commented 5 years ago

I think I did everything as you all mentioned above. however I cant get it uploaded nor a sound out of it.. @badgeek all the things i should install are in this file https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-37-g6f306bf.zip now right? I deleted all other lib. but still get this error on the basic_2_neo example included: WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

owalkhoff commented 5 years ago

@synestizer what platform are you on? Which sketch are you trying to compile? Do you maybe have the ESP8266 package installed too? (Make sure you are selecting the board from the ESPTINY86 Board list. It's a trap because the boards are called the same in both packages.) And for later, once you got it to compile, does the board show up in Tools – Port?

synestizer commented 5 years ago

Thanks Owalkhoff for going deeper into it, Im using the example : espsynth_basic_1 (i tried the others too) . Mac Osx 10.12.6, arduino 1.8.8. I added 2 screenshots in the hope you can discover the issue. I also made a screenshot from my libraries. maybe there something is missing? I used the ESPTINY86 board list but I didnt discover it in the other package? which I don`t know where to find..

bildschirmfoto 2019-01-10 um 00 46 54 bildschirmfoto 2019-01-10 um 00 42 57 bildschirmfoto 2019-01-10 um 00 40 20
synestizer commented 5 years ago

Now I compiled again, with another sketch: epsynth_basic_2_neo and maybe this error is more easy to decipher. Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory Error compiling for board LOLIN(WEMOS) D1 R2 & mini. Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266 Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266 Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266 Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266 Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266 Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266 Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266 Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266 Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

badgeek commented 5 years ago

it seems esp tool is not installed ?

badgeek commented 5 years ago

@synestizer could you reinstall espsynth board then try compile again? thx @owalkhoff for helping

synestizer commented 5 years ago

will do, also the port doesn`t show me any usb device.. is this an arduino issue?

synestizer commented 5 years ago

I did it, but it still seems not to work, even worse.. i cant get the port setting undone. it now sticks to one of the selected items but not to any usb device

bildschirmfoto 2019-01-10 um 01 37 18
badgeek commented 5 years ago

you need to install the driver too, see https://github.com/esptiny86/espsynth86/issues/9#issuecomment-452021568 there should be no relation between board and usb because you will need separate driver for this

badgeek commented 5 years ago

@synestizer this should work: install esp8266 official board

synestizer commented 5 years ago

Now i installed this https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver and I see the board in the pane

synestizer commented 5 years ago

and i installed the off board aswell esp8266 it came with this: Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function AnalogMultiplexerPin::read(unsigned char, unsigned char)': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference toModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference toModuleClockDivider::ModuleClockDivider()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleMixer3::ModuleMixer3()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x10): undefined reference toModuleClock::ModuleClock(unsigned short, int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x14): undefined reference to ModuleBitReducer::ModuleBitReducer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x18): undefined reference toModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x37): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x4b): undefined reference toModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x5b): undefined reference to ModuleClockDivider::ModuleClockDivider()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x6b): undefined reference toModuleClockDivider::ModuleClockDivider()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function SynthTest::SynthTest()': sketch/synthx.h:13: undefined reference toModuleClockDivider::ModuleClockDivider()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:13: undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:17: undefined reference toModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:18: undefined reference to ModuleMixer3::ModuleMixer3()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:19: undefined reference toModuleClock::ModuleClock(unsigned short, int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:20: undefined reference to ModuleBitReducer::ModuleBitReducer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:21: undefined reference toModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:22: undefined reference to ModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:24: undefined reference toModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:29: undefined reference to ModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:27: undefined reference toModuleConstant::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function slowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:85: undefined reference toModuleConstant::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:90: undefined reference to ModuleConstant::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:91: undefined reference toModuleConstant::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:93: undefined reference to Synth::run(unsigned char)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in functionloop': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:97: undefined reference to `Synth::run(unsigned char)' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

badgeek commented 5 years ago

what is inside /Users/kkoenig/Documents/Arduino/libraries/ ?

synestizer commented 5 years ago

espsynth86-1.0.4-37-g6f306bf OSCLib-for-ESP8266 readme.txt both are folders

badgeek commented 5 years ago

screenshot_501

its working with me: Im on High Sierra - 10.13.6 (17G65) Arduino IDE 1.8.8 and using latest library espsynth86-1.0.4-36-g4ee7f3a.zip

i will keep this issue open..

badgeek commented 5 years ago

@synestizer i just realized that you use older version of the lib, should be espsynth86-1.0.4-36-g4ee7f3a

owalkhoff commented 5 years ago

@badgeek – hmm, I think espsynth86-1.0.4-37-g6f306bf.zip is the latest one...

badgeek commented 5 years ago

@owalkhoff ooopss my mistake, the latest one is espsynth86-1.0.4-37-g6f306bf.zip which already installed by @synestizer

owalkhoff commented 5 years ago

Thank you. I currently have no compile issues with this library anymore, except that silly warning about the category "Sound".

synestizer commented 5 years ago

Thank you guys that you are still on it. I will reinstalll 306bf.zip and try again after a complete restart.

synestizer commented 5 years ago

I have the categorie sound warning, but no code going through the cable.. no upload I mean

owalkhoff commented 5 years ago

@synestizer I recommend you only use compile (without upload) until your compiler issues are fixed.

You can troubleshoot upload separately by e.g. compiling a simple example from the ESP8266 package (no synth functionality) and make sure that your driver for the WCN CH340G USB/serial chip is installed properly. You can check in Terminal using this command ls /dev/tty.* If you see an entry like /dev/tty.wchusbserial1410 then that's your ESPTINY86 connected and ready for upload :)

synestizer commented 5 years ago

I feel I^m almost there.. however the command line in the termina doesnt give the entry wcn ch340G usb. I`m slightly unsure since it turns up in the serialports and blinkinglights of the examples of esp8266 is compiling , however with that same sound warning

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' Sketch uses 284304 bytes (27%) of program storage space. Maximum is 1044464 bytes. Global variables use 27128 bytes (33%) of dynamic memory, leaving 54792 bytes for local variables. Maximum is 81920 bytes.

synestizer commented 5 years ago

Should I rerun the installation for USB - driver?

owalkhoff commented 5 years ago

@synestizer Let's look at the two things separately: compiling and uploading.

Compiling: Does the sketch finish compiling after you push the checkmark button? The "Sound" warning isn't critical. Uploading: Maybe your driver is faulty. I got mine from the download page of the USB/serial chip manufacturer. The file is called CH341SER_MAC.ZIP: http://wch.cn/downloads/CH341SER_MAC_ZIP.html

synestizer commented 5 years ago

sigmadelta demo from examples , works in compiling and upload!! I^ll set baudrate even lower

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' Sketch uses 291112 bytes (27%) of program storage space. Maximum is 1044464 bytes. Global variables use 27408 bytes (33%) of dynamic memory, leaving 54512 bytes for local variables. Maximum is 81920 bytes. warning: serialport_set_baudrate: baud rate 460800 may not work Uploading 295264 bytes from /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_build_677229/SigmaDeltaDemo.ino.bin to flash at 0x00000000 ................................................................................ [ 27% ] ................................................................................ [ 55% ] ................................................................................ [ 83% ] ................................................. [ 100% ]

synestizer commented 5 years ago

however example espsynth_basic_1 does give a lot of messages: Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized' Build options changed, rebuilding all /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x0): undefined reference to `ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x4): undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x8): undefined reference toModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0xc): undefined reference to `ModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x2f): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionSynthTest::SynthTest(Input_Manager)': sketch/SynthTest.h:13: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:13: undefined reference toModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:16: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:17: undefined reference toModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:18: undefined reference to `ModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:26: undefined reference to ModuleExternalInput::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionslowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:64: undefined reference to ModuleExternalInput::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionslowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_1/espsynth_basic_1.ino:92: undefined reference to Synth::run(unsigned char)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionloop': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_1/espsynth_basic_1.ino:103: undefined reference to `Synth::run(unsigned char)' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

synestizer commented 5 years ago

and yes berbericool is not working either.

synestizer commented 5 years ago

I used the same usb driver. it seems to work the compiling from all examples of the ESP8266

badgeek commented 5 years ago

@owalkhoff fixed the sound warning in latest version https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-38-g47aef06.zip

synestizer commented 5 years ago

I installed the new Library and the sound-category-error is gone... however there is still this Should I reinstall everything ? I have the feeling there is now a bug somewhere deep, or am i mistakin? This came out with the ESPSYNTH basic 1 example that still does not want to compile..

Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x0): undefined reference to `ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x4): undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x8): undefined reference toModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0xc): undefined reference to `ModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager)]+0x2f): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionSynthTest::SynthTest(Input_Manager)': sketch/SynthTest.h:13: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:13: undefined reference toModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:16: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:17: undefined reference toModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:18: undefined reference to `ModuleExternalInput::ModuleExternalInput(int, Input_Manager)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-38-g47aef06/src/AnalogMultiplexer.h:26: undefined reference to ModuleExternalInput::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionslowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-38-g47aef06/src/AnalogMultiplexer.h:64: undefined reference to ModuleExternalInput::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionslowLoop()': /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_modified_sketch_616307/espsynth_basic_1.ino:94: undefined reference to Synth::run(unsigned char)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in functionloop': /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_modified_sketch_616307/espsynth_basic_1.ino:105: undefined reference to `Synth::run(unsigned char)' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

synestizer commented 5 years ago

if I include the ESP8266 library I get the least errors however it still doesnt want to compile as it did when I took the blink example:

Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

xtensa-lx106-elf-gcc: error: libraries/esp8266/esp8266.a: No such file or directory exit status 1 Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

badgeek commented 5 years ago

can you reinstall arduino ide? on mac you can use App Cleaner https://freemacsoft.net/appcleaner/ then also wipe your Documents/Arduino folder

synestizer commented 5 years ago

I just did it, and on a clean install of everything it still gives with the example ESPsynth_basic_1 the following error Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

badgeek commented 5 years ago

from https://github.com/esp8266/Arduino/issues/1241

@Sheep666 I solved this by updating Arduino IDE to 1.8.4, deleting 'esp8266' folder from sketchbook/hardware and then following these instructions.

owalkhoff commented 5 years ago

@synestizer What's inside your Arduino15 folder? (It should be under ~Library/Arduino15/) Compare to the screenshot from https://github.com/esptiny86/espsynth86/issues/9#issuecomment-452239099. I think there should be a tools folder with xtensa stuff in it...?

synestizer commented 5 years ago

Since the reinstall there is no Arduino15 folder anymore..how do I get it again?

badgeek commented 5 years ago

on terminal type this open ~/Library/Arduino15/

badgeek commented 5 years ago

what is inside?