problem compiling for board WeMos D1 R2 & mini

[without verbose output]

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 R2 & mini, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

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

[with verbose output]

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 R2 & mini, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\alect\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=921600 -ide-version=10805 -build-path C:\Users\alect\AppData\Local\Temp\arduino_build_154934 -warnings=none -build-cache C:\Users\alect\AppData\Local\Temp\arduino_cache_26594 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.esptool.path=C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\0.2.0 -verbose C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.4.1\libraries\ArduinoOTA\examples\BasicOTA\BasicOTA.ino

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

to my knowledge this is where where the compiler looks for files on the Wemos board, which it shouldnt. how can i change this MATLAB file to one of my choice, if that is even possible?

This is my usual response to people who have the "Board d1_mini (platform esp8266, package esp8266) is unknown" type of error:

The "Board ... is unknown" error occurs when a Boards Manager installation of a different version of a hardware package fails to completely uninstall the previous version. Here's how you solve it:

  • Click the link on the line following File > Preferences > More preferences can be edited directly in the file. This will open the Arduino15 (or similar name depending on OS) folder.
  • Navigate to the packages/esp8266/hardware/esp8266 folder.
  • You will see two folders. One is named by the version of the package you currently have installed, the other is named by the version of the package you previously had installed. Delete the folder with the previous version name. Please be very careful when deleting things on your computer. When in doubt back up!

In this case it looks like you have some weird MatLab thing which I have no experience with but maybe it will be helpful anyway.

thanks for your reply, really appreciate it!

although when you refer to the file that i must delete, these are the two files that i have with the same name?

Which one should i delete?

find attached image below please.

I didn't tell you to delete either of those files. Please carefully read and follow steps 2 and 3 from my previous post.

Oh I see.

Well I deleted all Arduino related files on my PC and reinstalled it. And it worked. I think the old files were the problem. Thanks again.

pert: This is my usual response to people who have the "Board d1_mini (platform esp8266, package esp8266) is unknown" type of error:

The "Board ... is unknown" error occurs when a Boards Manager installation of a different version of a hardware package fails to completely uninstall the previous version. Here's how you solve it:

  • Click the link on the line following File > Preferences > More preferences can be edited directly in the file. This will open the Arduino15 (or similar name depending on OS) folder.
  • Navigate to the packages/esp8266/hardware/esp8266 folder.
  • You will see two folders. One is named by the version of the package you currently have installed, the other is named by the version of the package you previously had installed. Delete the folder with the previous version name. Please be very careful when deleting things on your computer. When in doubt back up!

I know I'm a little late to the party here, but I wanted to say thank you. This solution worked perfectly for me. I appreciate your help. Thank you!

You're welcome. I'm glad if I was able to be of assistance. Enjoy! Per