Wemos mini D1 and OSX Sierra: troubleshooting needed

Hi there!
I'm quite getting mad to solve a issue: a sketch a friend of mine to control a lamp by wemos mini d1 that works smoothly on windows, does not work at all on my macbook os x sierra. I've been trying all the way to - at least - get my sketch compiled, no way (e.g. different arduino ideas update & card managers & libraries...).
Have any clue to solve? thanks
Alessandro

Arduino: 1.6.12 (Mac OS X), Board: "WeMos D1 R2 & mini, 80 MHz, Serial, 921600, 4M (3M SPIFFS)"

/private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/46D7CDB3-B72D-4F96-9BD5-94F02F99295D/d/Arduino-2.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/46D7CDB3-B72D-4F96-9BD5-94F02F99295D/d/Arduino-2.app/Contents/Java/hardware -hardware /Users/alessandrobarbiero/Library/Arduino15/packages -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/46D7CDB3-B72D-4F96-9BD5-94F02F99295D/d/Arduino-2.app/Contents/Java/tools-builder -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/46D7CDB3-B72D-4F96-9BD5-94F02F99295D/d/Arduino-2.app/Contents/Java/hardware/tools/avr -tools /Users/alessandrobarbiero/Library/Arduino15/packages -built-in-libraries /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/46D7CDB3-B72D-4F96-9BD5-94F02F99295D/d/Arduino-2.app/Contents/Java/libraries -libraries /Users/alessandrobarbiero/Documents/Arduino/libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,UploadTool=esptool,UploadSpeed=921600,FlashSize=4M3M -ide-version=10612 -build-path /var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/arduino_build_439937 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -verbose /Users/alessandrobarbiero/Documents/design & art/FABLAB/Progetti /Teepee/Esp_Teepee/Esp_Teepee.ino

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

Arduino: 1.6.12

The current version is well beyond that.

It's hard to tell you why the sketch you didn't post fails to compile.

hi Paul. I tried almost the whole bunch of arduino IDE…
The error i get is:
Arduino: 1.6.12 (Mac OS X), Board: “WeMos D1 R2 & mini, 80 MHz, Serial, 921600, 4M (3M SPIFFS)”

/private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/A82A7332-221E-4B03-A876-690D961D65D1/d/Arduino-2.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/A82A7332-221E-4B03-A876-690D961D65D1/d/Arduino-2.app/Contents/Java/hardware -hardware /Users/alessandrobarbiero/Library/Arduino15/packages -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/A82A7332-221E-4B03-A876-690D961D65D1/d/Arduino-2.app/Contents/Java/tools-builder -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/A82A7332-221E-4B03-A876-690D961D65D1/d/Arduino-2.app/Contents/Java/hardware/tools/avr -tools /Users/alessandrobarbiero/Library/Arduino15/packages -built-in-libraries /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/A82A7332-221E-4B03-A876-690D961D65D1/d/Arduino-2.app/Contents/Java/libraries -libraries /Users/alessandrobarbiero/Documents/Arduino/libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,UploadTool=esptool,UploadSpeed=921600,FlashSize=4M3M -ide-version=10612 -build-path /var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/arduino_build_823470 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.esptool.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8 -verbose /Users/alessandrobarbiero/Documents/design & art/FABLAB/Progetti /Teepee/Esp_Teepee/Esp_Teepee.ino

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

The error i get is:

dependent on the code you compile, which you STILL haven't posted.

The second to last line is interesting, though.

Hi Paul, I can't post the code since it's not mine...any idea to let arduino ide meet properly memos? :slight_smile:

here you find the error compiling with arduino 1.8.4 and esp board manager 2.3.0.

Arduino: 1.8.4 (Mac OS X), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

/private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/5B0C121B-341A-436A-9286-028AB2E65451/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/5B0C121B-341A-436A-9286-028AB2E65451/d/Arduino.app/Contents/Java/hardware -hardware /Users/alessandrobarbiero/Library/Arduino15/packages -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/5B0C121B-341A-436A-9286-028AB2E65451/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/5B0C121B-341A-436A-9286-028AB2E65451/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/alessandrobarbiero/Library/Arduino15/packages -built-in-libraries /private/var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/AppTranslocation/5B0C121B-341A-436A-9286-028AB2E65451/d/Arduino.app/Contents/Java/libraries -libraries /Users/alessandrobarbiero/Documents/Arduino/libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,UploadSpeed=921600,FlashSize=4M3M -ide-version=10804 -build-path /var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/arduino_build_7952 -warnings=none -build-cache /var/folders/xx/35_zsv252q1dbrp8rzf2s91h0000gp/T/arduino_cache_54831 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.esptool.path=/Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 -verbose /Users/alessandrobarbiero/Documents/design & art/FABLAB/Progetti /Teepee/Esp_Teepee/Esp_Teepee.ino

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

Board d1_mini (platform esp8266, package esp8266) is unknown

Do you get this when you compile on Windows? If not, then THAT is the problem.

This problem is caused by the the Arduino IDE not fully removing the previous hardware package version when you updated to a new version via Boards Manager. It is solved by completely removing the old package version:

  • Open /Users/alessandrobarbiero/Library/Arduino15/packages/esp8266/hardware/esp8266
  • You will now see multiple version subfolders. One of these folders is the one you upgraded from that was not fully removed. Delete that folder. Please be very careful when deleting files on your computer, when in doubt back up!

After that the compilation error will be fixed.

This should be selectable in the IDE, not in which directory is loaded.

Coder58:
This should be selectable in the IDE, not in which directory is loaded.

The Arduino IDE already does have a UI for this (the version dropdowns in Tools > Board > Boards Manager). The problem is not a lack of UI but a problem in the functionality of the inner workings of hardware package updates:

  • Occasionally failing to fully remove the previous version.
  • Not gracefully handling the leftover folder after the above failure.

I believe the second issue has been recently addressed by the Arduino developers. You can try out the Hourly build and beta builds of the Arduino IDE available from the Downloads page so see if this is the case.

If you care to contribute any improvements to the Arduino IDE it would be welcome. You can submit pull requests here: